From 9ad84f546ee75ae48a3b3875fa117f7d4eaa4f7d Mon Sep 17 00:00:00 2001 From: Victor Poughon <victor.poughon@cnes.fr> Date: Thu, 4 Jul 2019 17:46:02 +0200 Subject: [PATCH] BUG: fix unitialized member variable --- .../Smoothing/include/otbMeanShiftSmoothingImageFilter.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/Filtering/Smoothing/include/otbMeanShiftSmoothingImageFilter.h b/Modules/Filtering/Smoothing/include/otbMeanShiftSmoothingImageFilter.h index 606c00e3d6..ca8e5c5db2 100644 --- a/Modules/Filtering/Smoothing/include/otbMeanShiftSmoothingImageFilter.h +++ b/Modules/Filtering/Smoothing/include/otbMeanShiftSmoothingImageFilter.h @@ -59,10 +59,12 @@ class SpatialRangeJointDomainTransform public: typedef double RealType; - SpatialRangeJointDomainTransform() + SpatialRangeJointDomainTransform(): + m_ImageDimension(0), + m_NumberOfComponentsPerPixel(0), + m_OutputSize(0) { } - // ~SpatialRangeJointDomainTransform() {} typename TOutputJointImage::PixelType operator()(const typename TInputImage::PixelType & inputPixel, const typename TInputImage::IndexType & index) const -- GitLab