Trait MatTrait

Source
pub trait MatTrait {
    // Required methods
    fn rows(&self) -> i32;
    fn cols(&self) -> i32;
    fn size(&self) -> Size;
    fn mat_type(&self) -> MatType;
    fn channels(&self) -> i32;
    fn is_empty(&self) -> bool;
}
Expand description

Trait for Mat-like objects

Required Methods§

Source

fn rows(&self) -> i32

Get number of rows

Source

fn cols(&self) -> i32

Get number of columns

Source

fn size(&self) -> Size

Get size

Source

fn mat_type(&self) -> MatType

Get matrix type

Source

fn channels(&self) -> i32

Get number of channels

Source

fn is_empty(&self) -> bool

Check if empty

Implementors§