[vtkusers] 2D Image flipped when imported
David Gobbi
dgobbi at irus.rri.ca
Fri Jun 15 10:40:08 EDT 2001
On Fri, 15 Jun 2001, TJ Wilkinson wrote:
> I have a set of raw images stored in a single file. When I use
> ImageReader to load these images and then view them with ImageViewer or
> some such tool, they look fine. If I read the data from the file into an
> array and then import the data, the image is mirrored across its
> horizontal axis.
>
> What is the best way to deal with this, assuming I have to get the data
> from an array in memory? Should I mirror the image after I've loaded it,
> or is there some way to import it with a different orientation from an
> array?
There is no way to flip it while importing it. You have to flip it either
before importing it, or after. You could add this feature and send a
patch, though it isn't be trivial to implement as it sounds.
- David
More information about the vtkusers
mailing list