comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 4065:d6362b2c4b61 framework

export dcmdata in shared library, rounding in convolution tests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Jun 2020 18:04:28 +0200
parents 9214e3a7b0a2
children a4f28efdfccf
comparison
equal deleted inserted replaced
4063:e00f3d089991 4065:d6362b2c4b61
858 858
859 if (smooth && 859 if (smooth &&
860 (targetWidth < decoded->GetWidth() || 860 (targetWidth < decoded->GetWidth() ||
861 targetHeight < decoded->GetHeight())) 861 targetHeight < decoded->GetHeight()))
862 { 862 {
863 ImageProcessing::SmoothGaussian5x5(*decoded); 863 ImageProcessing::SmoothGaussian5x5(*decoded, false /* be fast, don't round */);
864 } 864 }
865 865
866 ImageProcessing::Resize(*resized, *decoded); 866 ImageProcessing::Resize(*resized, *decoded);
867 DefaultHandler(call, resized, ImageExtractionMode_Preview, false); 867 DefaultHandler(call, resized, ImageExtractionMode_Preview, false);
868 } 868 }
904 904
905 if (smooth && 905 if (smooth &&
906 (targetWidth < decoded->GetWidth() || 906 (targetWidth < decoded->GetWidth() ||
907 targetHeight < decoded->GetHeight())) 907 targetHeight < decoded->GetHeight()))
908 { 908 {
909 ImageProcessing::SmoothGaussian5x5(*rescaled); 909 ImageProcessing::SmoothGaussian5x5(*rescaled, false /* be fast, don't round */);
910 } 910 }
911 911
912 ImageProcessing::Resize(*resized, *rescaled); 912 ImageProcessing::Resize(*resized, *rescaled);
913 DefaultHandler(call, resized, ImageExtractionMode_UInt8, invert); 913 DefaultHandler(call, resized, ImageExtractionMode_UInt8, invert);
914 } 914 }