vtkImageInterpolator when original image direction was -1 for an axis

"Andrew J. Buckler (Elucid Bioimaging)" <[email protected]>
Newsgroups gmane.comp.lib.vtk.user
Message-ID <DM6PR16MB2585E73908FFAC79152D421382BE0@DM6PR16MB2585.namprd16.prod.outlook.com>
Hello,
I have an application that successfully uses vtkImageInterpolator that ultimately use DICOM data read in by ITK. These data sets display correctly even when the z direction is -1, but the interpolator does not work when the data coordinate is less than the origin.

It is possible that the problem originates in my use of vtkVolumePicker to pick the point, but this appears well behaved, in returning a coordinate smaller than the value of the origin, as makes sense for the direction being negative, and the point it returns is correct in the volume.

Resetting the origin doesn't help, as the picker still returns a coordinate smaller than the (new) origin - it seems to just slide all numbers down.

Rotating the image so as to make the direction of the z axis positive does make it work - but then the display causes an unintended mirror image problem (e.g., the aorta comes in front of the heart rather than staying behind the heart in a chest image).

I am sure it must be obvious but I have not yet seen what to do.

Thank you,
Andy

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.