From 7dbb47d78980c4ebb2bef5cf4bad69e19a2067fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr> Date: Tue, 16 Jun 2020 10:52:16 +0200 Subject: [PATCH] BUG: use the PCA transformation matrix instead of the ICA transformation matrix to determine the output size --- .../DimensionalityReduction/include/otbFastICAImageFilter.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Filtering/DimensionalityReduction/include/otbFastICAImageFilter.hxx b/Modules/Filtering/DimensionalityReduction/include/otbFastICAImageFilter.hxx index ecbda929e7..1c513a4b06 100644 --- a/Modules/Filtering/DimensionalityReduction/include/otbFastICAImageFilter.hxx +++ b/Modules/Filtering/DimensionalityReduction/include/otbFastICAImageFilter.hxx @@ -82,7 +82,8 @@ void FastICAImageFilter<TInputImage, TOutputImage, TDirectionOfTransformation>:: unsigned int theOutputDimension = 0; if (m_GivenTransformationMatrix) { - theOutputDimension = m_TransformationMatrix.Rows() >= m_TransformationMatrix.Cols() ? m_TransformationMatrix.Rows() : m_TransformationMatrix.Cols(); + const auto & pcaMatrix = m_PCAFilter->GetTransformationMatrix(); + theOutputDimension = pcaMatrix.Rows() >= pcaMatrix.Cols() ? pcaMatrix.Rows() : pcaMatrix.Cols(); } else { -- GitLab