Click or drag to resize

ImreadModes Enumeration

Specifies colorness and Depth of the loaded image

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
[FlagsAttribute]
public enum ImreadModes
Members
  Member nameValueDescription
Unchanged-1 If set, return the loaded image as is (with alpha channel, otherwise it gets cropped).
Grayscale0 If set, always convert image to the single channel grayscale image.
Color1 If set, always convert image to the 3 channel BGR color image.
AnyDepth2 If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.
AnyColor4 If set, the image is read in any possible color format.
LoadGdal8 If set, use the gdal driver for loading the image.
ReducedGrayscale216 If set, always convert image to the single channel grayscale image and the image size reduced 1/2.
ReducedColor217 If set, always convert image to the 3 channel BGR color image and the image size reduced 1/2.
ReducedGrayscale432 If set, always convert image to the single channel grayscale image and the image size reduced 1/4.
ReducedColor433 If set, always convert image to the 3 channel BGR color image and the image size reduced 1/4.
ReducedGrayscale864 If set, always convert image to the single channel grayscale image and the image size reduced 1/8.
ReducedColor865 If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8.
IgnoreOrientation128 If set, do not rotate the image according to EXIF's orientation flag.
See Also