Skip to content
Snippets Groups Projects
Commit 2d2bb896 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Avoid using normalisation filter if not needed (causes tests to fail)

parent 548257fe
No related branches found
No related tags found
No related merge requests found
......@@ -312,10 +312,20 @@ template < class TInputImage, class TOutputImage,
void
PCAImageFilter< TInputImage, TOutputImage, TDirectionOfTransformation >
::ReverseGenerateData ()
{
m_Normalizer->GraftOutput( this->GetOutput() );
{
if ( m_GivenStdDevValues || m_GivenMeanValues )
{
m_Normalizer->GraftOutput(this->GetOutput());
m_Normalizer->Update();
this->GraftOutput( m_Normalizer->GetOutput() );
this->GraftOutput(m_Normalizer->GetOutput());
}
else
{
m_Transformer->GraftOutput( this->GetOutput() );
m_Transformer->Update();
this->GraftOutput( m_Transformer->GetOutput() );
}
}
template < class TInputImage, class TOutputImage,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment