Rajkiran Natarajan
40af53b1d6
issue-13921: Support setting compression setting for writing tiff images
6 years ago
LaurentBerger
f1dc26d7ce
Merge pull request #13382 from LaurentBerger:imreadsize
...
* try to solve #13381
* Add note
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
drkoller
978ad4981e
Clean up documentation for imread and imwrite
6 years ago
berak
df4139d373
document imread grayscale behaviour
6 years ago
cyy
286c2c236b
Merge pull request #12458 from DEEPIR:3.4
...
* may be an typo fix
* remove identical branch,may be paste error
* add parentheses around macro parameter
* simplify if condition
* check malloc fail
* change the condition of branch removed by commit 3041502861
6 years ago
Alexander Alekhin
8a3c394d6a
don't use constructors for C API structures
6 years ago
Alexander Alekhin
acce95f446
backport fixes for static analyzer warnings
...
Commits:
- 09837928d9
- 10fb88d027
Excluded changes with std::atomic (C++98 requirement)
6 years ago
Alexander Alekhin
20bf7b6a79
imgcodecs(webp): use safe cast to size_t on Win32
6 years ago
Alexander Alekhin
0d4fd20a73
imgcodecs: add null pointer check
6 years ago
Alexander Alekhin
0515f930e8
imgcodecs(webp): multiple fixes
...
- don't reallocate passed 'img' (test fixed - must use IMREAD_UNCHANGED / IMREAD_ANYCOLOR)
- avoid memory DDOS
- avoid reading of whole file during header processing
- avoid data access after allocated buffer during header processing (missing checks)
- use WebPFree() to free allocated buffers (libwebp >= 0.5.0)
- drop unused & undefined `.close()` method
- added checks for channels >= 5 in encoder
6 years ago
Colin Smith
76f47548b3
Add export macro for ios conversion functions
6 years ago
Maksim Shabunin
cbb1e867e5
More issues found by static analysis
6 years ago
Alexander Alekhin
b09a4a98d4
opencv: Use cv::AutoBuffer<>::data()
7 years ago
Alexander Alekhin
5557474467
imgcodecs(sunras): avoid buffer overrun
...
`src_pitch` may be large than data `step`
7 years ago
Alexander Enaldiev
84584002f2
Merge pull request #11417 from Turim:imgcodecs_cmake_decoders_customize_formats
...
* imgcodecs cmake: the option to customize supported formats list (WITH_IMGCODEC_HDR, WITH_IMGCODEC_SUNRASTER, WITH_IMGCODEC_PXM)
* imgcodecs: fixes
- fixed CMake scripts (=OFF doesn't really work)
- restore dropped GDCM block
- added _IMGCODEC_ prefix
- fixed tests
- include PAM format under WITH_IMGCODEC_PXM option
7 years ago
Alexander Alekhin
35a4551609
imgcodecs: fix imwrite handling of different OutputArray types
7 years ago
Alexander Alekhin
76ac7ab4ef
imgcodecs: added test for imwrite parameter types
...
issue 11545
7 years ago
Alexander Alekhin
f8252702a8
3rdparty: integrate libjpeg-turbo build scripts into OpenCV
7 years ago
Alexander Alekhin
6b581c4e51
build: unreachable code after CV_Error() (part 2)
7 years ago
Alexander Alekhin
576d2dbac0
refactor: don't use CV_ErrorNoReturn() internally
7 years ago
Alexander Alekhin
a22ee76b45
imgcodecs: exclude rle8.bmp from GDAL tests
...
GDAL message:
- ERROR 1: The BMP file is probably corrupted or too large. Image width = 480
7 years ago
Rajkiran Natarajan
4668836071
Support for setting TIFF DPI info in imwrite
7 years ago
catree
a885480c9e
Remove temporary file used for test.
7 years ago
RAJKIRAN NATARAJAN
6d83a80385
Merge pull request #11176 from saskatchewancatch:issue-11165
...
* fix cv::imwrite to allow cv::UMat and vectors of it to be written
* cv::imwrite failure handling improvements
* Unit test for regression testing imwrite support for and fix whitespace
7 years ago
Alexander Alekhin
a91953b15c
imgcodecs: apply CV_OVERRIDE/CV_FINAL
7 years ago
Maksim Shabunin
0f1e193193
Fixed two issues found by static analysis
7 years ago
Maksim Shabunin
7c855aa3e1
Fixed two issues found by static analysis
7 years ago
Maksim Shabunin
92e9d4ec3a
Fixed several issues detected by static analysis
7 years ago
Alexander Alekhin
6e8241b78d
imgcodecs: fix RBaseStream hang on truncated inputs
7 years ago
Rostislav Vasilikhin
27b1f8f446
imwrite for multipage images implemented
7 years ago
Vitaly Tuzov
24ee7b5080
Fix for vertically flipped tiff files reading
7 years ago
Alexander Alekhin
c020a7bb67
build: portable integer types
7 years ago
luz.paz
d05714995c
Misc. modules/ cont. pt2
...
Found via `codespell`
7 years ago
Alexander Alekhin
4a297a2443
ts: refactor OpenCV tests
...
- removed tr1 usage (dropped in C++17)
- moved includes of vector/map/iostream/limits into ts.hpp
- require opencv_test + anonymous namespace (added compile check)
- fixed norm() usage (must be from cvtest::norm for checks) and other conflict functions
- added missing license headers
7 years ago
Maksim Shabunin
8b87c4b96a
Fixed several warnings produced by clang 6 and static analyzers
7 years ago
Suleyman TURKMEN
dcd4f8f5db
Update documentation
7 years ago
Alexander Alekhin
73316e10a0
java(test): fix test names
7 years ago
Alexander Alekhin
435a3e337b
imgcodecs: add more Jasper checks for supported and tested cases
7 years ago
Alexander Alekhin
8a76fadaa3
imgcodecs: add overflow checks
7 years ago
Alexander Alekhin
be5247921d
imgcodecs: remove assert() usage
7 years ago
Alexander Alekhin
f0453bd853
build: eliminate warning
...
warning: 'layout.channel_layout::gchan' may be used uninitialized in this function [-Wmaybe-uninitialized]
7 years ago
Coralie RACHEX
16821b877c
Merge pull request #10493 from RachexCoralie:tiff32FC1Codec
...
* Load and save tiff images in CV_32FC1 format (1 channel of floats).
* Add test
* Fix error handling and resources leak. Improve test.
7 years ago
Alexander Alekhin
4ca89db22d
imgproc(hdr): fix bounds check in HdrDecoder::checkSignature()
7 years ago
Vinay Sharma
5aac909046
Merge pull request #10352 from vinay0410:write_pbm
...
* added write as pbm
* add tests for pbm
* imgcodecs: PBM support
- drop additional PBM parameters
- write: fix P1/P4 mode (no maxval 255 value after width/height)
- write: invert values for P1/P4
- write: P1: compact ASCII mode (no spaces)
- simplify pbm test
- drop .pxm extension (http://netpbm.sourceforge.net/doc/ doesn't know such extension)
7 years ago
Alexander Alekhin
4f6c493b87
imgcodecs(png): resolve ASAN issue with vars scope and setjmp() call
7 years ago
Tomoaki Teshima
fe7b3f1228
clean up the code
...
* disable the warning in CMake, not int the code using pragma
7 years ago
Alexander Alekhin
7bbe1a53cf
imgcodecs(pxm): fix memcpy size
7 years ago