Mercurial > hg > orthanc
comparison Core/DicomFormat/DicomImageInformation.cpp @ 863:3c0d0836f704 jpeg
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Jun 2014 17:20:33 +0200 |
parents | 80c7e53a69b5 |
children | f5b0207967bc |
comparison
equal
deleted
inserted
replaced
862:5a125d587810 | 863:3c0d0836f704 |
---|---|
157 } | 157 } |
158 | 158 |
159 | 159 |
160 bool DicomImageInformation::ExtractPixelFormat(PixelFormat& format) const | 160 bool DicomImageInformation::ExtractPixelFormat(PixelFormat& format) const |
161 { | 161 { |
162 if (IsPlanar()) | |
163 { | |
164 return false; | |
165 } | |
166 | |
167 if (GetBitsStored() == 8 && GetChannelCount() == 1 && !IsSigned()) | 162 if (GetBitsStored() == 8 && GetChannelCount() == 1 && !IsSigned()) |
168 { | 163 { |
169 format = PixelFormat_Grayscale8; | 164 format = PixelFormat_Grayscale8; |
170 return true; | 165 return true; |
171 } | 166 } |