[−][src]Struct opencv::core::Mat_
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
impl<T: DataType> Mat_<T>
[src]
pub fn into_untyped(self) -> Mat
[src]
pub fn as_raw_Mat_(&self) -> *const c_void
[src]
pub fn as_raw_mut_Mat_(&mut self) -> *mut c_void
[src]
pub fn at(&self, i0: i32) -> Result<&T>
[src]
pub fn at_mut(&mut self, i0: i32) -> Result<&mut T>
[src]
pub fn data_typed(&self) -> Result<&[T]>
[src]
pub fn data_typed_mut(&mut self) -> Result<&mut [T]>
[src]
Trait Implementations
impl<T> Boxed for Mat_<T>
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl<T> Debug for Mat_<T>
[src]
impl<T: DataType> From<Mat_<T>> for Mat
[src]
impl<T> MatTrait for Mat_<T>
[src]
fn as_raw_Mat(&self) -> *const c_void
[src]
fn as_raw_mut_Mat(&mut self) -> *mut c_void
[src]
fn flags(&self) -> i32
[src]
fn set_flags(&mut self, val: i32)
[src]
fn dims(&self) -> i32
[src]
fn set_dims(&mut self, val: i32)
[src]
fn rows(&self) -> i32
[src]
fn set_rows(&mut self, val: i32)
[src]
fn cols(&self) -> i32
[src]
fn set_cols(&mut self, val: i32)
[src]
fn data_mut(&mut self) -> &mut u8
[src]
unsafe fn set_data(&mut self, val: &mut u8)
[src]
fn datastart(&self) -> &u8
[src]
fn dataend(&self) -> &u8
[src]
fn datalimit(&self) -> &u8
[src]
fn u(&mut self) -> UMatData
[src]
fn set_u(&mut self, val: &mut UMatData)
[src]
fn mat_size(&self) -> MatSize
[src]
fn mat_step(&self) -> MatStep
[src]
fn get_umat(
&self,
access_flags: AccessFlag,
usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]
&self,
access_flags: AccessFlag,
usage_flags: UMatUsageFlags
) -> Result<UMat>
fn row(&self, y: i32) -> Result<Mat>
[src]
fn col(&self, x: i32) -> Result<Mat>
[src]
fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<Mat>
[src]
fn row_range(&self, r: &Range) -> Result<Mat>
[src]
fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<Mat>
[src]
fn col_range(&self, r: &Range) -> Result<Mat>
[src]
fn diag(&self, d: i32) -> Result<Mat>
[src]
fn try_clone(&self) -> Result<Mat>
[src]
fn copy_to(&self, m: &mut dyn ToOutputArray) -> Result<()>
[src]
fn copy_to_masked(
&self,
m: &mut dyn ToOutputArray,
mask: &dyn ToInputArray
) -> Result<()>
[src]
&self,
m: &mut dyn ToOutputArray,
mask: &dyn ToInputArray
) -> Result<()>
fn convert_to(
&self,
m: &mut dyn ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64
) -> Result<()>
[src]
&self,
m: &mut dyn ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64
) -> Result<()>
fn assign_to(&self, m: &mut Mat, typ: i32) -> Result<()>
[src]
fn set_to(
&mut self,
value: &dyn ToInputArray,
mask: &dyn ToInputArray
) -> Result<Mat>
[src]
&mut self,
value: &dyn ToInputArray,
mask: &dyn ToInputArray
) -> Result<Mat>
fn reshape(&self, cn: i32, rows: i32) -> Result<Mat>
[src]
fn reshape_nd(&self, cn: i32, newsz: &[i32]) -> Result<Mat>
[src]
fn reshape_nd_vec(&self, cn: i32, newshape: &Vector<i32>) -> Result<Mat>
[src]
fn t(&self) -> Result<MatExpr>
[src]
fn inv(&self, method: i32) -> Result<MatExpr>
[src]
fn mul(&self, m: &dyn ToInputArray, scale: f64) -> Result<MatExpr>
[src]
fn cross(&self, m: &dyn ToInputArray) -> Result<Mat>
[src]
fn dot(&self, m: &dyn ToInputArray) -> Result<f64>
[src]
unsafe fn create_rows_cols(
&mut self,
rows: i32,
cols: i32,
typ: i32
) -> Result<()>
[src]
&mut self,
rows: i32,
cols: i32,
typ: i32
) -> Result<()>
unsafe fn create_size(&mut self, size: Size, typ: i32) -> Result<()>
[src]
unsafe fn create_nd(&mut self, sizes: &[i32], typ: i32) -> Result<()>
[src]
unsafe fn create_nd_vec(&mut self, sizes: &Vector<i32>, typ: i32) -> Result<()>
[src]
fn addref(&mut self) -> Result<()>
[src]
fn release(&mut self) -> Result<()>
[src]
fn deallocate(&mut self) -> Result<()>
[src]
fn reserve(&mut self, sz: size_t) -> Result<()>
[src]
fn reserve_buffer(&mut self, sz: size_t) -> Result<()>
[src]
fn resize(&mut self, sz: size_t) -> Result<()>
[src]
fn resize_with_default(&mut self, sz: size_t, s: Scalar) -> Result<()>
[src]
fn push_back(&mut self, m: &Mat) -> Result<()>
[src]
fn pop_back(&mut self, nelems: size_t) -> Result<()>
[src]
fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>
[src]
fn adjust_roi(
&mut self,
dtop: i32,
dbottom: i32,
dleft: i32,
dright: i32
) -> Result<Mat>
[src]
&mut self,
dtop: i32,
dbottom: i32,
dleft: i32,
dright: i32
) -> Result<Mat>
fn is_continuous(&self) -> Result<bool>
[src]
fn is_submatrix(&self) -> Result<bool>
[src]
fn elem_size(&self) -> Result<size_t>
[src]
fn elem_size1(&self) -> Result<size_t>
[src]
fn typ(&self) -> Result<i32>
[src]
fn depth(&self) -> Result<i32>
[src]
fn channels(&self) -> Result<i32>
[src]
fn step1(&self, i: i32) -> Result<size_t>
[src]
fn empty(&self) -> Result<bool>
[src]
fn total(&self) -> Result<size_t>
[src]
fn total_slice(&self, start_dim: i32, end_dim: i32) -> Result<size_t>
[src]
fn check_vector(
&self,
elem_channels: i32,
depth: i32,
require_continuous: bool
) -> Result<i32>
[src]
&self,
elem_channels: i32,
depth: i32,
require_continuous: bool
) -> Result<i32>
unsafe fn ptr_mut(&mut self, i0: i32) -> Result<&mut u8>
[src]
unsafe fn ptr(&self, i0: i32) -> Result<&u8>
[src]
unsafe fn ptr_2d_mut(&mut self, row: i32, col: i32) -> Result<&mut u8>
[src]
unsafe fn ptr_2d(&self, row: i32, col: i32) -> Result<&u8>
[src]
unsafe fn ptr_3d_mut(&mut self, i0: i32, i1: i32, i2: i32) -> Result<&mut u8>
[src]
unsafe fn ptr_3d(&self, i0: i32, i1: i32, i2: i32) -> Result<&u8>
[src]
unsafe fn ptr_nd_mut(&mut self, idx: &[i32]) -> Result<&mut u8>
[src]
unsafe fn ptr_nd(&self, idx: &[i32]) -> Result<&u8>
[src]
fn at_mut<T: DataType>(&mut self, i0: i32) -> Result<&mut T>
[src]
fn at<T: DataType>(&self, i0: i32) -> Result<&T>
[src]
fn at_2d_mut<T: DataType>(&mut self, row: i32, col: i32) -> Result<&mut T>
[src]
fn at_2d<T: DataType>(&self, row: i32, col: i32) -> Result<&T>
[src]
fn at_3d_mut<T: DataType>(
&mut self,
i0: i32,
i1: i32,
i2: i32
) -> Result<&mut T>
[src]
&mut self,
i0: i32,
i1: i32,
i2: i32
) -> Result<&mut T>
fn at_3d<T: DataType>(&self, i0: i32, i1: i32, i2: i32) -> Result<&T>
[src]
fn at_nd_mut<T: DataType>(&mut self, idx: &[i32]) -> Result<&mut T>
[src]
fn at_nd<T: DataType>(&self, idx: &[i32]) -> Result<&T>
[src]
fn at_pt_mut<T: DataType>(&mut self, pt: Point) -> Result<&mut T>
[src]
fn at_pt<T: DataType>(&self, pt: Point) -> Result<&T>
[src]
fn update_continuity_flag(&mut self) -> Result<()>
[src]
impl<T: DataType> TryFrom<Mat> for Mat_<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Mat_<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Mat_<T> where
T: Send,
[src]
T: Send,
impl<T> !Sync for Mat_<T>
[src]
impl<T> Unpin for Mat_<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Mat_<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,