opencv/modules/imgcodecs/src
gdkessler 2674c6b5e0 Merge pull request #10093 from gdkessler/gdal_image_read_fix_10089
Fix GDAL image decoding color problems identified by issue #10089, by: (#10093)

* Fix GDAL image decoding color problems identified by issue #10089, by:

Fixing CV_8UC1 symbol, which should be CV_8UC3 for RGB GDAL color table images.

Fixing image.ptr<VecX>(row,col)[] to be (*image.ptr<VecX>(row,col))[] to correctly access VecX array elements, as ptr<VecX>() returns a pointer to the VecX, not the first element of VecX. This fixes the color problem with color table gif images, and avoids out-of-bounds memory access.

Respecting the color identification of raster bands provided by the GDAL image driver, and produce BGR or BGRA images. Note that color bands of images using the HSL, CMY, CMYK, or YCbCr color space are ignored, rather than converting them to BGR.

* When reading image files using the GDAL decoder, exit with an error if a color band is encountered that isn't used (eg. from CMYK or YCbCbr), rather than silently ignoring the band's data.
2017-11-20 15:07:24 +03:00
..
bitstrm.cpp imgcodecs: refactoring, improve code quality 2017-08-16 18:56:41 +03:00
bitstrm.hpp imgcodecs: refactoring, improve code quality 2017-08-16 18:56:41 +03:00
exif.cpp Merge pull request #8492 from brian-armstrong-discord:exif_inmemory 2017-04-14 23:12:07 +03:00
exif.hpp Merge pull request #8492 from brian-armstrong-discord:exif_inmemory 2017-04-14 23:12:07 +03:00
grfmt_base.cpp Fixing some static analysis issues 2017-06-27 14:30:26 +03:00
grfmt_base.hpp new function imread_reduced() 2015-07-19 03:53:43 +03:00
grfmt_bmp.cpp Fix out of bounds write 2017-10-21 12:12:53 -07:00
grfmt_bmp.hpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
grfmt_exr.cpp imgcodesc: fix code problems with integer overflow / address arithmetic / UB 2017-08-23 17:27:27 +03:00
grfmt_exr.hpp Fixed some issues found by static analysis 2017-09-08 12:22:12 +03:00
grfmt_gdal.cpp Merge pull request #10093 from gdkessler/gdal_image_read_fix_10089 2017-11-20 15:07:24 +03:00
grfmt_gdal.hpp Fixing the gdal include error that Macports seems to only mess up. 2015-05-11 20:27:50 -07:00
grfmt_gdcm.cpp GDCM: several improvements 2016-07-08 16:08:55 +03:00
grfmt_gdcm.hpp GDCM: several improvements 2016-07-08 16:08:55 +03:00
grfmt_hdr.cpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
grfmt_hdr.hpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
grfmt_jpeg2000.cpp imgcodesc: fix code problems with integer overflow / address arithmetic / UB 2017-08-23 17:27:27 +03:00
grfmt_jpeg2000.hpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
grfmt_jpeg.cpp imgcodesc: fix code problems with integer overflow / address arithmetic / UB 2017-08-23 17:27:27 +03:00
grfmt_jpeg.hpp Fixed some issues found by static analysis 2017-09-08 12:22:12 +03:00
grfmt_pam.cpp imgcodesc: fix code problems with integer overflow / address arithmetic / UB 2017-08-23 17:27:27 +03:00
grfmt_pam.hpp imgcodecs: Implementation of PAM encoder/decoder 2016-09-06 15:47:22 +02:00
grfmt_png.cpp Fixing some static analysis issues 2017-06-27 14:30:26 +03:00
grfmt_png.hpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
grfmt_pxm.cpp imgcodecs: refactoring, improve code quality 2017-08-16 18:56:41 +03:00
grfmt_pxm.hpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
grfmt_sunras.cpp imgcodesc: fix code problems with integer overflow / address arithmetic / UB 2017-08-23 17:27:27 +03:00
grfmt_sunras.hpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
grfmt_tiff.cpp imgcodecs(tiff): drop legacy code 2017-09-24 22:36:17 +00:00
grfmt_tiff.hpp imgcodecs(tiff): drop legacy code 2017-09-24 22:36:17 +00:00
grfmt_webp.cpp Fixing some static analysis issues 2017-06-27 14:30:26 +03:00
grfmt_webp.hpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
grfmts.hpp imgcodecs: Implementation of PAM encoder/decoder 2016-09-06 15:47:22 +02:00
ios_conversions.mm Fix UIImageToMat method by taking image scale information into account 2017-03-22 22:33:13 -07:00
loadsave.cpp imgcodecs(tiff): drop legacy code 2017-09-24 22:36:17 +00:00
precomp.hpp build: replace WIN32 => _WIN32 2017-07-25 13:30:48 +03:00
rgbe.cpp Replace deprecated malloc.h 2016-03-16 11:37:27 +01:00
rgbe.hpp Extract imgcodecs module from highgui 2014-07-07 16:28:08 +04:00
utils.cpp imgcodesc: fix code problems with integer overflow / address arithmetic / UB 2017-08-23 17:27:27 +03:00
utils.hpp imgcodesc: fix code problems with integer overflow / address arithmetic / UB 2017-08-23 17:27:27 +03:00