Alexander Alekhin
4a39b12a78
imgcodecs(jpeg): drop unnecessary code
...
- standard huffman tables are handled by modern libjpeg-turbo
5 years ago
jshiwam
1f48940a93
bug fix to Inconsistent comment for EXIF issue id #15706 stream added final
...
removed all the changes occured while trying to resolve conflicts
5 years ago
Collin Brake
d4a28f3bf6
improved documentation for imread()
5 years ago
Collin Brake
3cc07a4411
improved documentation for IMREAD_UNCHANGED flag
5 years ago
Omar Hassan
8dd0fd8a13
If applied, this commit will describe permission denied message in imwrite_ function when user does not have write permission
5 years ago
Ganesh Kathiresan
80ade96c8c
Merge pull request #16309 from ganesh-k13:bugfix/imdecode-resize
...
* Added flag handlers for imread and imdecode | Issue 16203
Undo imread change
Added Imread resize tests
Added imdecode flags check
Added imdecode tests for resize
Removed trailing whitespace
Removed IMREAD_IGNORE_ORIENTATION check
Added else condition
Removed IMREAD_IGNORE_ORIENTATION check in decode
Added HAVE_JPEG guards
Added static_cast for Win32
Added resize for non jpegs
Added tests for non jpeg resize case
Fixed resize value in assert
Changed tests to Value-Parameterized Tests
Changed tests to Value-Parameterized Tests | handled >> in cpp
Changed tests to Value-Parameterized Tests | removed trailing whitespace
* imgcodecs: update test
5 years ago
Janusz Lisiecki
178c4810e6
Fix swapped channels in BGR* conversion utility function
...
- some of `icvCvt_BGR*` functions have R with B channels
swapped what leads to the wrong conversion
- renames misleading `rgb` variable name to `bgr`
- swap back the conversion coefficients, `cB` should be the first
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
5 years ago
Rajkiran Natarajan
af04b422c9
Change program type in hdr format files to modern value: RADIANCE so
...
modern readers that expect RADIANCE will read it
5 years ago
Alexander Alekhin
d1c35e7b61
imgcodecs(bmp): make happy UBSAN with enum value range check
5 years ago
Suleyman TURKMEN
d88d1c9935
Update loadsave.cpp
5 years ago
Alexander Alekhin
ad2854c8b3
imgcodecs: add check image.empty() in imwrite()/imencode()
5 years ago
luz.paz
fcc7d8dd4e
Fix modules/ typos
...
Found using `codespell -q 3 -S ./3rdparty -L activ,amin,ang,atleast,childs,dof,endwhile,halfs,hist,iff,nd,od,uint`
backporting of commit: ec43292e1e
5 years ago
luz.paz
ec43292e1e
Fix modules/ typos
...
Found using `codespell -q 3 -S ./3rdparty -L activ,amin,ang,atleast,childs,dof,endwhile,halfs,hist,iff,nd,od,uint`
5 years ago
yaohai [姚海]
cadb4dee14
fix exif bug
5 years ago
Alexander Alekhin
eedbd1ad59
imgcodecs: force reshaping of imdecode() input into a single row
...
OpenCV upstream stuff may reinterpret vector as column.
5 years ago
Alexander Alekhin
db7f689728
imgcodecs(tiff): add more checks
...
backporting of commit: f6230ae019
6 years ago
Alexander Alekhin
f6230ae019
imgcodecs(tiff): add more checks
...
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15154
6 years ago
Alexander Alekhin
02bfd20760
imgcodecs(test): add OpenEXR I/O test
6 years ago
Chip Kerchner Chip.Kerchner@ibm.com
058367f34c
Rewrite code in BGR2Gray functions so that auto vectorizer does a better job.
6 years ago
Alexander Alekhin
a2445c44cb
imgcodecs: sanitize PAM decoding
...
backporting of commit: 76fca0e755
6 years ago
Ahmed Ashour
1aca1d582e
Fix some typos
6 years ago
Alexander Alekhin
76fca0e755
imgcodecs: sanitize PAM decoding
...
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13282
6 years ago
Ahmed Ashour
f9564e053d
java: test: use assertNotNull and assertFalse
6 years ago
Jan Starzynski
fb9c083a51
handle all orientations properly
6 years ago
Alexander Alekhin
f7856a0f35
imgcodecs(tiff): update tile size checks
...
backporting of commit: 25247b9f6e
6 years ago
Alexander Alekhin
25247b9f6e
imgcodecs(tiff): update tile size checks
...
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14185
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14321
6 years ago
Alexander Alekhin
0d747daf47
cmake: use absolute library paths from 'pkgconfig'
...
- drop legacy check_module() macro
- drop 'ALIASOF_'
6 years ago
Alexander Alekhin
0c490accae
imgcodecs(tiff): check TIFF tile size
...
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13280
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13283
6 years ago
Alexander Alekhin
ba5ddd6499
imgcodecs(tiff): sanitize tiff decoder
...
- more checks
- drop separate branches for 32FC1/32FC3(read) handling
- added for 32F/64F non-compressed
- added tests for 32FC3 (RAW + hdr SGILOG compression)
- added test 64FC1
- dump tiff errors on stderr
6 years ago
Alexander Alekhin
c4ec46c195
imgcodecs(sunras): avoid undefined shift
...
backporting of commit: f2803aba07
6 years ago
Alexander Alekhin
2ece029fe0
imgcodecs(tiff): avoid leak of helper struct on malformed inputs
...
backporting of commit: 45428b897f
6 years ago
Alexander Alekhin
6dfb6a3016
imgcodecs: fix RBaseStream::setPos() outside of current block
...
Seeking outside of the current block doesn't update actual data,
so getByte()/etc will get wrong data from stalled buffer.
6 years ago
Alexander Alekhin
f2803aba07
imgcodecs(sunras): avoid undefined shift
...
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13292
6 years ago
Alexander Alekhin
45428b897f
imgcodecs(tiff): avoid leak of helper struct on malformed inputs
...
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13285
6 years ago
Alexander Alekhin
ccb89a889a
imgcodecs(bmp): limit size of processed images
...
2Gb+ images can't be handled properly by current implementation
backporting of commit: 50a6f9d251
6 years ago
Alexander Alekhin
50a6f9d251
imgcodecs(bmp): limit size of processed images
...
2Gb+ images can't be handled properly by current implementation
ozz-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13295
6 years ago
Alexander Alekhin
43c68d1864
imgcodecs: OPENCV_IO_ENABLE_JASPER runtime parameter
6 years ago
rpici
9cca066ee8
Fix bug in test_tiff.cpp
...
The big endian data in the tiff_sample_data array was never being tested. This could be observed by e.g. changing the 9th byte in the big endian data from 0xde to something that should fail the test, e.g. 0xdd, and the test would still pass even though it should fail.
6 years ago
Gregor Mittag
d71977b4dd
Add JPEG2000 compression flag.
6 years ago
Rajkiran Natarajan
40af53b1d6
issue-13921: Support setting compression setting for writing tiff images
6 years ago
klemens
997b7b18af
spelling fixes
6 years ago
LaurentBerger
f1dc26d7ce
Merge pull request #13382 from LaurentBerger:imreadsize
...
* try to solve #13381
* Add note
6 years ago
Alexander Alekhin
c0016d7fe9
Merge pull request #13253 from alalek:fix_13201
...
* cmake: install 'legacy/constants_c.h' files
* samples: add compatibility test code
6 years ago
pascal
7579cd8068
updated documentation for imread and imwrite (added pfm image format)
6 years ago
Alexander Alekhin
a574788e89
move legacy C-API constants into separate files
6 years ago
Vadim Pisarevsky
11eafca3e2
removed C API in the following modules: photo, video, imgcodecs, videoio ( #13060 )
...
* removed C API in the following modules: photo, video, imgcodecs, videoio
* trying to fix various compile errors and warnings on Windows and Linux
* continue to fix compile errors and warnings
* continue to fix compile errors, warnings, as well as the test failures
* trying to resolve compile warnings on Android
* Update cap_dc1394_v2.cpp
fix warning from the new GCC
6 years ago
Alexander Alekhin
b74b05d1b3
Revert CV_TRY/CV_CATCH macros
...
This reverts commit 7349b8f5ce
(partially).
6 years ago
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
6 years ago
Suleyman TURKMEN
4d0ed5c13c
Merge pull request #12971 from sturkmen72:upd_imgproc_hpp
...
* Update imgproc.hpp
* update color conversion codes
6 years ago
Maksim Shabunin
e6d9486a6c
Fixed several issues found by static analysis
6 years ago