From e784752f97e5f6144b57ac2191ffea79c2befd87 Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Fri, 8 Apr 2016 17:48:05 -0500 Subject: [PATCH] BUG: Valgrind detected uninitialized variable Denoise image filter was behaving erratically an that often caused images with very poor output quality to be produced. Initializing this variable did not fix the overall problem. --- Utilities/itkAdaptiveNonLocalMeansDenoisingImageFilter.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Utilities/itkAdaptiveNonLocalMeansDenoisingImageFilter.hxx b/Utilities/itkAdaptiveNonLocalMeansDenoisingImageFilter.hxx index 25d91c294..41f0bdbab 100644 --- a/Utilities/itkAdaptiveNonLocalMeansDenoisingImageFilter.hxx +++ b/Utilities/itkAdaptiveNonLocalMeansDenoisingImageFilter.hxx @@ -43,6 +43,7 @@ AdaptiveNonLocalMeansDenoisingImageFilter m_Epsilon( 0.00001 ), m_MeanThreshold( 0.95 ), m_VarianceThreshold( 0.5 ), + m_SmoothingFactor( 1.0 ), m_SmoothingVariance( 2.0 ), m_MaximumInputPixelIntensity( NumericTraits::NonpositiveMin() ), m_MinimumInputPixelIntensity( NumericTraits::max() )