comparison OrthancFramework/Sources/Images/ImageProcessing.cpp @ 4447:8421b3fc02d7

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 13 Jan 2021 17:17:50 +0100
parents 19e8540064d8
children 5774fe497ff2
comparison
equal deleted inserted replaced
4446:19e8540064d8 4447:8421b3fc02d7
1085 // New in Orthanc 1.9.0 1085 // New in Orthanc 1.9.0
1086 uint8_t grayscale = (2126 * static_cast<uint16_t>(red) + 1086 uint8_t grayscale = (2126 * static_cast<uint16_t>(red) +
1087 7152 * static_cast<uint16_t>(green) + 1087 7152 * static_cast<uint16_t>(green) +
1088 0722 * static_cast<uint16_t>(blue)) / 10000; 1088 0722 * static_cast<uint16_t>(blue)) / 10000;
1089 Orthanc::ImageProcessing::Set(image, grayscale); 1089 Orthanc::ImageProcessing::Set(image, grayscale);
1090 break; 1090 return;
1091 } 1091 }
1092 1092
1093 case PixelFormat_RGBA32: 1093 case PixelFormat_RGBA32:
1094 p[0] = red; 1094 p[0] = red;
1095 p[1] = green; 1095 p[1] = green;