Enum opencv::imgcodecs::ImreadModes [−][src]
#[repr(C)]
pub enum ImreadModes {
Show 13 variants
IMREAD_UNCHANGED,
IMREAD_GRAYSCALE,
IMREAD_COLOR,
IMREAD_ANYDEPTH,
IMREAD_ANYCOLOR,
IMREAD_LOAD_GDAL,
IMREAD_REDUCED_GRAYSCALE_2,
IMREAD_REDUCED_COLOR_2,
IMREAD_REDUCED_GRAYSCALE_4,
IMREAD_REDUCED_COLOR_4,
IMREAD_REDUCED_GRAYSCALE_8,
IMREAD_REDUCED_COLOR_8,
IMREAD_IGNORE_ORIENTATION,
}Expand description
Imread flags
Variants
If set, return the loaded image as is (with alpha channel, otherwise it gets cropped). Ignore EXIF orientation.
If set, always convert image to the single channel grayscale image (codec internal conversion).
If set, always convert image to the 3 channel BGR color image.
If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.
If set, the image is read in any possible color format.
If set, use the gdal driver for loading the image.
If set, always convert image to the single channel grayscale image and the image size reduced 1/2.
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/2.
If set, always convert image to the single channel grayscale image and the image size reduced 1/4.
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/4.
If set, always convert image to the single channel grayscale image and the image size reduced 1/8.
If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8.
If set, do not rotate the image according to EXIF’s orientation flag.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ImreadModes
impl Send for ImreadModes
impl Sync for ImreadModes
impl Unpin for ImreadModes
impl UnwindSafe for ImreadModes
Blanket Implementations
Mutably borrows from an owned value. Read more