[vtkusers] vtkImageData Spacing
Jonathan Ruiz Peinado
jonathan.ruiz3 at gmail.com
Tue Jul 3 19:52:28 EDT 2012
If I wasn't wrong about spacing in first place, how can i set the spacing
for an image reslice output? , seems that is 1.0 1.0 1.0 wahtever the
input was.
vtkImageReslice reslice_rotation_z = new vtkImageReslice();
reslice_rotation_z.SetInput( DicomStudio.dicomImage.getOutput());
reslice_rotation_z.SetInformationInput( DicomStudio.dicomImage.getOutput());
reslice_rotation_z.SetResliceAxes(transform_matrix_rotation_z);
reslice_rotation_z.SetInterpolationModeToLinear();
reslice_rotation_z.Update();
using vtk 5.6
input has spacing 0.3 0.3 0.5 nad out put has 1.0 1.0 1.0
2012/7/4 Jonathan Ruiz Peinado <jonathan.ruiz3 at gmail.com>
> Hi, It's a concept question, I tough that vtkImageData spacing was the
> real distance between each pixel or pixel size, so if spacing[0] is 0.5 the
> lenght of a pixel along the axis is 0.5 in units(mm).
>
> But After use vtkImageReslice, the output spaicng change to 1.0 1.0 1.0
> where the input spacing was 0.3 0.3 0.5, I though it would chage the size
> of my image data, the real size, but seems that the image still having the
> same real size, so I got to be wrong about spacing.
>
>
> Is not "spacing" the space between cells/points/pixels ?
> If I got spacing = 1.0 means that I got a cells/points/pixels each 1.0
> units (mm) ?
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120704/13df926c/attachment.htm>
More information about the vtkusers
mailing list