pub struct Mat { /* private fields */ }

Implementations

Constructs an empty matrix.

Constructs an empty 1D matrix.

Constructs an empty 2D matrix.

Constructs an empty 3D matrix.

Constructs an empty 4D matrix.

Constructs 1D matrix with a given raw data.

Safety

Data pointer must not be aliased, it must be valid for the entire lifetime of Mat and it must be of correct size.

Constructs 2D matrix with a given raw data.

Safety

Data pointer must not be aliased, it must be valid for the entire lifetime of Mat and it must be of correct size.

Constructs 3D matrix with a given raw data.

Safety

Data pointer must not be aliased, it must be valid for the entire lifetime of Mat and it must be of correct size.

Constructs 4D matrix with a given raw data.

Safety

Data pointer must not be aliased, it must be valid for the entire lifetime of Mat and it must be of correct size.

Constructs matrix from pixel byte array

Fills matrix with a given value.

Returns number of matrix dimensions.

Returns matrix width

Returns matrix height

Returns matrix depth

Returns matrix channels

Pointer to raw matrix data

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.