Mercurial > hg > orthanc-stone
diff Framework/Toolbox/ShearWarpProjectiveTransform.cpp @ 199:dabe9982fca3
shear-warp on int16_t
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Mar 2018 12:53:47 +0100 |
parents | 4abddd083374 |
children | e9c7a78a3e77 |
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);