[vtkusers] Correction: (RE: vtkTIFFReader inverting images
Chris Volpe ARA/SED
cvolpe at ara.com
Mon Jul 4 08:12:11 EDT 2011
Thanks for confirming the issue, Mathieu. Unfortunately, setting the orientation type doesn't work for me (see error below).
Chris
--
Christopher R. Volpe, Ph.D. Email: cvolpe at ara.com
Senior Scientist, Information Exploitation Systems Main Desk: 919-582-3300
Applied Research Associates, Inc 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
________________________________________
From: Mathieu Malaterre [mathieu.malaterre at gmail.com]
Sent: Monday, July 04, 2011 2:23 AM
To: Chris Volpe ARA/SED
Cc: Vtkusers (vtkusers at vtk.org)
Subject: Re: [vtkusers] Correction: (RE: vtkTIFFReader inverting images
I have seen that issue too:
http://www.vtk.org/pipermail/vtk-developers/2008-June/005232.html
This appears after VTK 5.0, so I am using the following trick:
#if VTK_MAJOR_VERSION >= 5 && VTK_MINOR_VERSION > 0
reader->SetOrientationType( ORIENTATION_BOTLEFT );
#endif
On Mon, Jul 4, 2011 at 4:06 AM, Chris Volpe ARA/SED <cvolpe at ara.com> wrote:
> I wrote:
> > In another script, I read it in with vtkImageReader
>
> I meant to say "vtkTIFFReader", not "VtkImageReader". Sorry for the
> confusion.
>
>
> Chris
>
> --
> Christopher R. Volpe,
> Ph.D. Email:
> cvolpe at ara.com
>
> Senior Scientist, Information Exploitation Systems Main Desk:
> 919-582-3300
>
> Applied Research Associates,
> Inc 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
>
> ________________________________
> From: vtkusers-bounces at vtk.org [vtkusers-bounces at vtk.org] on behalf of Chris
> Volpe ARA/SED [cvolpe at ara.com]
> Sent: Sunday, July 03, 2011 9:02 PM
> To: Vtkusers (vtkusers at vtk.org)
> Subject: [vtkusers] vtkTIFFReader inverting images
>
> 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
>
> Senior Scientist, Information Exploitation Systems Main Desk:
> 919-582-3300
>
> Applied Research Associates,
> Inc 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
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
Mathieu
More information about the vtkusers
mailing list