diff Plugin/DecodedImageAdapter.cpp @ 172:330ecfd96aec

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Oct 2017 12:53:46 +0200
parents b0910ae2ace5
children 4f0f4f64cff3
line wrap: on
line diff
--- a/Plugin/DecodedImageAdapter.cpp	Thu Aug 24 19:49:20 2017 +0200
+++ b/Plugin/DecodedImageAdapter.cpp	Tue Oct 10 12:53:46 2017 +0200
@@ -206,7 +206,7 @@
       case PixelFormat_SignedGrayscale16:
       {
         int64_t a, b;
-        Orthanc::ImageProcessing::GetMinMaxValue(a, b, accessor);
+        Orthanc::ImageProcessing::GetMinMaxIntegerValue(a, b, accessor);
         result["minPixelValue"] = (a < 0 ? static_cast<int32_t>(a) : 0);
         result["maxPixelValue"] = (b > 0 ? static_cast<int32_t>(b) : 1);
         result["color"] = false;
@@ -414,7 +414,7 @@
       converted = buffer->GetAccessor();
 
       int64_t a, b;
-      Orthanc::ImageProcessing::GetMinMaxValue(a, b, accessor);
+      Orthanc::ImageProcessing::GetMinMaxIntegerValue(a, b, accessor);
       result["Orthanc"]["StretchLow"] = static_cast<int32_t>(a);
       result["Orthanc"]["StretchHigh"] = static_cast<int32_t>(b);