Allow TIFF min=white PHOTOMETRIC interpretation images to be read unchanged

pull/9564/head
saskatchewancatch 8 years ago committed by GitHub
parent 1caca2112b
commit 4832c24ef7
  1. 2
      modules/imgcodecs/src/grfmt_tiff.cpp

@ -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…
Cancel
Save