Mercurial > hg > orthanc
comparison Core/DicomParsing/Internals/DicomImageDecoder.cpp @ 3525:8c66c9c2257b
fix ImageProcessing::ShiftScale() on float images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Sep 2019 17:16:54 +0200 |
parents | 4e43e67f8ecf |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3524:d96379a965de | 3525:8c66c9c2257b |
---|---|
355 | 355 |
356 template <typename PixelType> | 356 template <typename PixelType> |
357 static void CopyPixels(ImageAccessor& target, | 357 static void CopyPixels(ImageAccessor& target, |
358 const DicomIntegerPixelAccessor& source) | 358 const DicomIntegerPixelAccessor& source) |
359 { | 359 { |
360 // WARNING - "::min()" should be replaced by "::lowest()" if | |
361 // dealing with float or double (which is not the case so far) | |
360 const PixelType minValue = std::numeric_limits<PixelType>::min(); | 362 const PixelType minValue = std::numeric_limits<PixelType>::min(); |
361 const PixelType maxValue = std::numeric_limits<PixelType>::max(); | 363 const PixelType maxValue = std::numeric_limits<PixelType>::max(); |
362 | 364 |
363 for (unsigned int y = 0; y < source.GetInformation().GetHeight(); y++) | 365 for (unsigned int y = 0; y < source.GetInformation().GetHeight(); y++) |
364 { | 366 { |