Mercurial > hg > orthanc-webviewer
comparison Plugin/ParsedDicomImage.cpp @ 18:54d5dd1df2e5
support of FreeBSD
author | jodogne |
---|---|
date | Tue, 07 Apr 2015 17:09:25 +0200 |
parents | 828c61fc8253 |
children | a6492d20b2a8 |
comparison
equal
deleted
inserted
replaced
17:b1eafe1e8511 | 18:54d5dd1df2e5 |
---|---|
242 return true; | 242 return true; |
243 | 243 |
244 case gdcm::PixelFormat::UINT8: | 244 case gdcm::PixelFormat::UINT8: |
245 accessor.AssignWritable(Orthanc::PixelFormat_Grayscale8, width, height, width, buffer); | 245 accessor.AssignWritable(Orthanc::PixelFormat_Grayscale8, width, height, width, buffer); |
246 return true; | 246 return true; |
247 | |
248 default: | |
249 return false; | |
247 } | 250 } |
248 } | 251 } |
249 else if (image.GetPixelFormat().GetSamplesPerPixel() == 3 && | 252 else if (image.GetPixelFormat().GetSamplesPerPixel() == 3 && |
250 image.GetPhotometricInterpretation() == gdcm::PhotometricInterpretation::RGB) | 253 image.GetPhotometricInterpretation() == gdcm::PhotometricInterpretation::RGB) |
251 { | 254 { |
252 switch (image.GetPixelFormat()) | 255 switch (image.GetPixelFormat()) |
253 { | 256 { |
254 case gdcm::PixelFormat::UINT8: | 257 case gdcm::PixelFormat::UINT8: |
255 accessor.AssignWritable(Orthanc::PixelFormat_RGB24, width, height, 3 * width, buffer); | 258 accessor.AssignWritable(Orthanc::PixelFormat_RGB24, width, height, 3 * width, buffer); |
256 return true; | 259 return true; |
260 | |
261 default: | |
262 return false; | |
257 } | 263 } |
258 } | 264 } |
259 | 265 |
260 return false; | 266 return false; |
261 } | 267 } |