[Insight-users] Rotating a 3D volume

Karthik Krishnan Karthik.Krishnan at kitware.com
Tue Jul 4 16:40:03 EDT 2006


You can set the size that your resampled output image should be 
explicitly using the resample filter.

See the SetSize and the SetOutputStartIndex methods in 
itk::ResampleImageFilter

-karthik

Moti Freiman wrote:

> Hello,
> I'm trying to rotate a  large 3D volume  about its z axis.
> I'm using 3DCenteredeulertransform and itkresampleimagefilter.
> I defined the output size to be the same as the input size.
> However when I'm rotating the sides of the volume are cropped.
> Is there any simple method to say to the filter to enlarge the volume 
> without crop it.
> Other possibility is to pad the original volume with zeros and then 
> rotate it, so that just zeros will be crop.
> Does any one have idea about it?
> Thanks,
> Moti
>


More information about the Insight-users mailing list