Mercurial > hg > orthanc
comparison Core/DicomParsing/Internals/DicomImageDecoder.cpp @ 2415:7e217a1cc63f
PixelFormat_Float32
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Oct 2017 22:02:05 +0200 |
parents | 7284093111b0 |
children | 5a7c5c541a1d |
comparison
equal
deleted
inserted
replaced
2414:60950e4084ae | 2415:7e217a1cc63f |
---|---|
701 case PixelFormat_Grayscale16: | 701 case PixelFormat_Grayscale16: |
702 case PixelFormat_SignedGrayscale16: | 702 case PixelFormat_SignedGrayscale16: |
703 { | 703 { |
704 // Grayscale image: Stretch its dynamics to the [0,255] range | 704 // Grayscale image: Stretch its dynamics to the [0,255] range |
705 int64_t a, b; | 705 int64_t a, b; |
706 ImageProcessing::GetMinMaxValue(a, b, *image); | 706 ImageProcessing::GetMinMaxIntegerValue(a, b, *image); |
707 | 707 |
708 if (a == b) | 708 if (a == b) |
709 { | 709 { |
710 ImageProcessing::Set(*image, 0); | 710 ImageProcessing::Set(*image, 0); |
711 } | 711 } |