[vtkusers] vtkTIFFReader inverting images

Chris Volpe ARA/SED cvolpe at ara.com
Sun Jul 3 21:02:31 EDT 2011


Hi all-

  I'm encountering a problem with vtkTIFFReader that I don't appear to have with other image readers (such as vtkBMPReader). I created an image from a rendering window and wrote it out with vtkTIFFWriter. In another script, I read it in with vtkImageReader and try rendering it in two different ways: one with a vtkImageViewer2  object, and the other with a vtkActor2D tied to a vtkImageMapper. In each case, the image is rendered upside-down. I've tried playing with the tiff reader's OrientationType value, but for any value other than "1" (ORIENTATION_TOPLEFT) it gives me errors like this:

ERROR: In ..\..\VTK5.6_SourceRelease\IO\vtkTIFFReader.cxx, line 1353
vtkTIFFReader (02A9FF18): Problem reading the row: 199

I've also tried turning on and off the FileLowerLeft flag in the superclass, to no avail. I've verified that the image was written out correctly in the first place, using an external viewer (IrfanView). I've also used that viewer to write out a BMP version of the file, and read it in with vtkBMPReader, and everything works fine. Is there a bug in vtkTIFFReader?

thanks,

Chris
--
Christopher R. Volpe, Ph.D.                                                           Email: cvolpe at ara.com<mailto:cvolpe at ara.com>
Senior Scientist, Information Exploitation Systems             Main Desk: 919-582-3300
Applied Research Associates, Inc<http://www.ara.com/>                                                     Direct: 919-582-3380
8537 Six Forks Rd., Suite 6000                                                            Fax : 919-582-3301
Raleigh, NC 27615                                         Web: http://www.ara.com/offices/NC.htm

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110704/82f867e9/attachment.htm>


More information about the vtkusers mailing list