[vtkusers] Problem with upside down image (itk-vtk)
David Doria
daviddoria at gmail.com
Mon Oct 1 10:29:13 EDT 2012
Flipping the actual data as Darshan suggested is certainly one way to
do this, but it will usually have repercussions later (you have to
remember that you have switched the coordinate system so you can make
the same transformation on points the user selects etc to make sure
things are actually lining up).
Instead, I recommend you simply view the image from a different
"camera" so that it appears right side up. I wrote this small class
that I use to do this:
https://github.com/daviddoria/ITKVTKCamera
The camera logic is in SetCameraPositionPNG() and
SetCameraPositionMHA(). Hopefully you can adapt something like this
for your needs.
David
More information about the vtkusers
mailing list