Mercurial > hg > orthanc
comparison Core/ImageFormats/ImageProcessing.cpp @ 1334:7f0aa3c0f659
code improvements
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Mar 2015 15:28:19 +0200 |
parents | 6e7e5ed91c2d |
children | adc6a5704cdb |
comparison
equal
deleted
inserted
replaced
1333:732b6a4ed541 | 1334:7f0aa3c0f659 |
---|---|
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(); |