Struct opencv::core::Mat_

source ·
pub struct Mat_<T> { /* private fields */ }
Expand description

docs.opencv.org

This struct is freely convertible into and from Mat using into and try_from methods. You might want to convert Mat to Mat_ before calling typed methods (like at, data_typed) when more performance is required because this way you will skip the data type checks (still WIP, not all methods are covered).

Implementations

Trait Implementations

Wrap the specified raw pointer Read more
Return an the underlying raw pointer while consuming this wrapper. Read more
Return the underlying raw pointer. Read more
Return the underlying mutable raw pointer Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
! includes several bit-fields: Read more
the matrix dimensionality, >= 2
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
pointer to the data
pointer to the data
interaction with UMat
interaction with UMat
Sets all or some of the array elements to the specified value. Read more
Allocates new array data if needed. Read more
Allocates new array data if needed. Read more
Allocates new array data if needed. Read more
Allocates new array data if needed. Read more
Increments the reference counter. Read more
Decrements the reference counter and deallocates the matrix if needed. Read more
internal use function, consider to use ‘release’ method instead; deallocates the matrix data
Reserves space for the certain number of rows. Read more
Reserves space for the certain number of bytes. Read more
Changes the number of matrix rows. Read more
Changes the number of matrix rows. Read more
Adds elements to the bottom of the matrix. Read more
Removes elements from the bottom of the matrix. Read more
Adjusts a submatrix size and position within the parent matrix. Read more
Returns a pointer to the specified matrix row. Read more
Returns a pointer to the specified matrix row. Read more
Returns a pointer to the specified matrix row. Read more
Returns a pointer to the specified matrix row. Read more
Returns a reference to the specified array element. Read more
Returns a reference to the specified array element. Read more
Returns a reference to the specified array element. Read more
Returns a reference to the specified array element. Read more
Returns a reference to the specified array element. Read more
internal use method: updates the continuity flag
! includes several bit-fields: Read more
the matrix dimensionality, >= 2
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
helper fields used in locateROI and adjustROI
retrieve UMat from Mat Read more
Creates a matrix header for the specified matrix row. Read more
Creates a matrix header for the specified matrix column. Read more
Creates a matrix header for the specified row span. Read more
Creates a matrix header for the specified row span. Read more
Creates a matrix header for the specified column span. Read more
Creates a matrix header for the specified column span. Read more
Extracts a diagonal from a matrix Read more
Creates a full copy of the array and the underlying data. Read more
Copies the matrix to another one. Read more
Copies the matrix to another one. Read more
Converts an array to another data type with optional scaling. Read more
Provides a functional form of convertTo. Read more
Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
Transposes a matrix. Read more
Inverses a matrix. Read more
Performs an element-wise multiplication or division of the two matrices. Read more
Computes a cross-product of two 3-element vectors. Read more
Computes a dot-product of two vectors. Read more
Locates the matrix header within a parent matrix. Read more
Reports whether the matrix is continuous or not. Read more
returns true if the matrix is a submatrix of another matrix
Returns the matrix element size in bytes. Read more
Returns the size of each matrix element channel in bytes. Read more
Returns the type of a matrix element. Read more
Returns the depth of a matrix element. Read more
Returns the number of matrix channels. Read more
Returns a normalized step. Read more
Returns true if the array has no elements. Read more
Returns the total number of array elements. Read more
Returns the total number of array elements. Read more
Parameters Read more
Returns a pointer to the specified matrix row. Read more
Returns a pointer to the specified matrix row. Read more
Returns a pointer to the specified matrix row. Read more
Returns a pointer to the specified matrix row. Read more
Returns a reference to the specified array element. Read more
Returns a reference to the specified array element. Read more
Returns a reference to the specified array element. Read more
Returns a reference to the specified array element. Read more
Returns a reference to the specified array element. Read more
The type returned in the event of a conversion error.
Performs the conversion.

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.