Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/ImageProcessing.cpp @ 4664:f9eda86f9045
ImageProcessing::Convert() from Float32 to RGB24
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 14 May 2021 11:46:57 +0200 |
parents | 5774fe497ff2 |
children | ebb801d44e06 |
comparison
equal
deleted
inserted
replaced
4663:72af097bb92b | 4664:f9eda86f9045 |
---|---|
1017 { | 1017 { |
1018 ConvertFloatToGrayscale<PixelFormat_Grayscale8>(target, source); | 1018 ConvertFloatToGrayscale<PixelFormat_Grayscale8>(target, source); |
1019 return; | 1019 return; |
1020 } | 1020 } |
1021 | 1021 |
1022 if (target.GetFormat() == PixelFormat_RGB24 && | |
1023 source.GetFormat() == PixelFormat_Float32) | |
1024 { | |
1025 ConvertFloatToGrayscale<PixelFormat_RGB24>(target, source); | |
1026 return; | |
1027 } | |
1028 | |
1022 throw OrthancException(ErrorCode_NotImplemented); | 1029 throw OrthancException(ErrorCode_NotImplemented); |
1023 } | 1030 } |
1024 | 1031 |
1025 | 1032 |
1026 | 1033 |