Alexander Alekhin
54531f8e3b
core: support CV_Check*() macros with 'bool' parameters
2 years ago
Juha Reunanen
1ba0984203
Merge pull request #22790 from reunanen:add-capability-to-set-DWA-compression-level-in-OpenEXR-encoding
...
OpenEXR encoder: add capability to set the DWA compression level
* OpenEXR encoder: add capability to set the DWA compression level from outside
* Do not try to call `header.dwaCompressionLevel()` if OpenEXR is not version 3 or later
* Minor cleanup
2 years ago
Harvey Huang
8b0aa6a64d
Merge pull request #21966 from Harvey-Huang:Unicode_Path
...
Support use memory buffer to read multi-page image
2 years ago
Kumataro
2f79b1b087
Merge pull request #22404 from Kumataro:3.4-fix22388_2
...
* imgcodecs: tiff: Reduce memory usage to read 16bit image.
* imgcodecs: tiff: Reduce memory usage to read 8bit images
* imgcodecs: tiff: split basic test and full test.
* imgcodecs: tiff: fix to warning C4244
* imgcodecs: tiff: fix to warning C4244
2 years ago
ocpalo
d18362c726
fix warnings in ImageCollection
2 years ago
Sean McBride
1829eba584
Fixed most clang -Wextra-semi warnings
2 years ago
Alexander Smorkalov
3d9f27b877
Report that animated webp is not supported for now.
2 years ago
Berke
062cee2933
new multipage image decoder api - ImageCollection
2 years ago
ocpalo
d717de5719
nasm/simd support for libjpeg-turbo
2 years ago
ocpalo
c4a6e1fd4d
decode chunks and calculate checksums
2 years ago
Alexander Smorkalov
5185544864
Enabled EXIF orientation tests for libspng.
2 years ago
Harvey
a4b191a7e0
4-bit_palette_color
2 years ago
Berke
3929e26276
spng encoder/decoder added as optional png codec
2 years ago
Giles Payne
500e24d6cd
Fix bug ObjC/Swift Quicklook function; check only one channel when drawing Mat as matrix
2 years ago
Berke
b4b69ae484
release png,jpeg resources in destructor
2 years ago
Kumataro
dd7b9000ad
Merge pull request #22064 from Kumataro:3.4-fix22052
...
* imgcodecs: jpeg: add IMWRITE_JPEG_SAMPLING_FACTOR parameter
* fix compile error
* imgcodecs: jpeg: add CV_LOG_WARNING() and fix how to initilize Mat
* imgcodecs: jpeg: fix for C++98 mode.
* samples: imgcodec_jpeg: Remove license
2 years ago
xiongzhen
2238ac7d59
Apply TIFFTAG_PREDICTOR option for LZW, DEFLATE and ADOBE_DEFLATE compression cases for smaller files.
3 years ago
Jan Polák
dea0815199
Small imencode documentation improvement
...
It was previously not clear that the extension should include the period, [and I am not the only person that encountered this problem](https://stackoverflow.com/questions/4254460/opencv-could-not-find-encoder-for-the-specified-extension ).
I assume that this is true for all supported extensions, but I haven't checked the source.
3 years ago
hellodoge
e4ed2d2e42
fix JpegEncoder::write
...
3rdparty/libjpeg-turbo/src/jpeglib.h:
`* NB: you must set up the error-manager BEFORE calling jpeg_create_xxx.`
3 years ago
Alexander Smorkalov
0ee2a58cdc
Document defaults for JPEG settings.
3 years ago
Pierre Chatelier
6390b50d6e
Merge pull request #21701 from chacha21:tiff_10_12_14
...
Add 10-12-14bit (integer) TIFF decoding support
* Add 12bit (integer) TIFF decoding support
An (slow) unpacking step is inserted when the native bpp is not equal to the dst_bpp
Currently, I do not know if there can be several packing flavours in TIFF data.
* added tests
* move sample files to opencv_extra
* added 10b and 14b unpacking
* fix compilation for non MSVC compilers by using more standard typedefs
* yet another typdef usage change to fix buildbot Mac compilation
* fixed unpacking of partial packets
* fixed warnings returned by buildbot
* modifications as suggested by reviewer
3 years ago
Alexander Alekhin
2b7803dbac
imgcodecs: add runtime checks to validate input
...
backport of commit: f9b1dbe2ac
3 years ago
Alexander Alekhin
f9b1dbe2ac
imgcodecs: add runtime checks to validate input
3 years ago
Harvey
f4a7754cc0
Merge pull request #21428 from Harvey-Huang:TIFF
...
TiffEncoder write support more depth type
* TiffEncoder write support more depth type
* testing code
* update testing code
* add fallthrough
3 years ago
Suleyman TURKMEN
2b5bb02817
Update imgcodecs.hpp
3 years ago
Suleyman TURKMEN
f1857030b5
bigtiff images reading
3 years ago
Suleyman TURKMEN
172bb7887c
Update imgcodecs.hpp
3 years ago
Harvey
c3e27bcf87
Merge pull request #21400 from Harvey-Huang:master
...
tiff need check TIFFTAG_SAMPLEFORMAT, should not always use unsigned.
3 years ago
Suleyman TURKMEN
0e6a2c0491
fix legacy constants
3 years ago
Alexander Alekhin
f43fec7ee6
cmake: use find_package(OpenEXR) to support OpenEXR 3+
3 years ago
Alexander Alekhin
381d9bafdf
imgcodecs: disable OpenEXR in runtime for 3rdparty source code
...
- builtin OpenEXR source code is outdated
- external OpenEXR distributions are allowed
3 years ago
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
af154e3053
fixed bug: opencv read tif file convert Palette color image as grayscale image
3 years ago
Harvey
9267536fee
Merge pull request #20875 from Harvey-Huang:master
...
* bmp specified BI_BITFIELDS should take care RGBA bit mask
* change the name
* support xrgb bmp file
* support xrgb bmp file(add test case)
* update testing code
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
Giles Payne
eb56ca3b0d
Fix build on older Xcode versions
3 years ago
Ruben Gonzalez
0c13d34ade
imgcodecs(doc): Sync imread_ docuemtation with the implemetation.
...
Documentation was desynchronized in commit 11eafca3e2
3 years ago
Giles Payne
2f180cea7f
Add Quicklook for Mat on iOS and macOS
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
Alexander Smorkalov
083a7c8f0a
Fix OpenCV build with OpenEXR before 2.2.0.
4 years ago
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
4 years ago
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
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
6d81a88288
build warning (windows 32-bit)
4 years ago
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>
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