opencv/modules/imgcodecs/src
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
..
bitstrm.cpp imgcodecs: fix RBaseStream hang on truncated inputs 2018-02-21 13:17:18 +03:00
bitstrm.hpp imgcodecs: refactoring, improve code quality 2017-08-16 18:56:41 +03:00
exif.cpp More issues found by static analysis 2018-07-24 16:04:42 +03:00
exif.hpp build: portable integer types 2018-02-15 23:43:02 +03:00
grfmt_base.cpp imwrite for multipage images implemented 2018-02-20 19:08:45 +03:00
grfmt_base.hpp imwrite for multipage images implemented 2018-02-20 19:08:45 +03:00
grfmt_bmp.cpp More issues found by static analysis 2018-07-24 16:04:42 +03:00
grfmt_bmp.hpp imgcodecs: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
grfmt_exr.cpp opencv: Use cv::AutoBuffer<>::data() 2018-07-04 19:11:29 +03:00
grfmt_exr.hpp imgcodecs: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
grfmt_gdal.cpp refactor: don't use CV_ErrorNoReturn() internally 2018-04-24 15:38:42 +03:00
grfmt_gdal.hpp imgcodecs: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
grfmt_gdcm.cpp GDCM: several improvements 2016-07-08 16:08:55 +03:00
grfmt_gdcm.hpp imgcodecs: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
grfmt_hdr.cpp Merge pull request #11417 from Turim:imgcodecs_cmake_decoders_customize_formats 2018-05-22 15:10:15 +00:00
grfmt_hdr.hpp Merge pull request #11417 from Turim:imgcodecs_cmake_decoders_customize_formats 2018-05-22 15:10:15 +00:00
grfmt_jpeg2000.cpp backport fixes for static analyzer warnings 2018-09-04 16:49:42 +03:00
grfmt_jpeg2000.hpp imgcodecs: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
grfmt_jpeg.cpp opencv: Use cv::AutoBuffer<>::data() 2018-07-04 19:11:29 +03:00
grfmt_jpeg.hpp imgcodecs: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
grfmt_pam.cpp More issues found by static analysis 2018-07-24 16:04:42 +03:00
grfmt_pam.hpp Merge pull request #11417 from Turim:imgcodecs_cmake_decoders_customize_formats 2018-05-22 15:10:15 +00:00
grfmt_png.cpp backport fixes for static analyzer warnings 2018-09-04 16:49:42 +03:00
grfmt_png.hpp imgcodecs: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
grfmt_pxm.cpp backport fixes for static analyzer warnings 2018-09-04 16:49:42 +03:00
grfmt_pxm.hpp Merge pull request #11417 from Turim:imgcodecs_cmake_decoders_customize_formats 2018-05-22 15:10:15 +00:00
grfmt_sunras.cpp backport fixes for static analyzer warnings 2018-09-04 16:49:42 +03:00
grfmt_sunras.hpp Merge pull request #11417 from Turim:imgcodecs_cmake_decoders_customize_formats 2018-05-22 15:10:15 +00:00
grfmt_tiff.cpp Merge pull request #12989 from venalil:fix_thresholded_tiff_read 2018-11-01 14:34:34 +03:00
grfmt_tiff.hpp imgcodecs: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
grfmt_webp.cpp Merge pull request #12971 from sturkmen72:upd_imgproc_hpp 2018-10-31 18:08:24 +03:00
grfmt_webp.hpp imgcodecs(webp): multiple fixes 2018-08-30 20:42:33 +00:00
grfmts.hpp imgcodecs: Implementation of PAM encoder/decoder 2016-09-06 15:47:22 +02:00
ios_conversions.mm Add export macro for ios conversion functions 2018-08-20 14:10:54 -07:00
loadsave.cpp don't use constructors for C API structures 2018-09-06 14:34:16 +03:00
precomp.hpp imgcodecs: remove assert() usage 2018-01-09 17:49:38 +03:00
rgbe.cpp build: unreachable code after CV_Error() (part 2) 2018-04-24 16:03:40 +03:00
rgbe.hpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
utils.cpp don't use constructors for C API structures 2018-09-06 14:34:16 +03:00
utils.hpp imgcodecs(webp): use safe cast to size_t on Win32 2018-09-02 10:00:52 +00:00