Mercurial > hg > orthanc-webviewer
comparison Orthanc/ImageFormats/ImageProcessing.cpp @ 23:7a0af291cc90
Synchronization with Orthanc mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 01 Jun 2015 11:52:28 +0200 |
parents | 02f7a0400a91 |
children |
comparison
equal
deleted
inserted
replaced
22:b42eeb4bd1e3 | 23:7a0af291cc90 |
---|---|
207 | 207 |
208 template <typename PixelType> | 208 template <typename PixelType> |
209 void MultiplyConstantInternal(ImageAccessor& image, | 209 void MultiplyConstantInternal(ImageAccessor& image, |
210 float factor) | 210 float factor) |
211 { | 211 { |
212 if (abs(factor - 1.0f) <= std::numeric_limits<float>::epsilon()) | 212 if (std::abs(factor - 1.0f) <= std::numeric_limits<float>::epsilon()) |
213 { | 213 { |
214 return; | 214 return; |
215 } | 215 } |
216 | 216 |
217 const int64_t minValue = std::numeric_limits<PixelType>::min(); | 217 const int64_t minValue = std::numeric_limits<PixelType>::min(); |