<br>Hi Dirk,<br><br>What resampling filter are you using ?<br><br>--<br><br>The convention of coordinate systems in ITK<br>is that the Origin is located in the lower left <br>pixel of the image (e.g. the mathematical <br>standard, not the computer graphics standard).<br>
<br><br>For the image that you describe, <br><br>yes, the physical extent is<br><br>x = [-1,+1] <br>y = [-0.5,+0.5]<br><br><br>If you are using the itkResampleImageFilter, it is<br>your responsibility to pick the new origin,<br>
(since any new origin will be a possible choice).<br><br><br>    Regards,<br><br><br>        Luis<br><br><br>--------------------------------------------------------<br><div class="gmail_quote">On Fri, Jun 25, 2010 at 2:16 AM, Dirk Boye <span dir="ltr">&lt;<a href="mailto:body@nabla.org">body@nabla.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear list,<br>
<br>
I am using some tool for resampling images and found something disturbing.<br>
<br>
Let&#39;s say I have a 2d image with only 1 pixel. The origin is in 0,0 and<br>
the spacing is dx=2mm, dy=1mm.<br>
The origin is the center of the lower left pixel/voxel, right?<br>
That means my &#39;image&#39; has the physical boundaries (pixel coverage)<br>
 in x [-1,+1] and in y [-0.5,+0.5]<br>
<br>
Now i want to resample my 1 pixel image into 2x2 pixels.<br>
After resampling the origin should be moved so the physical boundaries<br>
are preserved, is that correct? (Because the origin is always the center<br>
of the lower left voxel)<br>
<br>
The tool I&#39;m using does not do the movement of the origin so i programmed<br>
my own.<br>
Or am i mistaken? :)<br>
<br>
Cheers,<br>
Dirk<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>