# HG changeset patch # User Sebastien Jodogne # Date 1521719627 -3600 # Node ID dabe9982fca30df430d1400f06437936ab8def46 # Parent fc3f85b29b43ca1b48a5c9c6f70dbb544ad96953 shear-warp on int16_t diff -r fc3f85b29b43 -r dabe9982fca3 Framework/Toolbox/ShearWarpProjectiveTransform.cpp --- 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 + (*target, maxValue, M_view, source, mip, pixelSpacing, + countSlices, shearInterpolation, warpInterpolation); + } else { throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);