diff Core/DicomParsing/Internals/DicomImageDecoder.cpp @ 3525:8c66c9c2257b

fix ImageProcessing::ShiftScale() on float images
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 25 Sep 2019 17:16:54 +0200
parents 4e43e67f8ecf
children 94f4a18a79cc
line wrap: on
line diff
--- a/Core/DicomParsing/Internals/DicomImageDecoder.cpp	Tue Sep 24 18:06:56 2019 +0200
+++ b/Core/DicomParsing/Internals/DicomImageDecoder.cpp	Wed Sep 25 17:16:54 2019 +0200
@@ -357,6 +357,8 @@
   static void CopyPixels(ImageAccessor& target,
                          const DicomIntegerPixelAccessor& source)
   {
+    // WARNING - "::min()" should be replaced by "::lowest()" if
+    // dealing with float or double (which is not the case so far)
     const PixelType minValue = std::numeric_limits<PixelType>::min();
     const PixelType maxValue = std::numeric_limits<PixelType>::max();