[vtkusers] Extract a tube of data from DICOM series data

Vincent32160 vsh at magellium.fr
Fri Nov 7 12:18:53 EST 2014


Hi David,
I followed the steps you advised and it looks ok.
Final question (I hope), I am just wondering what are the units of each
variables: radius, circumferential angle, and longitudinal sample spacings.
Thanks in advance.

De : David Gobbi [mailto:david.gobbi at gmail.com] 
Envoyé : vendredi 7 novembre 2014 15:49
À : Vincent SALEH
Cc : VTK Users
Objet : Re: [vtkusers] Extract a tube of data from DICOM series data

Hi Vincent,

The input to vtkImageReslice should be the original image
(before either stencil has been applied).  In order for
vtkImageReslice to do the interpolation properly, it must
have neighbor voxels for each voxel it extracts.  After it
has unwrapped the whole cylinder, you can select one
"radius" slice for viewing.

With vtkImageReslice, you _must_ specify what output
sampling you want.  Use SetOutputSpacing() to set the
radius, circumferential angle, and longitudinal sample
spacings.  Also use SetOutputExtent() to set the
number of samples for each.

I may have been wrong about having to invert the
transform.  Try feeding it in without GetInverse().

Also, for the transform to work properly, the input image must
be centered.  After all, in cylindrical coordinates the assuption
is that (0,0,0) is at the center of the cylinder.  The filter
vtkImageChangeInformation can center the image (i.e. put
vtkImageChangeInformation with CenterImageOn() before
vtkImageReslice).

Good luck,

 - David 




--
View this message in context: http://vtk.1045678.n5.nabble.com/Extract-a-tube-of-data-from-DICOM-series-data-tp5729381p5729403.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list