comparison 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
comparison
equal deleted inserted replaced
197:fc3f85b29b43 199:dabe9982fca3
635 ApplyAxialInternal2<Orthanc::PixelFormat_Grayscale16, 635 ApplyAxialInternal2<Orthanc::PixelFormat_Grayscale16,
636 Orthanc::PixelFormat_Grayscale16> 636 Orthanc::PixelFormat_Grayscale16>
637 (*target, maxValue, M_view, source, mip, pixelSpacing, 637 (*target, maxValue, M_view, source, mip, pixelSpacing,
638 countSlices, shearInterpolation, warpInterpolation); 638 countSlices, shearInterpolation, warpInterpolation);
639 } 639 }
640 else if (source.GetFormat() == Orthanc::PixelFormat_SignedGrayscale16 &&
641 targetFormat == Orthanc::PixelFormat_SignedGrayscale16)
642 {
643 ApplyAxialInternal2<Orthanc::PixelFormat_SignedGrayscale16,
644 Orthanc::PixelFormat_SignedGrayscale16>
645 (*target, maxValue, M_view, source, mip, pixelSpacing,
646 countSlices, shearInterpolation, warpInterpolation);
647 }
640 else 648 else
641 { 649 {
642 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); 650 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);
643 } 651 }
644 652