[Insight-users] ReinitializeLevelSetImageFilter
Bryn Lloyd
blloyd at vision.ee.ethz.ch
Fri Mar 6 09:36:20 EST 2009
I have posted a bug report:
http://public.kitware.com/Bug/view.php?id=8680
This is the code that should fix the problem:
void
ReinitializeLevelSetImageFilter<TLevelSet>
::GenerateData()
{
this->AllocateOutput();
//****** NEW ******
this->m_Marcher->SetOutputOrigin(this->GetInput()->GetOrigin());
this->m_Marcher->SetOutputDirection(this->GetInput()->GetDirection());
this->m_Marcher->SetOutputSpacing(this->GetInput()->GetSpacing());
//****** NEW ******
if( m_NarrowBanding )
{
this->GenerateDataNarrowBand();
}
else
{
this->GenerateDataFull();
}
}
--Bryn
More information about the Insight-users
mailing list