[Insight-users] ResampleImageFilter flips origin

Bill Lorensen bill.lorensen at gmail.com
Fri Dec 7 12:39:46 EST 2012


I think Snap may use VTK as a viewer. A VTK has a flipped y axis
compared to ITK, but I would assume Snap handles that.

Can you "Print" the input and output images of the resample?

The outpupt would be:
resample->Update()
resample->GetOutput()->Prit(std::cout);

Likewise for the input.

On Fri, Dec 7, 2012 at 11:54 AM, Ted Broom <tedbroom123 at gmail.com> wrote:
> Hi everyone;
>
> I'm experimenting with the re sample image filter and feeding in an input
> image.  The origin; spacing of the output image is the same as the input
> image and no transformations are applied to the image.  To view the image
> however I must select the out origin to be flipped in the x and z plane in
> comparison to the input origin:
>
> Out_origin[0]= - In_origin[0];
> Out_origin[1]= In_origin[1];
> Out_origin[2]= - In_origin[2];
>
> When performed in the manner below; the image is blank when viewed in
> ITK_snap:?
>
> Out_origin[0]= In_origin[0];
> Out_origin[1]= In_origin[1];
> Out_origin[2]= In_origin[2];
>
>
> Any suggestions??
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list