#[non_exhaustive]pub struct Matrix {
pub rows: i32,
pub cols: i32,
pub type: i32,
pub data: Bytes,
/* private fields */
}Expand description
Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rows: i32Number of rows in the matrix.
cols: i32Number of columns in the matrix.
type: i32This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
data: BytesThe matrix data.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Matrix
Auto Trait Implementations§
impl !Freeze for Matrix
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnwindSafe for Matrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more