## Overview

#include <imgcodecs.hpp>

{
};


## Detailed Documentation

### Enum Values

IMREAD_UNCHANGED


If set, return the loaded image as is (with alpha channel, otherwise it gets cropped).

IMREAD_GRAYSCALE


If set, always convert image to the single channel grayscale image.

IMREAD_COLOR


If set, always convert image to the 3 channel BGR color image.

IMREAD_ANYDEPTH


If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.

IMREAD_ANYCOLOR


If set, the image is read in any possible color format.

IMREAD_LOAD_GDAL


IMREAD_REDUCED_GRAYSCALE_2


If set, always convert image to the single channel grayscale image and the image size reduced 1/2.

IMREAD_REDUCED_COLOR_2


If set, always convert image to the 3 channel BGR color image and the image size reduced 1/2.

IMREAD_REDUCED_GRAYSCALE_4


If set, always convert image to the single channel grayscale image and the image size reduced 1/4.

IMREAD_REDUCED_COLOR_4


If set, always convert image to the 3 channel BGR color image and the image size reduced 1/4.

IMREAD_REDUCED_GRAYSCALE_8


If set, always convert image to the single channel grayscale image and the image size reduced 1/8.

IMREAD_REDUCED_COLOR_8


If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8.

IMREAD_IGNORE_ORIENTATION


If set, do not rotate the image according to EXIF’s orientation flag.