| 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
<FlagsAttribute>
Public Enumeration ImreadModes
[FlagsAttribute]
public enum class ImreadModes
[<FlagsAttribute>]
type ImreadModes
Members
| Member name | Value | Description |
---|
| Unchanged | -1 |
If set, return the loaded image as is (with alpha channel, otherwise it gets cropped).
|
| Grayscale | 0 |
If set, always convert image to the single channel grayscale image.
|
| Color | 1 |
If set, always convert image to the 3 channel BGR color image.
|
| AnyDepth | 2 |
If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.
|
| AnyColor | 4 |
If set, the image is read in any possible color format.
|
| LoadGdal | 8 |
If set, use the gdal driver for loading the image.
|
| ReducedGrayscale2 | 16 |
If set, always convert image to the single channel grayscale image and the image size reduced 1/2.
|
| ReducedColor2 | 17 |
If set, always convert image to the 3 channel BGR color 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.
|
| ReducedColor4 | 33 |
If set, always convert image to the 3 channel BGR color 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.
|
| ReducedColor8 | 65 |
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8.
|
| IgnoreOrientation | 128 |
If set, do not rotate the image according to EXIF's orientation flag.
|
See Also