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