comparison Plugins/Samples/GdcmDecoding/Plugin.cpp @ 985:0bfdfc0c6b9b plugins

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Jul 2014 15:22:14 +0200
parents 80d4f1618b33
children 501880d76474
comparison
equal deleted inserted replaced
984:e077093bf1a9 985:0bfdfc0c6b9b
69 } 69 }
70 else if (image.GetPixelFormat().GetSamplesPerPixel() == 3 && 70 else if (image.GetPixelFormat().GetSamplesPerPixel() == 3 &&
71 image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8) 71 image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8)
72 { 72 {
73 format = Orthanc::PixelFormat_RGB24; 73 format = Orthanc::PixelFormat_RGB24;
74 return true;
74 } 75 }
75 else if (image.GetPixelFormat().GetSamplesPerPixel() == 4 && 76 else if (image.GetPixelFormat().GetSamplesPerPixel() == 4 &&
76 image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8) 77 image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8)
77 { 78 {
78 format = Orthanc::PixelFormat_RGBA32; 79 format = Orthanc::PixelFormat_RGBA32;
79 } 80 return true;
80 81 }
82
81 return false; 83 return false;
82 } 84 }
83 85
84 86
85 ORTHANC_PLUGINS_API int32_t DecodeImage(OrthancPluginRestOutput* output, 87 ORTHANC_PLUGINS_API int32_t DecodeImage(OrthancPluginRestOutput* output,