• Ilari Venäläinen's avatar
    Merge pull request #12989 from venalil:fix_thresholded_tiff_read · e6c41f0d
    Ilari Venäläinen authored
    * 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:
    cbb1e867
    
    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
    e6c41f0d
Name
Last commit
Last update
..
calib3d Loading commit data...
core Loading commit data...
cudaarithm Loading commit data...
cudabgsegm Loading commit data...
cudacodec Loading commit data...
cudafeatures2d Loading commit data...
cudafilters Loading commit data...
cudaimgproc Loading commit data...
cudalegacy Loading commit data...
cudaobjdetect Loading commit data...
cudaoptflow Loading commit data...
cudastereo Loading commit data...
cudawarping Loading commit data...
cudev Loading commit data...
dnn Loading commit data...
features2d Loading commit data...
flann Loading commit data...
highgui Loading commit data...
imgcodecs Loading commit data...
imgproc Loading commit data...
java Loading commit data...
js Loading commit data...
ml Loading commit data...
objdetect Loading commit data...
photo Loading commit data...
python Loading commit data...
shape Loading commit data...
stitching Loading commit data...
superres Loading commit data...
ts Loading commit data...
video Loading commit data...
videoio Loading commit data...
videostab Loading commit data...
viz Loading commit data...
world Loading commit data...
CMakeLists.txt Loading commit data...