[Insight-users] Reading TIFF

Swati Mital swati_mital at hotmail.com
Tue, 27 Jan 2004 17:30:36 +1100


This is a multi-part message in MIME format.

------=_NextPart_000_00B3_01C3E4FB.46551090
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I am trying to read/write a tiff file using itkFileReader as in =
RGBReadWrite.cxx example.  The program throws exception when trying to =
Update() writer.  Basically, m_input and m_output values of the Smart =
Pointer are not being set.

I tried alternatively by reading the TIFF file using libtiff and then =
importing the data into ITK data structures.  It seems to be working =
fine, but when I call SetInput on a pointer in order to load the image =
data it doesn't work.

I think the problem lies in configuring the toolkit using CMake.  I may =
have missed to turn on some option.  Can anyone please let me know what =
are the minimum options required to get the examples in the IO directory =
of the toolkit working?

Thank you
Swati

=20

------=_NextPart_000_00B3_01C3E4FB.46551090
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>I am trying to read/write a tiff file =
using=20
itkFileReader as in RGBReadWrite.cxx example.&nbsp; The program throws =
exception=20
when trying to Update() writer.&nbsp; Basically, m_input and m_output =
values of=20
the Smart Pointer are not being set.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I tried alternatively by reading the =
TIFF file=20
using libtiff and then importing the data into ITK data =
structures.&nbsp; It=20
seems to be working fine, but when I call SetInput on a pointer in order =
to load=20
the image data it doesn't work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I think the problem lies in configuring =
the toolkit=20
using CMake.&nbsp; I may have missed to turn on some option.&nbsp; Can =
anyone=20
please let me know what are the minimum options required to get the =
examples in=20
the IO directory of the toolkit working?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Swati</FONT></DIV><FONT face=3DArial =
size=3D2>
<DIV><BR></FONT><FONT face=3D"Times New Roman"=20
size=3D3>&nbsp;</FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_00B3_01C3E4FB.46551090--