diff 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
line wrap: on
line diff
--- a/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp	Mon Oct 09 21:58:08 2017 +0200
+++ b/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp	Tue Oct 10 12:38:02 2017 +0200
@@ -199,6 +199,13 @@
         case gdcm::PixelFormat::UINT8:
           return OrthancPluginPixelFormat_RGB24;
 
+        case gdcm::PixelFormat::UINT16:
+#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 3, 1)
+          return OrthancPluginPixelFormat_RGB48;
+#else
+          throw std::runtime_error("RGB48 pixel format is only supported by Orthanc >= 1.3.1");
+#endif
+          
         default:
           break;
       }