<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Dear All: </DIV>
<DIV> </DIV>
<DIV>I tried to use ReinitializeLevelSetImageFilter. The output looks weird to me. </DIV>
<DIV> </DIV>
<DIV>The input to the filter is binary image binary image with float type (255 as forground, 0 as background).</DIV>
<DIV> </DIV>
<DIV>I tried narroow band on and off. However, the output of this filter gives very high value (10^38) for voxles inside the binary mask. Almost all the outside mask voxels has value zero.</DIV>
<DIV> </DIV>
<DIV>Below is my code, can somebody tell where I made mistake.</DIV>
<DIV> </DIV>
<DIV>Baoyun</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>**************************code************************<BR> typedef typename itk::ReinitializeLevelSetImageFilter< FeatureImageType > DistanceFilterType; <BR> typename DistanceFilterType::Pointer DistanceFilter = DistanceFilterType::New(); <BR> DistanceFilter->SetInput( thresholder->GetOutput() ); <BR> // DistanceFilter->NarrowBandingOn(); <BR> // DistanceFilter->SetNarrowBandwidth( 10 ); <BR> try<BR> {<BR> DistanceFilter->Update(); </DIV>
<DIV> }<BR> catch( itk::ExceptionObject & excep )<BR> {<BR> std::cerr << "Exception caught !" << std::endl;<BR> std::cerr << excep << std::endl;<BR> }</DIV>
<DIV> </DIV>
<DIV> m_levelset2=DistanceFilter->GetOutput();</DIV>
<DIV> </DIV>
<DIV>****************code end*************************<BR></DIV></td></tr></table><br>