# HG changeset patch # User Sebastien Jodogne # Date 1620985617 -7200 # Node ID f9eda86f9045d5d1e3fff0a7f4d119d07529aeb9 # Parent 72af097bb92b342c73a004dc65420be846cf9209 ImageProcessing::Convert() from Float32 to RGB24 diff -r 72af097bb92b -r f9eda86f9045 OrthancFramework/Sources/Images/ImageProcessing.cpp --- a/OrthancFramework/Sources/Images/ImageProcessing.cpp Thu May 13 14:11:47 2021 +0200 +++ b/OrthancFramework/Sources/Images/ImageProcessing.cpp Fri May 14 11:46:57 2021 +0200 @@ -1019,6 +1019,13 @@ return; } + if (target.GetFormat() == PixelFormat_RGB24 && + source.GetFormat() == PixelFormat_Float32) + { + ConvertFloatToGrayscale(target, source); + return; + } + throw OrthancException(ErrorCode_NotImplemented); }