changeset 3264:3af3b74fbd5c

merge
author am@osimis.io
date Wed, 20 Feb 2019 12:34:33 +0100
parents f58553a98204 (diff) abe709a7d678 (current diff)
children 59a184cbb596
files
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/Images/PixelTraits.h	Wed Feb 20 10:31:31 2019 +0100
+++ b/Core/Images/PixelTraits.h	Wed Feb 20 12:34:33 2019 +0100
@@ -103,6 +103,7 @@
     static void FloatToPixel(PixelType& target,
                              float value)
     {
+      value += 0.5f;
       if (value < static_cast<float>(std::numeric_limits<PixelType>::min()))
       {
         target = std::numeric_limits<PixelType>::min();