Commit 573d9f6e authored by Cresson Remi's avatar Cresson Remi
Browse files

ENH: remove check sum(p)==1 because (1) float sum can sometimes be > 1 (2)...

ENH: remove check sum(p)==1 because (1) float sum can sometimes be > 1 (2) numbers can be scaled e.g. uint8
parent e7ea3d7f
No related merge requests found
Showing with 0 additions and 2 deletions
+0 -2
...@@ -103,8 +103,6 @@ ClassificationMosaicArgmaxFilter<TInputImage, TOutputImage, TInternalValueType> ...@@ -103,8 +103,6 @@ ClassificationMosaicArgmaxFilter<TInputImage, TOutputImage, TInternalValueType>
isData = true; isData = true;
for (unsigned int band = 0 ; band < nBands ; band++) for (unsigned int band = 0 ; band < nBands ; band++)
{ {
if (interpolatedPixel[band]>1)
itkExceptionMacro("Pixel value > 1");
tmpPixel[band] += interpolatedPixel[band]; tmpPixel[band] += interpolatedPixel[band];
} }
} // Interpolated pixel is not empty } // Interpolated pixel is not empty
......
Supports Markdown
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