[vtkusers] vtkImageReslice changes committed
David Gobbi
dgobbi at irus.rri.on.ca
Mon May 21 15:43:29 EDT 2001
I committed a handful of modifications to vtkImageReslice last week,
so if anyone finds code where the new version is not quite backwards
compatible with the old version, please contact me.
The main changes are 1) the class has moved from 'contrib' to 'imaging',
2) a new set of methods & examples have been provided to make it easier
to use vtkImageReslice for operations such as permutation, resampling,
slice extraction, and image transformation and
3) the default settings for the output Spacing, Origin, and Extent have
changed (the previous defaults weren't very useful)
For python users, a fairly sophisticated example is provided:
vtk/python/vtkSliceViewerWidget.py. The performance of the example
will depend on how well your video card handles glDrawPixels
acceleration, professional OpenGL boards and the nVidia GeForce boards
do very well but other PC video boards probably will not.
Also, a bug was discovered in the oblique slicing code which was hurting
the efficiency (sometimes by a large factor) when the output bounds
were much larger/smaller than the input bounds. This has been fixed.
- David
--
David Gobbi, MSc dgobbi at irus.rri.on.ca
Advanced Imaging Research Group
Robarts Research Institute, University of Western Ontario
More information about the vtkusers
mailing list