From 573d9f6e3bbda321be1de016dc695cfb844da2b9 Mon Sep 17 00:00:00 2001
From: remi <remi.cresson@irstea.fr>
Date: Fri, 7 Jun 2019 11:41:51 +0200
Subject: [PATCH] ENH: remove check sum(p)==1 because (1) float sum can
 sometimes be > 1 (2) numbers can be scaled e.g. uint8

---
 include/otbClassificationMosaicArgmaxFilter.hxx | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/otbClassificationMosaicArgmaxFilter.hxx b/include/otbClassificationMosaicArgmaxFilter.hxx
index a3ecb26..39c2e4e 100644
--- a/include/otbClassificationMosaicArgmaxFilter.hxx
+++ b/include/otbClassificationMosaicArgmaxFilter.hxx
@@ -103,8 +103,6 @@ ClassificationMosaicArgmaxFilter<TInputImage, TOutputImage, TInternalValueType>
           isData = true;
           for (unsigned int band = 0 ; band < nBands ; band++)
             {
-            if (interpolatedPixel[band]>1)
-              itkExceptionMacro("Pixel value > 1");
             tmpPixel[band] += interpolatedPixel[band];
             }
           } // Interpolated pixel is not empty
-- 
GitLab