[vtkusers] vtkImageViewer2 is resetting the z spacing

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Oct 14 05:42:52 EDT 2010


On Wed, Oct 13, 2010 at 7:53 PM, Mark Roden <mmroden at gmail.com> wrote:
> What's going on?  Why is vtkImageViewer2 changing ANYTHING to do with the
> original image, rather than just straight up displaying what it's told to
> display?

This is VTK pipeline. It is reexecuting, you are supposed to use a
filter such as vtkImageChangeInformation. See GDCM FAQ:

https://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Using_GDCM_API#Automatic_ordering_of_slices_for_vtkGDCMImageReader.SetFileNames

HTH
-- 
Mathieu



More information about the vtkusers mailing list