[vtkusers] SetDataSpacing

Francois Louis LAILLIER flaillier at eldim.fr
Tue Feb 27 08:25:10 EST 2007


Hello!

When you open your data you must indicate few options.


This code for example


Dim volume As New vtkVolume16Reader
volume.SetFilePrefix
"C:\\DocumentsandSettings\\francoislaillier\\Desktop\\Data\\headsq\\half
"
volume.SetDataDimensions 64, 64            ##Number of pixel in your
image
volume.SetDataByteOrderToLittleEndian	##LSB on the right of Data
volume.SetImageRange 1, 93		##Number of image file.0 to
file.93
volume.SetDataSpacing 3.2, 3.2, 1.5 ## The cell data spacing is the
number of pixel divide by measure.

For CT for example:  200mm / 64 slice = Xspace =3.2

Remember: Xspace = number of pixels divides by width (millimeter)





More information about the vtkusers mailing list