[Insight-developers] error in itkEigenAnalysis2DImageFilter
Tomáš Kazmar
Tomash.Kazmar at seznam.cz
Mon Jul 16 06:53:56 EDT 2007
Hi all,
I think the first line of the following excerpt from ITK3.2.0
itkEigenAnalysis2DImageFilter::GenerateData() is useless and it could
slow down the computation (if it is not thrown away by compiler). If I am
right it should be removed.
outputIt3.Set( eigenVector );
const VectorComponentType norm = eigenVector.GetNorm();
if( norm > 1e-30 )
{
outputIt3.Set( eigenVector / norm );
}
else
{
outputIt3.Set( nullVector );
}
Tomash
More information about the Insight-developers
mailing list