changeset 199:dabe9982fca3

shear-warp on int16_t
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 22 Mar 2018 12:53:47 +0100
parents fc3f85b29b43
children 03afbee0cc7b
files Framework/Toolbox/ShearWarpProjectiveTransform.cpp
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Toolbox/ShearWarpProjectiveTransform.cpp	Tue Mar 20 20:03:02 2018 +0100
+++ b/Framework/Toolbox/ShearWarpProjectiveTransform.cpp	Thu Mar 22 12:53:47 2018 +0100
@@ -637,6 +637,14 @@
         (*target, maxValue, M_view, source, mip, pixelSpacing,
          countSlices, shearInterpolation, warpInterpolation);
     }
+    else if (source.GetFormat() == Orthanc::PixelFormat_SignedGrayscale16 &&
+             targetFormat == Orthanc::PixelFormat_SignedGrayscale16)
+    {
+      ApplyAxialInternal2<Orthanc::PixelFormat_SignedGrayscale16,
+                          Orthanc::PixelFormat_SignedGrayscale16>
+        (*target, maxValue, M_view, source, mip, pixelSpacing,
+         countSlices, shearInterpolation, warpInterpolation);
+    }
     else
     {
       throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);