Mercurial > hg > orthanc
changeset 985:0bfdfc0c6b9b plugins
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 01 Jul 2014 15:22:14 +0200 |
parents | e077093bf1a9 |
children | 8566ba2d4b3a |
files | Plugins/Samples/GdcmDecoding/Plugin.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Samples/GdcmDecoding/Plugin.cpp Tue Jul 01 14:30:42 2014 +0200 +++ b/Plugins/Samples/GdcmDecoding/Plugin.cpp Tue Jul 01 15:22:14 2014 +0200 @@ -71,13 +71,15 @@ image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8) { format = Orthanc::PixelFormat_RGB24; + return true; } else if (image.GetPixelFormat().GetSamplesPerPixel() == 4 && image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8) { format = Orthanc::PixelFormat_RGBA32; + return true; } - + return false; }