diff OrthancFramework/Sources/DicomFormat/DicomIntegerPixelAccessor.cpp @ 4825:381c2ca04860

fix DicomIntegerPixelAccessor::GetExtremeValues() on multi-channel images
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 25 Nov 2021 13:58:10 +0100
parents d9473bd5ed43
children 4cfd96732076
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomFormat/DicomIntegerPixelAccessor.cpp	Thu Nov 25 13:09:27 2021 +0100
+++ b/OrthancFramework/Sources/DicomFormat/DicomIntegerPixelAccessor.cpp	Thu Nov 25 13:58:10 2021 +0100
@@ -115,7 +115,7 @@
       {
         for (unsigned int c = 0; c < channels; c++)
         {
-          int32_t v = GetValue(x, y);
+          int32_t v = GetValue(x, y, c);
           if (v < min)
             min = v;
           if (v > max)