[Insight-users] convert slice to volumn
Karthik Krishnan
Karthik.Krishnan at kitware.com
Wed Dec 22 17:47:17 EST 2004
Hi Jun,
Try using CastImageFilter to cast from 2D to 2D as in
itk::CastImageFitler <SliceType, VolumeType> CastImageFilterType;
thanks
karthik
Jun Tan wrote:
>Hi, Louis:
>I want to convert an image defined by
> typedef itk::Image<ImagePixelType, 2> SliceType;
>to another image defined by
> typedef itk::Image<ImagePixelType, 3> VolumnType;
>without calling "SetPixel(...)" for all pixels, so that the second
>image is 3 dimensional but contains only one slice.
>Is there any such functions or I have to make one?
>
>Thanks,
>
>Jun
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>
>
More information about the Insight-users
mailing list