<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 13px;">
<div style="">Hi all-<br>
<br>
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:<br>
<br>
ERROR: In ..\..\VTK5.6_SourceRelease\IO\vtkTIFFReader.cxx, line 1353<br>
vtkTIFFReader (02A9FF18): Problem reading the row: 199<br>
<br>
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?<br>
<br>
thanks,<br>
</div>
<div><br>
<div><font face="Tahoma" size="2">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 24pt; font-family: 'Monotype Corsiva';">Chris</span><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"><!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /--><o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; font-family: 'Times New Roman','serif';">--<br>
Christopher R. Volpe, Ph.D.
</span><span style="font-size: 10pt; font-family: 'Times New Roman','serif';" lang="FR">Email:
<a href="mailto:cvolpe@ara.com">cvolpe@ara.com</a> <o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; font-family: 'Times New Roman','serif';" lang="FR">Senior Scientist, Information Exploitation Systems Main Desk: 919-582-3300<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; font-family: 'Times New Roman','serif';"><a href="http://www.ara.com/">Applied Research Associates, Inc</a> Direct: 919-582-3380<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; font-family: 'Times New Roman','serif';" lang="FR">8537 Six Forks Rd., Suite 6000 Fax : 919-582-3301<o:p></o:p></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: 10pt; font-family: 'Times New Roman','serif';" lang="FR">Raleigh, NC 27615 Web:
</span><span style="font-size: 10pt; font-family: 'Times New Roman','serif';"><a title="http://www.ara.com/offices/NC.htm" href="http://www.ara.com/offices/NC.htm">http://www.ara.com/offices/NC.htm</a></span><span style="font-size: 10pt; font-family: 'Times New Roman','serif';" lang="FR"><o:p></o:p></span></p>
</font></div>
</div>
<br>
</div>
</body>
</html>