# HG changeset patch # User Sebastien Jodogne # Date 1743852269 -7200 # Node ID 8b7354bd865494c445e555c656ae5a63eab894dc # Parent 8964b391fe92ff9980d749da862d1651e86fb0b7 added support for more image types in ImageProcessing::ShiftScale2() diff -r 8964b391fe92 -r 8b7354bd8654 OrthancFramework/Sources/Images/ImageProcessing.cpp --- a/OrthancFramework/Sources/Images/ImageProcessing.cpp Sat Apr 05 12:56:02 2025 +0200 +++ b/OrthancFramework/Sources/Images/ImageProcessing.cpp Sat Apr 05 13:24:29 2025 +0200 @@ -1541,6 +1541,39 @@ switch (source.GetFormat()) { + case PixelFormat_Grayscale8: + if (useRound) + { + ShiftScaleIntegerInternal(target, source, a, b); + } + else + { + ShiftScaleIntegerInternal(target, source, a, b); + } + return; + + case PixelFormat_Grayscale16: + if (useRound) + { + ShiftScaleIntegerInternal(target, source, a, b); + } + else + { + ShiftScaleIntegerInternal(target, source, a, b); + } + return; + + case PixelFormat_SignedGrayscale16: + if (useRound) + { + ShiftScaleIntegerInternal(target, source, a, b); + } + else + { + ShiftScaleIntegerInternal(target, source, a, b); + } + return; + case PixelFormat_Float32: if (useRound) {