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