Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomFormat/DicomImageInformation.cpp @ 5054:255b02c68908
Added support for RGBA64 images in tools/create-dicom and /preview (Contribution from James Manners - Pliny)
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 08 Jul 2022 15:26:52 +0200 |
parents | df86d2505df8 |
children | 0ea402b4d901 |
comparison
equal
deleted
inserted
replaced
5053:1e435be86887 | 5054:255b02c68908 |
---|---|
378 { | 378 { |
379 format = PixelFormat_RGB24; | 379 format = PixelFormat_RGB24; |
380 return true; | 380 return true; |
381 } | 381 } |
382 | 382 |
383 if (GetBitsStored() == 16 && | |
384 GetChannelCount() == 3 && | |
385 !IsSigned() && | |
386 (ignorePhotometricInterpretation || photometric_ == PhotometricInterpretation_RGB)) | |
387 { | |
388 format = PixelFormat_RGB48; | |
389 return true; | |
390 } | |
391 | |
383 return false; | 392 return false; |
384 } | 393 } |
385 | 394 |
386 | 395 |
387 size_t DicomImageInformation::GetFrameSize() const | 396 size_t DicomImageInformation::GetFrameSize() const |