Mercurial > hg > orthanc
comparison Core/DicomFormat/DicomImageInformation.cpp @ 2838:f3a2d109e361
new orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 21 Sep 2018 15:48:40 +0200 |
parents | 878b59270859 |
children | 716dd24974ef |
comparison
equal
deleted
inserted
replaced
2837:9451431582e3 | 2838:f3a2d109e361 |
---|---|
251 if (GetBitsAllocated() == 16 && GetChannelCount() == 1 && IsSigned()) | 251 if (GetBitsAllocated() == 16 && GetChannelCount() == 1 && IsSigned()) |
252 { | 252 { |
253 format = PixelFormat_SignedGrayscale16; | 253 format = PixelFormat_SignedGrayscale16; |
254 return true; | 254 return true; |
255 } | 255 } |
256 | |
257 if (GetBitsAllocated() == 32 && GetChannelCount() == 1 && !IsSigned()) | |
258 { | |
259 format = PixelFormat_Grayscale32; | |
260 return true; | |
261 } | |
256 } | 262 } |
257 | 263 |
258 if (GetBitsStored() == 8 && | 264 if (GetBitsStored() == 8 && |
259 GetChannelCount() == 3 && | 265 GetChannelCount() == 3 && |
260 !IsSigned() && | 266 !IsSigned() && |