nickjackolson
79d4e865fe
Add warning message to imread()
...
Add a warning message using CV_LOG__WARNING().
This way api behaviour is preserved. Outputs are
the same but user gets an extra warning in case
fopen() fails to access image file for some reason.
This would help new users and also debugging
complex apps which use imread()
Signed-off-by: nickjackolson <metedurlu@gmail.com>
3 years ago
Harvey
ce68291d83
32bit rgb bmp file should not copy data as rgba
3 years ago
Stanislaw Halik
3d93675ff9
fix link error on shared libs with -MT
3 years ago
Nikolay Polyarniy
746bd47ce5
EXR reading: support Z channel if no Y channel
4 years ago
Smirnov Egor
1d7d18afba
Document imwrite depth fallback
4 years ago
Rachel A
cc22a73d0f
EXR alpha support for 4 channel reading and writing. Issue https://github.com/opencv/opencv/issues/16115 .
4 years ago
Alexander Alekhin
0885a79c28
imgcodecs(test): don't include png.h
4 years ago
Alexander Alekhin
d2d6eba16a
cmake: fix add_apple_compiler_options() calls and OBJCXX handling
4 years ago
Zhuo Zhang
84a290097b
fix link order: put zlib after png/tiff/openexr
...
Previous link dependency: imgcodecs --> zlib --> libpng
this can generate imgcodecs shared lib, until Visual Studio integrated
with vcpkg, which will additionally specify LIBPATH, pointing to vcpkg
installed zlib (if any), which links the wrong zlib.
Fixed link dependency: imgcodecs --> libpng --> zlib
in this fixed case, symbols in zlib referenced in libpng will be found
in the build-from-source static zlib, instead of the vcpkg one.
related discussion:
- https://github.com/microsoft/vcpkg/issues/16165
- https://github.com/opencv/opencv/issues/17051
- https://github.com/opencv/opencv/issues/10576
MSVC linking order reference pages:
- https://docs.microsoft.com/en-us/cpp/build/reference/link-input-files?view=msvc-160
for link order
- https://docs.microsoft.com/en-us/cpp/build/reference/linking?view=msvc-160
LIB environment variable, for library file searching
- https://docs.microsoft.com/en-us/cpp/build/reference/libpath-additional-libpath?view=msvc-160
LIBPATH option, for library file searching
4 years ago
Rachel A
650836d700
Exif parsing for PNG files to support Exif orientation tag. Moved decoder specific Exif parsing to JPEG and PNG decoders, respectively. Issue 16579
4 years ago
Zhuo Zhang
6e1da2ef91
Merge pull request #19203 from zchrissirhcz:fix-cvSaveImage
...
Fix cvSaveImage( ) function bug
* fix cvSaveImage crash
* replace emplace_back with {}, no C++11 required
* fix MacOSX build with vector's push_back
4 years ago
Suleyman TURKMEN
cc7f17f011
update documentation
4 years ago
Pavel Rojtberg
bc6a70c689
imwrite: multi-image overload for bindings
4 years ago
Alexander Alekhin
7dfe68cac6
imgcodecs: lazy on-demand codecs initialization
4 years ago
Florian Jung
f66fc199a2
Fix build of grfmt_jpeg2000.cpp
...
libjasper has recently changed `jas_matrix_get` from a macro to an inline function
(389951d071 in https://github.com/jasper-software/jasper ), causing the build to fail.
4 years ago
Maksim Shabunin
e8129429e9
imgcodecs: fix test build with disabled JPEG and PNG libs
4 years ago
Suleyman TURKMEN
2566d13100
Update documentation of imwrite()
4 years ago
okamotoR
0e69cddda2
add if block for indexed color images
5 years ago
Chris Ballinger
d81ac52ce2
Remove linking against AssetsLibrary framework
5 years ago
tpoisonooo
b11a3a0820
Update grfmt_pxm.cpp
...
remove comment in .ppm
5 years ago
Alexander Alekhin
6d85fa3fd2
imgcodecs(test): rework common I/O test, added grayscale mode
5 years ago
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
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
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
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
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
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