[Insight-users] reinitialize level set
chensiqi
pidanchen at hotmail.com
Sat Jan 3 17:33:00 EST 2009
Hi, ITKers
Could some one please explain how to use ReinitializeLevelSetImageFilter to reinitialize a narrow banded levelset?
Here is my code:
//////////////////////////////////////////////////////
typedef itk::ReinitializeLevelSetImageFilter<LSVImageType> Filter;Filter::Pointer filter = Filter::New();filter->SetInput(LSVImage);filter->NarrowBandingOn();filter->SetNarrowBandwidth(8);
filter->update();
//////////////////////////////////////////////////////
What else I need to set?
I dig into the sourcecode and notice in the function
"ReinitializeLevelSetImageFilter<TLevelSet>::GenerateDataNarrowBand()", there is an if statement:
if( m_NarrowBanding && m_InputNarrowBand )
{
m_Locator->NarrowBandingOn(); m_Locator->SetNarrowBandwidth( m_InputNarrowBandwidth ); m_Locator->SetInputNarrowBand( m_InputNarrowBand );
}
else{ m_Locator->NarrowBandingOff();}
I guess I need to set inputnarrowband also besides inputnarrowbandwidth, but I am playing aroud those NodeContainers......
Thanks
Siqi
_________________________________________________________________
微软地图率先推出跨城市多点驾车路线查询!
http://ditu.live.com/?form=MRAHAB&rtp=pos.30.454167_116.308611_%E5%A4%AA%E6%B9%96__~pos.29.554046_115.983427_%E5%BA%90%E5%B1%B1__~pos.29.116111_110.478889_%E5%BC%A0%E5%AE%B6%E7%95%8C__&rtop=0~0~0&encType=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090104/0052df24/attachment.htm>
More information about the Insight-users
mailing list