<html><head><base href="x-msg://18/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>you don't have to resample the entire image, just the region you want to crop out. There is no way &nbsp;you can do this without resampling in the case that the region you want to crop out is not aligned with the coordinate axes of the image's coordinate system. The itk::ResampleImageFilter only resamples the volume within the region you specify.</div><div><br></div><div>Andreas</div><div><br><div><div>On Sep 8, 2009, at 9:36 PM, shoosh moosh wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">I don't want to resample the entire image. I want to crop out a certain subvolume from the whole image&nbsp;with this subvolume having&nbsp;a defined origin with respect to the original image, and defined dimensions that are actually smaller than the original image. The orientation of the smaller subvolume with respect to the original image&nbsp;is also&nbsp;a given.<br>Thanks<br>&nbsp;<br><br><hr id="stopSpelling">Date: Tue, 8 Sep 2009 16:16:42 -0400<br>Subject: Re: [Insight-users] extracting a subvolume from a larger volume<br>From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:kishoreraom@gmail.com">kishoreraom@gmail.com</a><br>To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:babygirl_25@hotmail.com">babygirl_25@hotmail.com</a><br>CC:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:andreas.schuh.84@googlemail.com">andreas.schuh.84@googlemail.com</a>;<span class="Apple-converted-space">&nbsp;</span><a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br><br>Hi,<br><br>Look at the ResampleImageFilter and remember to set the transform and interpolation method along with the output information such as size, spacing and origin.<br><br>Kishore<br><br>2009/9/8 shoosh moosh &lt;<a href="mailto:babygirl_25@hotmail.com">babygirl_25@hotmail.com</a>&gt;<br>&gt;<br>&gt; Hi,<br>&gt; Is there an ITK class that can extract a subvolume from a larger volume (similar to itk::ExtractImageFilter) but where the subvolume isn't necessarily aligned with the bigger volume. Instead,the inputs would be the origin, the dimensions of the subvolume, and the subvolume orientation information.<br>&gt; Thanks,<br>&gt;<br>&gt; ________________________________<br>&gt; From:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:andreas.schuh.84@googlemail.com">andreas.schuh.84@googlemail.com</a><br>&gt; To:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:babygirl_25@hotmail.com">babygirl_25@hotmail.com</a><br>&gt; Subject: Re: [Insight-users] extracting a subvolume from a larger volume<br>&gt; Date: Fri, 10 Jul 2009 07:33:58 -0400<br>&gt; CC:<span class="Apple-converted-space">&nbsp;</span><a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt;<br>&gt; Hi,<br>&gt; have a look at itk::ExtractImageFilter. Instead of the center, you specify the starting index of the subvolume.<br>&gt; --<br>&gt; regards<br>&gt; Andreas<br>&gt;<br>&gt; On Jul 10, 2009, at 6:54 AM, shoosh moosh &lt;<a href="mailto:babygirl_25@hotmail.com">babygirl_25@hotmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Hi,<br>&gt; Is there an ITK program where I can specify the x, y, z coordinates of the center of a subvolume and also the&nbsp;width, height, and depth of the subvolume to extract a subvolume from a bigger volume?<br>&gt; Thanks<br>&gt;<br>&gt; ________________________________<br>&gt; Windows Live™: Keep your life in sync. Check it out!<br>&gt;<br>&gt; _____________________________________<br>&gt; Powered by<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com/">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the ITK FAQ at:<span class="Apple-converted-space">&nbsp;</span><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br>&gt; ________________________________<br>&gt; With Windows Live, you can organize, edit, and share your photos.<br>&gt; _____________________________________<br>&gt; Powered by<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com/">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the ITK FAQ at:<span class="Apple-converted-space">&nbsp;</span><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br><br><br><hr>What can you do with the new Windows Live?<span class="Apple-converted-space">&nbsp;</span><a href="http://www.microsoft.com/windows/windowslive/default.aspx" target="_new">Find out</a></div></span></blockquote></div><br></div></body></html>