Mercurial > hg > orthanc
diff Core/Images/ImageProcessing.cpp @ 2645:89b789366596
Grayscale64 pixel format
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 31 May 2018 08:31:22 +0200 |
parents | 3d65adee289a |
children | 5f2dd8b6ee2f |
line wrap: on
line diff
--- a/Core/Images/ImageProcessing.cpp Mon May 28 10:54:59 2018 +0200 +++ b/Core/Images/ImageProcessing.cpp Thu May 31 08:31:22 2018 +0200 @@ -705,6 +705,17 @@ } return; + case PixelFormat_Grayscale64: + if (value == 0) + { + memset(image.GetBuffer(), 0, image.GetPitch() * image.GetHeight()); + } + else + { + SetInternal<uint64_t>(image, value); + } + return; + case PixelFormat_SignedGrayscale16: if (value == 0) {