Enum ImreadModes
cvLoadImage type
[Flags]
public enum ImreadModes
Fields
AnyColor = 4
If set, the image is read in any possible color format.
AnyDepth = 2
If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.
Color = 1
If set, always convert image to the 3 channel BGR color image.
Grayscale = 0
If set, always convert image to the single channel grayscale image.
IgnoreOrientation = 128
If set, do not rotate the image according to EXIF's orientation flag.
LoadGdal = 8
If set, use the gdal driver for loading the image.
ReducedColor2 = Color | ReducedGrayscale2
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/2.
ReducedColor4 = Color | ReducedGrayscale4
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/4.
ReducedColor8 = Color | ReducedGrayscale8
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8.
ReducedGrayscale2 = 16
If set, always convert image to the single channel grayscale image and the image size reduced 1/2.
ReducedGrayscale4 = 32
If set, always convert image to the single channel grayscale image and the image size reduced 1/4.
ReducedGrayscale8 = 64
If set, always convert image to the single channel grayscale image and the image size reduced 1/8.
Unchanged = -1
If set, return the loaded image as is (with alpha channel, otherwise it gets cropped).