Mercurial > hg > orthanc
diff Core/Images/ImageProcessing.h @ 4079:73c22208272f
ImageProcessing::ShiftScale2()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 22 Jun 2020 18:59:45 +0200 |
parents | f9863630ec7f |
children | 2e1564f57542 |
line wrap: on
line diff
--- a/Core/Images/ImageProcessing.h Mon Jun 22 15:09:40 2020 +0200 +++ b/Core/Images/ImageProcessing.h Mon Jun 22 18:59:45 2020 +0200 @@ -143,6 +143,18 @@ float scaling, bool useRound); + // Computes "x * scaling + offset" inplace. "useRound" is expensive. + static void ShiftScale2(ImageAccessor& image, + float offset, + float scaling, + bool useRound); + + static void ShiftScale2(ImageAccessor& target, + const ImageAccessor& source, + float offset, + float scaling, + bool useRound); + static void Invert(ImageAccessor& image); static void Invert(ImageAccessor& image, int64_t maxValue);