Trait opencv::prelude::MatTraitManual
source · pub trait MatTraitManual: MatTraitConstManual + MatTrait {
// Provided methods
unsafe fn at_unchecked_mut<T: DataType>(
&mut self,
i0: i32
) -> Result<&mut T> { ... }
unsafe fn at_2d_unchecked_mut<T: DataType>(
&mut self,
row: i32,
col: i32
) -> Result<&mut T> { ... }
unsafe fn at_pt_unchecked_mut<T: DataType>(
&mut self,
pt: Point
) -> Result<&mut T> { ... }
unsafe fn at_3d_unchecked_mut<T: DataType>(
&mut self,
i0: i32,
i1: i32,
i2: i32
) -> Result<&mut T> { ... }
unsafe fn at_nd_unchecked_mut<T: DataType>(
&mut self,
idx: &[i32]
) -> Result<&mut T> { ... }
fn at_row_mut<T: DataType>(&mut self, row: i32) -> Result<&mut [T]> { ... }
unsafe fn at_row_unchecked_mut<T: DataType>(
&mut self,
row: i32
) -> Result<&mut [T]> { ... }
fn data_bytes_mut(&mut self) -> Result<&mut [u8]> { ... }
fn data_typed_mut<T: DataType>(&mut self) -> Result<&mut [T]> { ... }
unsafe fn data_typed_unchecked_mut<T: DataType>(
&mut self
) -> Result<&mut [T]> { ... }
fn iter_mut<T: DataType>(&mut self) -> Result<MatIterMut<'_, T>>
where Self: Sized { ... }
}
Provided Methods§
sourceunsafe fn at_unchecked_mut<T: DataType>(&mut self, i0: i32) -> Result<&mut T>
unsafe fn at_unchecked_mut<T: DataType>(&mut self, i0: i32) -> Result<&mut T>
Like Mat::at_mut()
but performs no bounds or type checks
§Safety
Caller must ensure that index is within Mat bounds
sourceunsafe fn at_2d_unchecked_mut<T: DataType>(
&mut self,
row: i32,
col: i32
) -> Result<&mut T>
unsafe fn at_2d_unchecked_mut<T: DataType>( &mut self, row: i32, col: i32 ) -> Result<&mut T>
Like Mat::at_2d_mut()
but performs no bounds or type checks
§Safety
Caller must ensure that indices are within Mat bounds
sourceunsafe fn at_pt_unchecked_mut<T: DataType>(
&mut self,
pt: Point
) -> Result<&mut T>
unsafe fn at_pt_unchecked_mut<T: DataType>( &mut self, pt: Point ) -> Result<&mut T>
Like Mat::at_pt_mut()
but performs no bounds or type checks
§Safety
Caller must ensure that point is within Mat bounds
sourceunsafe fn at_3d_unchecked_mut<T: DataType>(
&mut self,
i0: i32,
i1: i32,
i2: i32
) -> Result<&mut T>
unsafe fn at_3d_unchecked_mut<T: DataType>( &mut self, i0: i32, i1: i32, i2: i32 ) -> Result<&mut T>
Like Mat::at_3d_mut()
but performs no bounds or type checks
§Safety
Caller must ensure that indices are within Mat bounds
sourceunsafe fn at_nd_unchecked_mut<T: DataType>(
&mut self,
idx: &[i32]
) -> Result<&mut T>
unsafe fn at_nd_unchecked_mut<T: DataType>( &mut self, idx: &[i32] ) -> Result<&mut T>
Like Mat::at_nd_mut()
but performs no bounds or type checks
§Safety
Caller must ensure that indices are within Mat bounds
sourcefn at_row_mut<T: DataType>(&mut self, row: i32) -> Result<&mut [T]>
fn at_row_mut<T: DataType>(&mut self, row: i32) -> Result<&mut [T]>
Return a complete writeable row
sourceunsafe fn at_row_unchecked_mut<T: DataType>(
&mut self,
row: i32
) -> Result<&mut [T]>
unsafe fn at_row_unchecked_mut<T: DataType>( &mut self, row: i32 ) -> Result<&mut [T]>
Like Mat::at_row_mut()
but performs no bounds or type checks
§Safety
Caller must ensure that index is within Mat bounds
sourcefn data_bytes_mut(&mut self) -> Result<&mut [u8]>
fn data_bytes_mut(&mut self) -> Result<&mut [u8]>
Returns underlying data array as mutable byte slice, Mat must be continuous.