Mercurial > hg > orthanc
comparison Core/DicomParsing/Internals/DicomImageDecoder.cpp @ 2488:345725b9350c
back to rounding to fix integration tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Mar 2018 17:02:30 +0100 |
parents | 878b59270859 |
children | 52217dc47a4e |
comparison
equal
deleted
inserted
replaced
2487:be1dbb1dcdd6 | 2488:345725b9350c |
---|---|
879 ImageProcessing::Set(*image, 0); | 879 ImageProcessing::Set(*image, 0); |
880 } | 880 } |
881 else | 881 else |
882 { | 882 { |
883 ImageProcessing::ShiftScale(*image, static_cast<float>(-a), | 883 ImageProcessing::ShiftScale(*image, static_cast<float>(-a), |
884 255.0f / static_cast<float>(b - a)); | 884 255.0f / static_cast<float>(b - a), |
885 true /* TODO - Consider using "false" to speed up */); | |
885 } | 886 } |
886 | 887 |
887 // If the source image is not grayscale 8bpp, convert it | 888 // If the source image is not grayscale 8bpp, convert it |
888 if (image->GetFormat() != PixelFormat_Grayscale8) | 889 if (image->GetFormat() != PixelFormat_Grayscale8) |
889 { | 890 { |