Mercurial > hg > orthanc-wsi
changeset 378:e5fb8f7ade59
enabled SignedGrayscale16 in deep zoom
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 05 Apr 2025 14:58:21 +0200 (3 months ago) |
parents | be713f91c3e6 |
children | 1a01f3456ce0 |
files | ViewerPlugin/OrthancPyramidFrameFetcher.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ViewerPlugin/OrthancPyramidFrameFetcher.cpp Sat Apr 05 14:52:55 2025 +0200 +++ b/ViewerPlugin/OrthancPyramidFrameFetcher.cpp Sat Apr 05 14:58:21 2025 +0200 @@ -164,6 +164,11 @@ targetFormat = Orthanc::PixelFormat_Grayscale8; break; + case OrthancPluginPixelFormat_SignedGrayscale16: + sourceFormat = Orthanc::PixelFormat_SignedGrayscale16; + targetFormat = Orthanc::PixelFormat_Grayscale8; + break; + default: throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); }