Enum cv::imgcodecs::ImageReadMode[][src]

#[repr(C)]pub enum ImageReadMode {
    Unchanged,
    Grayscale,
    Color,
    AnyDepth,
    AnyColor,
    LoadGdal,
    ReducedGrayscale2,
    ReducedColor2,
    ReducedGrayscale4,
    ReducedColor4,
    ReducedGrayscale8,
    ReducedColor8,
}

ImreadModes. See documentation for detauls

Variants

Unchanged

If set, return the loaded image as is (with alpha channel, otherwise it gets cropped

Grayscale

If set, always convert image to the single channel grayscale image.

Color

If set, always convert image to the 3 channel BGR color image.

AnyDepth

If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.

AnyColor

If set, the image is read in any possible color format.

LoadGdal

If set, use the gdal driver for loading the image.

ReducedGrayscale2

If set, always convert image to the single channel grayscale image and the image size reduced 1/2.

ReducedColor2

If set, always convert image to the 3 channel BGR color 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.

ReducedColor4

If set, always convert image to the 3 channel BGR color 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.

ReducedColor8

If set, always convert image to the 3 channel BGR color image and the image size reduced 1/8.

Trait Implementations

impl Clone for ImageReadMode[src]

impl Copy for ImageReadMode[src]

impl Debug for ImageReadMode[src]

impl Eq for ImageReadMode[src]

impl Hash for ImageReadMode[src]

impl PartialEq<ImageReadMode> for ImageReadMode[src]

impl StructuralEq for ImageReadMode[src]

impl StructuralPartialEq for ImageReadMode[src]

Auto Trait Implementations

impl RefUnwindSafe for ImageReadMode

impl Send for ImageReadMode

impl Sync for ImageReadMode

impl Unpin for ImageReadMode

impl UnwindSafe for ImageReadMode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.