<!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.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I get a runtime error when I try to run the
FastMarchingImageFilter.cxx example. </FONT></DIV>
<DIV><FONT face=Arial size=2>I use the image file and the parameters that are
suggested in the software guide.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Below is a small part of the code, the error occurs
when writer1->Update() is invoked, i.e. "C" is never printed.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Anyone who have experienced the same
problem?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>/ Erik</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> std::cerr << "A" <<
std::endl;<BR> caster1->SetInput( smoothing->GetOutput()
);<BR> writer1->SetInput( caster1->GetOutput() );<BR>
writer1->SetFileName("FastMarchingFilterOutput1.png");<BR>
caster1->SetOutputMinimum( 0 );<BR>
caster1->SetOutputMaximum( 255 );<BR> std::cerr << "B" <<
std::endl; <BR> writer1->Update();<BR> std::cerr <<
"C" << std::endl; </FONT></DIV></BODY></HTML>