Trait ImageTrait

Source
pub trait ImageTrait: Dimensioned {
    // Required methods
    fn image_type(&self) -> MatType;
    fn channels(&self) -> i32;
    fn is_empty(&self) -> bool;
}
Expand description

Trait for image-like objects

Required Methods§

Source

fn image_type(&self) -> MatType

Get image type

Source

fn channels(&self) -> i32

Get number of channels

Source

fn is_empty(&self) -> bool

Check if empty

Implementors§