[Insight-developers] Should Filters propogate the Direction Cosines from Image input to image output?

Lorensen, William E (Research) lorensen at crd.ge.com
Mon Oct 31 15:13:32 EST 2005


Yes they should. I'm surprised ResampleImageFilter does not propagate them. I thought I did that already.

Bill

-----Original Message-----
From: insight-developers-bounces+lorensen=crd.ge.com at itk.org
[mailto:insight-developers-bounces+lorensen=crd.ge.com at itk.org]On Behalf
Of Kent Williams
Sent: Monday, October 31, 2005 2:34 PM
To: Insight-developers (E-mail)
Subject: [Insight-developers] Should Filters propogate the Direction
Cosines from Image input to image output?


I discovered this when using ResampleImageFilter to shrink some image 
volumes -- the ResampleImageFilter doesn't propogate the Direction 
Cosines from the input image into the output image. Consequently if you 
write out the resulting image it may not be oriented consistent with the 
input image.

Should filters set the Direction Cosines on the output? I know that 
itk::OrientImageFilter does so, which is natural since it is changing 
the orientation. But what about filters like ResampleImageFilter, which 
does not change the image orientation?  What about the cases where an 
output image is produced from more than one input image?

_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list