# HG changeset patch # User Sebastien Jodogne # Date 1521042631 -3600 # Node ID a9459c7d4bc2c3bd50e79f5e4b4b62beb8db75a7 # Parent 0cacb38297a971383e031ccd7ee16f3496c1fc3e fix color-to-grayscale conversion diff -r 0cacb38297a9 -r a9459c7d4bc2 Core/Images/ImageProcessing.cpp --- a/Core/Images/ImageProcessing.cpp Wed Mar 14 13:46:17 2018 +0100 +++ b/Core/Images/ImageProcessing.cpp Wed Mar 14 16:50:31 2018 +0100 @@ -114,7 +114,7 @@ // Y = 0.2126 R + 0.7152 G + 0.0722 B int32_t v = (2126 * static_cast(s[0]) + 7152 * static_cast(s[1]) + - 0722 * static_cast(s[2])) / 1000; + 0722 * static_cast(s[2])) / 10000; if (static_cast(v) < static_cast(minValue)) {