[Insight-users] Help: ResampleImageFilter
Kun
kun_ch at 163.com
Sat Nov 1 14:07:22 EDT 2008
Hi, Dan
Thanks for your help.
I know how to use this filter now, and appreciate for your help.
Best,
Kun
在2008-11-01,"Dan Mueller" <dan.muel at gmail.com> 写道:
>Hi Kun,
>
>It is the transform (not the output direction) that specifies how to
>map between the output and input coordinate spaces. The
>SetOutputDirection(.) method sets the so-called "direction cosines"
>which specifies an additional orientation of the output image in
>physical space.
>
>You may be interested in the following Insight Journal submission
>which provides a helper function to initialise a transform to "look
>at" a point. Once you have this transform, you pass this to the
>resample filter with the desired output parameters. The
>itk::ObliqueSectionImageFilter, also provided in the submission, does
>this for you.
> http://www.insight-journal.org/browse/publication/168
>
>Regarding your second question about output spacing: this is simply
>the spacing of the output image. For example, if your input image has
>spacing [1.0, 1.0, 1.0] you could specify the output image to have
>spacing [2.0, 2.0, 2.0]. These values are independent and no magic
>needs to be computed by you. The resample filter takes care of the
>mapping between the two coordinate spaces (via the transform).
>
>If you haven't already done so, have a read of section 6.9.4 of the
>ITK Software Guide:
> http://www.itk.org/ItkSoftwareGuide.pdf
>
>Hope this helps.
>
>Regards, Dan
>
>2008/10/31 Kun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081102/7223fbbe/attachment.htm>
More information about the Insight-users
mailing list