Mercurial > hg > orthanc-wsi
comparison Framework/Inputs/HierarchicalTiff.cpp @ 172:11413cc2b9d6
importing grayscale tiff
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 02 Aug 2019 17:42:09 +0200 |
parents | f0dac1e8f736 |
children | e3cbf890b588 |
comparison
equal
deleted
inserted
replaced
171:1390d5c87603 | 172:11413cc2b9d6 |
---|---|
158 default: | 158 default: |
159 LOG(ERROR) << "Unknown photometric interpretation in TIFF: " << photometricTiff; | 159 LOG(ERROR) << "Unknown photometric interpretation in TIFF: " << photometricTiff; |
160 return false; | 160 return false; |
161 } | 161 } |
162 } | 162 } |
163 else if (compression == ImageCompression_Jpeg && | |
164 channels == 1 && // This is a grayscale image | |
165 bpp == 8) | |
166 { | |
167 pixelFormat = Orthanc::PixelFormat_Grayscale8; | |
168 photometric = Orthanc::PhotometricInterpretation_Monochrome2; | |
169 } | |
163 else | 170 else |
164 { | 171 { |
165 return false; | 172 return false; |
166 } | 173 } |
167 | 174 |