Mercurial > hg > orthanc
comparison Core/DicomFormat/DicomImageInformation.cpp @ 855:6d89d5a4a723 jpeg
tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Jun 2014 12:46:15 +0200 |
parents | ff530685e46a |
children | f53358c70c05 |
comparison
equal
deleted
inserted
replaced
854:ff530685e46a | 855:6d89d5a4a723 |
---|---|
174 { | 174 { |
175 format = PixelFormat_RGB24; | 175 format = PixelFormat_RGB24; |
176 return true; | 176 return true; |
177 } | 177 } |
178 | 178 |
179 if (GetBitsStored() >= 9 && GetBitsStored() <= 16 && GetChannelCount() == 1 && !IsSigned()) | 179 if (GetBitsAllocated() == 16 && GetChannelCount() == 1 && !IsSigned()) |
180 { | 180 { |
181 format = PixelFormat_Grayscale16; | 181 format = PixelFormat_Grayscale16; |
182 return true; | 182 return true; |
183 } | 183 } |
184 | 184 |
185 if (GetBitsStored() >= 9 && GetBitsStored() <= 16 && GetChannelCount() == 1 && IsSigned()) | 185 if (GetBitsAllocated() == 16 && GetChannelCount() == 1 && IsSigned()) |
186 { | 186 { |
187 format = PixelFormat_SignedGrayscale16; | 187 format = PixelFormat_SignedGrayscale16; |
188 return true; | 188 return true; |
189 } | 189 } |
190 | 190 |