<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi, ITKers<BR>
&nbsp;<BR>
Could some one please explain how to use ReinitializeLevelSetImageFilter to reinitialize a narrow banded levelset?<BR>
&nbsp;<BR>
Here is my code:<BR>
//////////////////////////////////////////////////////<BR>
typedef itk::ReinitializeLevelSetImageFilter&lt;LSVImageType&gt; Filter;<BR>Filter::Pointer filter = Filter::New();<BR>filter-&gt;SetInput(LSVImage);<BR>filter-&gt;NarrowBandingOn();<BR>filter-&gt;SetNarrowBandwidth(8);<BR>
filter-&gt;update();<BR>
//////////////////////////////////////////////////////<BR>
&nbsp;<BR>
What else I need to set? <BR>
I dig into the sourcecode and notice in the function<BR>
"ReinitializeLevelSetImageFilter&lt;TLevelSet&gt;::GenerateDataNarrowBand()", there is an if statement:<BR>
&nbsp;<BR>
if( m_NarrowBanding &amp;&amp; m_InputNarrowBand )<BR>
{<BR>
&nbsp;&nbsp;&nbsp; m_Locator-&gt;NarrowBandingOn();<BR>&nbsp;&nbsp;&nbsp; m_Locator-&gt;SetNarrowBandwidth( m_InputNarrowBandwidth );<BR>&nbsp;&nbsp;&nbsp; m_Locator-&gt;SetInputNarrowBand( m_InputNarrowBand );<BR>
}<BR>
else<BR>{&nbsp;<BR>&nbsp;&nbsp; m_Locator-&gt;NarrowBandingOff();<BR>}<BR>
&nbsp;<BR>
I guess I need to set inputnarrowband also besides inputnarrowbandwidth, but&nbsp;I am playing aroud those NodeContainers......<BR>
&nbsp;<BR>
Thanks<BR>
Siqi<BR>
&nbsp;<BR>
&nbsp;<BR>
<RTE_TEXT></RTE_TEXT><BR><br /><hr />MSN保护盾,十八般武艺保障MSN安全! <a href='http://im.live.cn/safe/' target='_new'>现在就下载!</a></body>
</html>