[Insight-users] Help: ResampleImageFilter
Kun
kun_ch at 163.com
Fri Oct 31 17:49:43 EDT 2008
Hi, all
I am using the ResampleImageFilter to get an oblique slice from the 3D volume data. I use the
ResampleImageFilter->SetOutputOrigin(origin);
ResampleImageFilter->SetOutputDirection(direction);
to set the direction of the desired slice, the 3*3 direction is the unit vector of x,y,z direction.
Would this be right to get an accurate oblique slice?
Also, I feel a litter confused about the outputspacing. Should I set the spacing information of the input image as the outputspacing or use the spacing along the desired new x,y,z direction?
for example, the desired x direction is [0.8;0.6;0], then the spacing[0] is set xspacing of the input image, or sqrt((0.8* xspacing)^2 + (0.6* yspacing)^2) ?
Looking forward to your help.
Thanks
Kun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081101/34f3ec59/attachment.htm>
More information about the Insight-users
mailing list