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