Ask Your Question

Revision history [back]

just a note : when you compile OpenCV with GDAL support you can open a gif file like

image = imread( inputImage, IMREAD_LOAD_GDAL);

just a note : when the answer is YES if you compile OpenCV with GDAL support support.

In the case you can open a gif file likeset WITH_GDAL flag to true in CMake and IMREAD_LOAD_GDAL to load the image, then GDAL driver will be used in order to decode the image by supporting the following formats: Raster,Vector.

image = imread( inputImage, IMREAD_LOAD_GDAL);

the answer is YES if you compile OpenCV with GDAL support.

In the case you set WITH_GDAL flag to true in CMake and IMREAD_LOAD_GDAL to load the image, then GDAL driver will be used in order to decode the image by supporting the following formats: Raster,Vector.

image = imread( inputImage, IMREAD_LOAD_GDAL);

another way ( simplier ) use VideoCapture to open gif image