mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
Allow TIFF min=white PHOTOMETRIC interpretation images to be read unchanged
This commit is contained in:
parent
1caca2112b
commit
4832c24ef7
@ -235,7 +235,7 @@ bool TiffDecoder::readHeader()
|
||||
m_hdr = false;
|
||||
|
||||
if( bpp > 8 &&
|
||||
((photometric != 2 && photometric != 1) ||
|
||||
((photometric > 2) ||
|
||||
(ncn != 1 && ncn != 3 && ncn != 4)))
|
||||
bpp = 8;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user