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

PERF: Move the remaining of BeforeThreadedGenerateData() to...

PERF: Move the remaining of BeforeThreadedGenerateData() to GenerateOutputInformation() where it belongs
parent 342ef1f1
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,7 @@ protected:
virtual ~NormalizeVectorImageFilter() { }
void GenerateOutputInformation();
void BeforeThreadedGenerateData();
private:
NormalizeVectorImageFilter ( const Self & );
......
......@@ -48,15 +48,9 @@ NormalizeVectorImageFilter< TInputImage, TOutputImage >
{
m_CovarianceEstimator->SetInput( const_cast<InputImageType*>( this->GetInput() ) );
m_CovarianceEstimator->Update();
}
}
}
template < class TInputImage, class TOutputImage >
void
NormalizeVectorImageFilter< TInputImage, TOutputImage >
::BeforeThreadedGenerateData ()
{
if ( !m_UseMean )
if ( !m_UseMean )
{
typename TInputImage::PixelType vector ( this->GetInput()->GetNumberOfComponentsPerPixel() );
vector.Fill( itk::NumericTraits< typename TInputImage::PixelType::ValueType >::Zero );
......@@ -84,6 +78,7 @@ NormalizeVectorImageFilter< TInputImage, TOutputImage >
this->GetFunctor().SetStdDev( sigma );
}
}
}
} // end of namespace otb
......
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