Alexander Alekhin
3e513ee6ab
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-06-03 16:23:36 +00:00
Nikolay Polyarniy
746bd47ce5
EXR reading: support Z channel if no Y channel
2021-06-02 15:53:32 +03:00
Alexander Smorkalov
083a7c8f0a
Fix OpenCV build with OpenEXR before 2.2.0.
2021-04-29 09:50:30 +03:00
Antonio Rojas
971dacaf41
Merge pull request #19970 from antonio-rojas:master
...
Support building with OpenEXR 3.x
* Support OpenEXR 3.0
Try to find OpenEXR 3.0 using the upstream cmake config, and fallback to the previous algorithm if not found
* Add explicit ImfFrameBuffer.h include
This was transitively included with OpenEXR 2.x, but that's no longer the case with OpenEXR 3.x
2021-04-26 22:13:59 +00:00
Harald Scheirich
fcaeeac931
Merge pull request #19780 from HarryDC:feature/index-multiimage-tiff
...
Add reading of specific images from multipage tiff
* Add reading of specific images from multipage tiff
* Fix build issues
* Add missing flag for gdal
* Fix unused param warning
* Remove duplicated code
* change public parameter type to int
* Fix warnings
* Fix parameter check
2021-04-23 20:48:32 +00:00
Alexander Alekhin
d643a90efa
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-03-06 17:31:08 +00:00
Alexander Alekhin
a1e2c4f338
Merge pull request #19655 from raaldrid:EXR_rw_alpha_support_16115
2021-03-05 16:54:31 +03:00
Rachel A
cc22a73d0f
EXR alpha support for 4 channel reading and writing. Issue https://github.com/opencv/opencv/issues/16115 .
2021-03-02 11:49:56 -08:00
Alexander Smorkalov
c131c12fd7
Merge pull request #19540 from asmorkalov:as/openexr_comression_options
...
OpenEXR compression options
* Adding possibility to select the compression type for the OpenEXR format.
There are compression modes other than the default that are more suited for certain data. Mainly grainy/noisy data.
* Code review fixes.
Co-authored-by: Daniel Rydstrom <daniel.rydstrom@sick.se>
2021-02-20 16:28:08 +00:00
Alexander Alekhin
e5d78960c6
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-02-12 21:34:49 +00:00
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
2021-02-09 10:35:27 -08:00
Mark Harfouche
7405075ede
CHange import order to avoid apple check error
2021-02-05 23:24:56 -05:00
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
2020-12-24 16:58:16 +00:00
Stefan Dragnev
b13b5d86f6
Merge pull request #19109 from tailsu:sd/imdecode-jp2k-codestream
...
* OpenJPEG: decoder for J2K codestreams
* code review fixes
* exclude .j2c from GDAL tests
2020-12-23 12:33:33 +00:00
Jonathan Cole
c4c9cdd2b1
Merge pull request #18855 from Rightpoint:feature/colejd/add-apple-conversions-to-framework-builds
...
Expose CGImage <-> Mat conversion for iOS platforms
* Add apple_conversions to framework builds
This exposes CGImage <-> Mat conversion.
* Export Mat <-> CGImage methods on iOS targets
* Add CGImage converters to iOS objc helper class
* Add CF_RETURNS_RETAINED annotations to methods returning CGImageRef
2020-11-19 21:20:32 +00:00
mtfrctl
7de189114b
Merge pull request #18547 from mtfrctl:objc-conversions-macosx
...
Mat conversions for macOS/AppKit
* Extract CoreGraphics conversion logics from ios_conversions.mm to apple_conversions.h, apple_conversions. Add macosx_conversions.mm
* Add macosx.h
* Add Mat+Conversions.h and Mat+Conversions.mm
* Delete duplicated declaration from apple_conversion.mm
* Use short license header
* Add compile guard
* Delete unused imports
* Move precomp.hpp import from header to implementation
* Add macosx.h to skip headers
* Fix compile guard condition
* Use short license header
* Remove commented out unused code
2020-10-14 16:58:06 +00:00
Alexander Alekhin
6c575e8826
imgcodecs(openjpeg): add checks for input
2020-09-21 18:10:51 +00:00
Alexander Alekhin
f52a2cf5e1
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2020-09-19 17:03:08 +00:00
Alexander Alekhin
7dfe68cac6
imgcodecs: lazy on-demand codecs initialization
2020-09-13 11:14:56 +00:00
Alexander Alekhin
cf8322c0d3
Merge pull request #18194 from VadimLevin:dev/vlevin/openjpeg-source-intergration
2020-09-02 22:48:09 +00:00
Vadim Levin
0384eb7d8c
3rdparty: integrate OpenJPEG build to the OpenCV CMake
...
- adopted build scripts
- OpenJPEG build warnings are suppressed
2020-09-02 20:45:35 +00:00
Vadim Levin
bce5d364df
feat: change OpenJPEG encoder to lossy with default parameters
2020-08-27 15:11:45 +03:00
Alexander Alekhin
fa25faa2d2
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2020-08-06 14:15:52 +00:00
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.
2020-07-30 19:23:52 +02:00
Alexander Alekhin
a711e2aa41
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2020-06-29 21:19:09 +00:00
okamotoR
0e69cddda2
add if block for indexed color images
2020-06-23 21:36:47 +09:00
shijiayuan
4e97c69792
Merge pull request #17275 from shijiayuan:fixbug
...
* fix bug for CHECK issue
* remove chack for bpp
* add test for tif file
* add test for tiff file
* change the test name
* use proper bpp value, use clear test names
2020-05-25 18:49:37 +00:00
Alexander Alekhin
ca9756f6a1
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2020-04-13 20:00:12 +00:00
tpoisonooo
b11a3a0820
Update grfmt_pxm.cpp
...
remove comment in .ppm
2020-04-11 17:41:51 +03:00
Maksim Shabunin
01a85736e6
OpenJPEG: fixed compilation and warnings with VS
2020-04-07 16:03:17 +03:00
StefanBruens
8d78400052
Merge pull request #16494 from StefanBruens:jpeg2000_openjpeg_port
...
Jpeg2000 OpenJPEG port
* OpenJPEG based JPEG2000 decoder implementation
Currently, the following input color spaces and depth conversions are
supported:
- 8 bit -> 8 bit
- 16 bit -> 16 bit (IMREAD_UNCHANGED, IMREAD_ANYDEPTH)
- RGB(a) -> BGR
- RGBA -> BGRA (IMREAD_UNCHANGED)
- Y(a) -> Y(a) (IMREAD_ANYCOLOR, IMREAD_GRAY, IMREAD_UNCHANGED))
- YCC -> Y (IMREAD_GRAY)
* Check for OpenJPEG availability
This enables OpenJPEG based JPEG2000 imread support by default, which
can be disabled by -DWITH_OPENJPEG=OFF. In case OpenJPEG is enabled
and found, any checks for Jasper are skipped.
* Implement precision downscaling for precision > 8 without IMREAD_UNCHANGED
With IMREAD_UNCHANGED, values are kept from the input image, without it
components are downscaled to CV_8U range.
* Enable Jpeg2K tests when OpenJPEG is available
* Add support for some more color conversions
Support IMREAD_GRAY when input color space is RGB or unspecified.
Support YUV input color space for BGR output.
* fix: problems with unmanaged memory
* fix: CMake warning - HAVE_OPENJPEG is undefined
Removed trailing whitespaces
* fix: CMake find_package OpenJPEG add minimal version
* Basic JPEG2K encoder
Images with depth CV_8U and CV_16U are supported, with 1 to 4 channels.
* feature: Improved code for OpenJPEG2000 encoder/decoder
- Removed code duplication
- Added error handlers
- Extracted functions
* feature: Update conversion openjpeg array from/to Mat
* feature: Extend ChannelsIterator to fulfill RandomAccessIterator named requirements
- Removed channels split in copyFromMatImpl. With ChannelsIterator no allocations are performed.
- Split whole loop into 2 parts in copyToMat -> where std::copy and std::transforms are called.
* fix: Applied review comments.
- Changed `nullptr` in CV_LOG* functions to `NULL`
- Added `falls through` comment in decoder color space `switch`
- Added warning about unsupported parameters for the encoder
* feature: Added decode from in-memory buffers.
Co-authored-by: Vadim Levin <vadim.levin@xperience.ai>
2020-03-27 07:18:58 +00:00
Alexander Alekhin
619180dffd
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2020-03-06 20:41:30 +00:00
Alexander Alekhin
e9655cf646
Merge pull request #16697 from alalek:imgcodecs_jpeg_drop_unnecessary_code
2020-03-06 19:03:43 +00:00
Alexander Alekhin
333a767be4
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2020-02-28 18:34:37 +00:00
Alexander Alekhin
4a39b12a78
imgcodecs(jpeg): drop unnecessary code
...
- standard huffman tables are handled by modern libjpeg-turbo
2020-02-28 18:55:14 +03:00
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
2020-02-28 15:01:17 +05:30
Alexander Alekhin
aa2777ed61
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2020-02-10 19:40:29 +03:00
Omar Hassan
8dd0fd8a13
If applied, this commit will describe permission denied message in imwrite_ function when user does not have write permission
2020-02-05 22:23:10 +05:00
Alexander Alekhin
3d14dd4e39
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2020-01-22 16:58:30 +03:00
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
2020-01-20 14:00:45 +03:00
Alexander Alekhin
fb61f88b9c
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2020-01-12 09:35:39 +00:00
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>
2020-01-05 00:06:36 +01:00
Alexander Alekhin
4c86fc13cb
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-12-19 15:09:05 +03:00
Alexander Alekhin
f8b16fa293
Merge pull request #16188 from saskatchewancatch:issue-13551
2019-12-18 10:30:35 +00:00
Rajkiran Natarajan
af04b422c9
Change program type in hdr format files to modern value: RADIANCE so
...
modern readers that expect RADIANCE will read it
2019-12-17 20:17:32 -08:00
Alexander Alekhin
ba7b0f4c54
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-12-15 11:23:46 +00:00
Alexander Alekhin
d1c35e7b61
imgcodecs(bmp): make happy UBSAN with enum value range check
2019-12-13 18:51:46 +03:00
Alexander Alekhin
3fb6617d62
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-10-02 17:49:19 +03:00
Suleyman TURKMEN
d88d1c9935
Update loadsave.cpp
2019-09-28 23:24:17 +03:00
Alexander Alekhin
e2a5a6a05c
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-09-25 18:32:44 +00:00
Alexander Alekhin
ad2854c8b3
imgcodecs: add check image.empty() in imwrite()/imencode()
2019-09-22 10:45:00 +00:00
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
2019-08-16 17:34:29 +03:00
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`
2019-08-15 18:02:09 -04:00
Alexander Alekhin
174b4ce29d
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-08-05 18:11:43 +00:00
yaohai [姚海]
cadb4dee14
fix exif bug
2019-08-05 16:41:07 +03:00
Alexander Alekhin
f663e8f903
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-07-09 19:57:57 +00:00
Alexander Alekhin
eedbd1ad59
imgcodecs: force reshaping of imdecode() input into a single row
...
OpenCV upstream stuff may reinterpret vector as column.
2019-07-06 10:11:29 +00:00
Alexander Alekhin
db7f689728
imgcodecs(tiff): add more checks
...
backporting of commit: f6230ae019
2019-06-11 19:22:24 +00:00
Alexander Alekhin
f6230ae019
imgcodecs(tiff): add more checks
...
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15154
2019-06-10 21:00:20 +00:00
Alexander Alekhin
11b020b9f9
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-06-10 19:05:28 +00:00
Alexander Alekhin
d2f9cfcf81
Merge pull request #14760 from ChipKerchner:3.4
2019-06-09 17:43:02 +00:00
Chip Kerchner Chip.Kerchner@ibm.com
058367f34c
Rewrite code in BGR2Gray functions so that auto vectorizer does a better job.
2019-06-07 11:48:05 -05:00
Alexander Alekhin
ddcf388270
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-06-07 19:02:55 +03:00
Alexander Alekhin
94ec0e9b74
Merge pull request #14724 from asashour:typos
2019-06-06 10:01:03 +00:00
Alexander Alekhin
a2445c44cb
imgcodecs: sanitize PAM decoding
...
backporting of commit: 76fca0e755
2019-06-05 18:12:43 +03:00
Ahmed Ashour
1aca1d582e
Fix some typos
2019-06-05 12:24:13 +02:00
Alexander Alekhin
76fca0e755
imgcodecs: sanitize PAM decoding
...
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13282
2019-06-03 22:19:42 +00:00
Alexander Alekhin
43467a2ac7
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-05-28 18:29:48 +00:00
Jan Starzynski
fb9c083a51
handle all orientations properly
2019-05-23 16:51:25 +02:00
Alexander Alekhin
f7856a0f35
imgcodecs(tiff): update tile size checks
...
backporting of commit: 25247b9f6e
2019-04-21 18:36:39 +00:00
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
2019-04-20 20:13:47 +00:00
Alexander Alekhin
c9fc27b337
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-04-05 19:08:23 +00:00
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
2019-04-05 18:13:15 +03:00
Alexander Alekhin
473941c341
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-04-04 18:09:24 +00:00
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
2019-04-04 14:16:53 +03:00
Alexander Alekhin
c4ec46c195
imgcodecs(sunras): avoid undefined shift
...
backporting of commit: f2803aba07
2019-04-02 18:38:01 +03:00
Alexander Alekhin
d2854448c2
Merge pull request #14203 from alalek:fix_ossfuzz_13292
2019-04-02 15:15:13 +00:00
Alexander Alekhin
7d2118e324
Merge pull request #14223 from alalek:backport_14201
2019-04-02 14:33:57 +00:00
Alexander Alekhin
b4e2c99346
Merge pull request #14201 from alalek:fix_ossfuzz_13295
2019-04-01 18:47:00 +00:00
Alexander Alekhin
33dde339fe
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-04-01 18:11:55 +03:00
Alexander Alekhin
341e2fa72d
Merge pull request #14214 from alalek:backport_14202
2019-04-01 14:39:25 +00:00
Alexander Alekhin
2ece029fe0
imgcodecs(tiff): avoid leak of helper struct on malformed inputs
...
backporting of commit: 45428b897f
2019-04-01 14:08:40 +00:00
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.
2019-03-31 12:55:32 +00:00
Alexander Alekhin
f2803aba07
imgcodecs(sunras): avoid undefined shift
...
oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13292
2019-03-31 12:14:42 +00:00
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
2019-03-31 11:50:33 +00:00
Alexander Alekhin
ccb89a889a
imgcodecs(bmp): limit size of processed images
...
2Gb+ images can't be handled properly by current implementation
backporting of commit: 50a6f9d251
2019-03-31 10:52:33 +00:00
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
2019-03-31 10:48:07 +00:00
Alexander Alekhin
26087e28ad
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-03-15 22:42:57 +00:00
Alexander Alekhin
43c68d1864
imgcodecs: OPENCV_IO_ENABLE_JASPER runtime parameter
2019-03-14 21:43:24 +00:00
Alexander Alekhin
8c0b0714e7
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2019-03-11 19:20:22 +00:00
Gregor Mittag
d71977b4dd
Add JPEG2000 compression flag.
2019-03-10 07:59:09 +01:00
Rajkiran Natarajan
40af53b1d6
issue-13921: Support setting compression setting for writing tiff images
2019-03-09 15:48:21 -05:00
klemens
997b7b18af
spelling fixes
2019-02-09 22:29:54 +01:00
Alexander Alekhin
ea64e860de
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2018-12-09 13:21:58 +00:00
LaurentBerger
f1dc26d7ce
Merge pull request #13382 from LaurentBerger:imreadsize
...
* try to solve #13381
* Add note
2018-12-09 15:05:27 +03:00
Alexander Alekhin
a574788e89
move legacy C-API constants into separate files
2018-11-17 23:47:51 +00:00
Alexander Alekhin
1913482cf5
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2018-11-10 20:50:26 +00:00
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
2018-11-09 00:52:09 +03:00
Alexander Alekhin
b74b05d1b3
Revert CV_TRY/CV_CATCH macros
...
This reverts commit 7349b8f5ce
(partially).
2018-11-08 19:56:52 +03:00
Alexander Alekhin
687fa6a8ca
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2018-11-02 05:33:35 +00:00