Mercurial > hg > orthanc
changeset 2491:a9459c7d4bc2
fix color-to-grayscale conversion
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Mar 2018 16:50:31 +0100 |
parents | 0cacb38297a9 |
children | 58c50d627b2f |
files | Core/Images/ImageProcessing.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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<int32_t>(s[0]) + 7152 * static_cast<int32_t>(s[1]) + - 0722 * static_cast<int32_t>(s[2])) / 1000; + 0722 * static_cast<int32_t>(s[2])) / 10000; if (static_cast<int32_t>(v) < static_cast<int32_t>(minValue)) {