Specifies colorness and Depth of the loaded image
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax[FlagsAttribute]
public enum ImreadModes
<FlagsAttribute>
Public Enumeration ImreadModes
[FlagsAttribute]
public enum class ImreadModes
[<FlagsAttribute>]
type ImreadModes
OpenCvSharp.ImreadModes = function();
OpenCvSharp.ImreadModes.createEnum('OpenCvSharp.ImreadModes', true);
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.
|
See Also