opencv/modules/imgcodecs/test
Ilari Venäläinen e6c41f0de6 Merge pull request #12989 from venalil:fix_thresholded_tiff_read
* Fix reading of black-and-white (thresholded) TIFF images

I recently updated my local OpenCV version to 3.4.3 and found out that
I could not read my TIFF images related to my project. After debugging I
found out that there has been some static analysis fixes made
that accidentally have broken reading those black-and-white TIFF images.

Commit hash in which reading of mentioned TIFF images has been broken:
cbb1e867e5

Basically the fix is to revert back to the same functionality that has been there before,
when black-and-white images are read bpp (bitspersample) is 1.
Without the case 1: this TiffDecoder::readHeader() function always return false.

* Added type and default error message

* Added stdexcept include

* Use CV_Error instead of throw std::runtime_error

* imgcodecs(test): add TIFF B/W decoding tests
2018-11-01 14:34:34 +03:00
..
test_grfmt.cpp Merge pull request #11565 from alalek:issue_11545 2018-05-22 16:00:37 +00:00
test_jpeg.cpp ts: refactor OpenCV tests 2018-02-03 19:39:47 +00:00
test_main.cpp ts: refactor OpenCV tests 2018-02-03 19:39:47 +00:00
test_png.cpp Merge pull request #12971 from sturkmen72:upd_imgproc_hpp 2018-10-31 18:08:24 +03:00
test_precomp.hpp ts: refactor OpenCV tests 2018-02-03 19:39:47 +00:00
test_read_write.cpp Merge pull request #11417 from Turim:imgcodecs_cmake_decoders_customize_formats 2018-05-22 15:10:15 +00:00
test_tiff.cpp Merge pull request #12989 from venalil:fix_thresholded_tiff_read 2018-11-01 14:34:34 +03:00
test_webp.cpp imgcodecs(webp): multiple fixes 2018-08-30 20:42:33 +00:00