Commit 03cf21b2 authored by Cédric Traizet's avatar Cédric Traizet

BUG: do not multiply the output eigenvector by their corresponding eigenvalues...

BUG: do not multiply the output eigenvector by their corresponding eigenvalues after the transformation computation
parent 0ff5acb2
Pipeline #3098 passed with stages
in 62 minutes and 26 seconds
......@@ -354,7 +354,15 @@ void PCAImageFilter<TInputImage, TOutputImage, TDirectionOfTransformation>::Gene
throw itk::ExceptionObject(__FILE__, __LINE__, "Null Eigen value !!", ITK_LOCATION);
}
}
transf = valP * transf.transpose();
if (m_Whitening)
{
transf = valP * transf.transpose();
}
else
{
transf = transf.transpose();
}
transf.flipud();
if (m_NumberOfPrincipalComponentsRequired != this->GetInput()->GetNumberOfComponentsPerPixel())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment