# HG changeset patch # User Sebastien Jodogne # Date 1637845090 -3600 # Node ID 381c2ca04860c70dab38bcdbbd1e8d143ecb84af # Parent c0986ae1b9fc9741015573409620d3faa461c172 fix DicomIntegerPixelAccessor::GetExtremeValues() on multi-channel images diff -r c0986ae1b9fc -r 381c2ca04860 OrthancFramework/Sources/DicomFormat/DicomIntegerPixelAccessor.cpp --- 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) diff -r c0986ae1b9fc -r 381c2ca04860 OrthancFramework/Sources/DicomFormat/DicomIntegerPixelAccessor.h --- a/OrthancFramework/Sources/DicomFormat/DicomIntegerPixelAccessor.h Thu Nov 25 13:09:27 2021 +0100 +++ b/OrthancFramework/Sources/DicomFormat/DicomIntegerPixelAccessor.h Thu Nov 25 13:58:10 2021 +0100 @@ -64,7 +64,9 @@ void GetExtremeValues(int32_t& min, int32_t& max) const; - int32_t GetValue(unsigned int x, unsigned int y, unsigned int channel = 0) const; + int32_t GetValue(unsigned int x, + unsigned int y, + unsigned int channel) const; const void* GetPixelData() const {