Mercurial > hg > orthanc
comparison Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp @ 2424:7ef9207f31d4
New pixel formats exposed in plugin SDK
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Oct 2017 12:38:02 +0200 |
parents | a3a65de1840f |
children | 59b7aa77a8da |
comparison
equal
deleted
inserted
replaced
2423:5a7c5c541a1d | 2424:7ef9207f31d4 |
---|---|
197 switch (image.GetPixelFormat()) | 197 switch (image.GetPixelFormat()) |
198 { | 198 { |
199 case gdcm::PixelFormat::UINT8: | 199 case gdcm::PixelFormat::UINT8: |
200 return OrthancPluginPixelFormat_RGB24; | 200 return OrthancPluginPixelFormat_RGB24; |
201 | 201 |
202 case gdcm::PixelFormat::UINT16: | |
203 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 3, 1) | |
204 return OrthancPluginPixelFormat_RGB48; | |
205 #else | |
206 throw std::runtime_error("RGB48 pixel format is only supported by Orthanc >= 1.3.1"); | |
207 #endif | |
208 | |
202 default: | 209 default: |
203 break; | 210 break; |
204 } | 211 } |
205 } | 212 } |
206 | 213 |