[Insight-users] Get and Set itk Origin

Kevin H. Hobbs hobbsk at ohiou.edu
Tue Sep 15 12:57:43 EDT 2009


On Tue, 2009-09-15 at 09:32 +0000, jef vdmb wrote:

> The initial input had origin (0,0,0). The output however should have
> an origin different from zero (with the parameters I used for the
> MirrorPadImageFilter). When the output is interrogated for its origin
> (->GetOrigin() ), it (wrongly) shows all zeros. When writing the image
> afterwards, it was written with the correct origin ( offset field of
> the .mhd image format). 


I bet that if you get the index of the region of the output image, you
will see that it has negative numbers.

Only when the image is written is the new origin calculated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090915/e1fbcf95/attachment.pgp>


More information about the Insight-users mailing list