diff OrthancServer/FromDcmtkBridge.cpp @ 465:7a966b440f19

signed images to PNG
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2013 11:15:27 +0200
parents 5987dd8e0776
children b22312081388 08eca5d86aad
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.cpp	Fri Jul 12 10:37:31 2013 +0200
+++ b/OrthancServer/FromDcmtkBridge.cpp	Fri Jul 12 11:15:27 2013 +0200
@@ -1311,6 +1311,11 @@
           format = PixelFormat_Grayscale16;
           break;
 
+        case ImageExtractionMode_Int16:
+          supported = true;
+          format = PixelFormat_SignedGrayscale16;
+          break;
+
         default:
           supported = false;
           break;
@@ -1362,6 +1367,10 @@
           ExtractPngImageTruncate<uint16_t>(result, *accessor, format);
           break;
 
+        case ImageExtractionMode_Int16:
+          ExtractPngImageTruncate<int16_t>(result, *accessor, format);
+          break;
+
         default:
           throw OrthancException(ErrorCode_NotImplemented);
       }