Commit ccd221b1 authored by Victor Poughon's avatar Victor Poughon

BUG: fix unitialized member variable

parent d54d7dec
...@@ -34,9 +34,8 @@ namespace otb ...@@ -34,9 +34,8 @@ namespace otb
*/ */
template <class TInputImage, class TOutputImage> template <class TInputImage, class TOutputImage>
EstimateInnerProductPCAImageFilter<TInputImage, TOutputImage> EstimateInnerProductPCAImageFilter<TInputImage, TOutputImage>
::EstimateInnerProductPCAImageFilter() ::EstimateInnerProductPCAImageFilter(): m_NumberOfPrincipalComponentsRequired(1), m_CenterData(true)
{ {
m_NumberOfPrincipalComponentsRequired = 1;
} }
/** /**
......
...@@ -36,6 +36,7 @@ InnerProductPCAImageFilter<TInputImage, TOutputImage> ...@@ -36,6 +36,7 @@ InnerProductPCAImageFilter<TInputImage, TOutputImage>
this->SetNthOutput(0, OutputImageType::New()); this->SetNthOutput(0, OutputImageType::New());
m_EstimatePCAFilter = EstimatePCAFilterType::New(); m_EstimatePCAFilter = EstimatePCAFilterType::New();
m_NormalizePCAFilter = NormalizePCAFilterType::New(); m_NormalizePCAFilter = NormalizePCAFilterType::New();
m_NumberOfPrincipalComponentsRequired = 1;
m_CenterData = true; m_CenterData = true;
m_GenerateMeanComponent = false; m_GenerateMeanComponent = false;
m_MeanFilter = MeanFilterType::New(); m_MeanFilter = MeanFilterType::New();
......
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