Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp @ 4201:2d5209153b32
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Sep 2020 08:18:28 +0200 |
parents | 7112a8af0b63 |
children | 4d42408da117 |
comparison
equal
deleted
inserted
replaced
4200:7112a8af0b63 | 4201:2d5209153b32 |
---|---|
344 return new Image(format, info.GetWidth(), info.GetHeight(), false); | 344 return new Image(format, info.GetWidth(), info.GetHeight(), false); |
345 } | 345 } |
346 | 346 |
347 | 347 |
348 template <typename PixelType> | 348 template <typename PixelType> |
349 static void CopyPixels(const ImageAccessor& target, | 349 static void CopyPixels(ImageAccessor& target, |
350 const DicomIntegerPixelAccessor& source) | 350 const DicomIntegerPixelAccessor& source) |
351 { | 351 { |
352 // WARNING - "::min()" should be replaced by "::lowest()" if | 352 // WARNING - "::min()" should be replaced by "::lowest()" if |
353 // dealing with float or double (which is not the case so far) | 353 // dealing with float or double (which is not the case so far) |
354 const PixelType minValue = std::numeric_limits<PixelType>::min(); | 354 const PixelType minValue = std::numeric_limits<PixelType>::min(); |