[Insight-users] Reading Images
Lorensen, William E (Research)
lorensen at crd.ge.com
Tue, 27 Jan 2004 07:15:22 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C3E4CF.3D004508
Content-Type: text/plain;
charset="iso-8859-1"
You should catch the exception and print the results. Usually, the
description is helpful. Something like:
try
{
filter->Update();
}
catch (itk::ExceptionObject& e)
{
std::cerr << "Exception detected: " << e.GetDescription();
return -1;
}
-----Original Message-----
From: Swati Mital [mailto:swati_mital at hotmail.com]
Sent: Tuesday, January 27, 2004 5:45 AM
To: insight-users at itk.org
Subject: [Insight-users] Reading Images
I am having problem running the IO examples in the Insight toolkit related
to reading and writing of the images. I use TIFF files. The exception is
thrown at the Update() function. Any clues why this is happening (something
to do with CMake config??) and how to resolve this.
By reading past emails, I saw that Steven had a similar problem, but of
course he was using a file format that is not compatible with ITK. Steven,
could you solve the run time error by using compatible formats?
Hope to find a solution soon.
Swati
------_=_NextPart_001_01C3E4CF.3D004508
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=478050912-27012004><FONT face=Arial color=#0000ff size=2>You
should catch the exception and print the results. Usually, the description is
helpful. Something like:</FONT></SPAN></DIV>
<DIV><SPAN class=478050912-27012004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=478050912-27012004><FONT face=Arial color=#0000ff
size=2>try</FONT></SPAN></DIV>
<DIV><SPAN class=478050912-27012004><FONT face=Arial color=#0000ff size=2>
{</FONT></SPAN></DIV>
<DIV><SPAN class=478050912-27012004><FONT face=Arial color=#0000ff size=2>
filter->Update();</FONT></SPAN></DIV>
<DIV><SPAN class=478050912-27012004><FONT face=Arial color=#0000ff
size=2> }<BR>catch (itk::ExceptionObject& e)<BR>
{<BR> std::cerr << "Exception detected: " <<
e.GetDescription();<BR> return -1;<BR> }<BR></FONT></SPAN></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=478050912-27012004> </SPAN>-----Original Message-----<BR><B>From:</B>
Swati Mital [mailto:swati_mital at hotmail.com]<BR><B>Sent:</B> Tuesday, January
27, 2004 5:45 AM<BR><B>To:</B> insight-users at itk.org<BR><B>Subject:</B>
[Insight-users] Reading Images<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>I am having problem running the IO examples in
the Insight toolkit related to reading and writing of the images. I use
TIFF files. The exception is thrown at the Update() function. Any
clues why this is happening (something to do with CMake config??) and how to
resolve this. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>By reading past emails, I saw that Steven had a
similar problem, but of course he was using a file format that is not
compatible with ITK. Steven, could you solve the run time error by using
compatible formats?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope to find a solution soon.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Swati</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C3E4CF.3D004508--