Struct opencv::core::MatConstIterator
source · pub struct MatConstIterator { /* private fields */ }
Expand description
/////////////////////////////// MatConstIterator //////////////////////////////////
Implementations§
source§impl MatConstIterator
impl MatConstIterator
sourcepub fn default() -> Result<MatConstIterator>
pub fn default() -> Result<MatConstIterator>
default constructor
sourcepub fn over(_m: &impl MatTraitConst) -> Result<MatConstIterator>
pub fn over(_m: &impl MatTraitConst) -> Result<MatConstIterator>
constructor that sets the iterator to the beginning of the matrix
sourcepub fn with_rows_cols(
_m: &impl MatTraitConst,
_row: i32,
_col: i32
) -> Result<MatConstIterator>
pub fn with_rows_cols( _m: &impl MatTraitConst, _row: i32, _col: i32 ) -> Result<MatConstIterator>
constructor that sets the iterator to the specified element of the matrix
§C++ default parameters
- _col: 0
sourcepub fn with_rows_cols_def(
_m: &impl MatTraitConst,
_row: i32
) -> Result<MatConstIterator>
pub fn with_rows_cols_def( _m: &impl MatTraitConst, _row: i32 ) -> Result<MatConstIterator>
constructor that sets the iterator to the specified element of the matrix
§Note
This alternative version of [with_rows_cols] function uses the following default values for its arguments:
- _col: 0
sourcepub fn with_start(
_m: &impl MatTraitConst,
_pt: Point
) -> Result<MatConstIterator>
pub fn with_start( _m: &impl MatTraitConst, _pt: Point ) -> Result<MatConstIterator>
constructor that sets the iterator to the specified element of the matrix
sourcepub fn copy(it: &impl MatConstIteratorTraitConst) -> Result<MatConstIterator>
pub fn copy(it: &impl MatConstIteratorTraitConst) -> Result<MatConstIterator>
copy constructor
Trait Implementations§
source§impl Boxed for MatConstIterator
impl Boxed for MatConstIterator
source§unsafe fn from_raw(
ptr: <MatConstIterator as OpenCVFromExtern>::ExternReceive
) -> Self
unsafe fn from_raw( ptr: <MatConstIterator as OpenCVFromExtern>::ExternReceive ) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(
self
) -> <MatConstIterator as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self ) -> <MatConstIterator as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(&self) -> <MatConstIterator as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <MatConstIterator as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(
&mut self
) -> <MatConstIterator as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self ) -> <MatConstIterator as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl Debug for MatConstIterator
impl Debug for MatConstIterator
source§impl Drop for MatConstIterator
impl Drop for MatConstIterator
source§impl MatConstIteratorTrait for MatConstIterator
impl MatConstIteratorTrait for MatConstIterator
fn as_raw_mut_MatConstIterator(&mut self) -> *mut c_void
fn set_elem_size(&mut self, val: size_t)
source§fn decr(&mut self) -> Result<MatConstIterator>
fn decr(&mut self) -> Result<MatConstIterator>
decrements the iterator
source§fn incr(&mut self) -> Result<MatConstIterator>
fn incr(&mut self) -> Result<MatConstIterator>
increments the iterator
source§fn seek(&mut self, ofs: ptrdiff_t, relative: bool) -> Result<()>
fn seek(&mut self, ofs: ptrdiff_t, relative: bool) -> Result<()>
C++ default parameters Read more
source§impl MatConstIteratorTraitConst for MatConstIterator
impl MatConstIteratorTraitConst for MatConstIterator
fn as_raw_MatConstIterator(&self) -> *const c_void
fn m(&self) -> Mat
fn elem_size(&self) -> size_t
fn ptr(&self) -> *const u8
fn slice_start(&self) -> *const u8
fn slice_end(&self) -> *const u8
source§fn get(&self, i: ptrdiff_t) -> Result<*const u8>
fn get(&self, i: ptrdiff_t) -> Result<*const u8>
returns the i-th matrix element, relative to the current
fn lpos(&self) -> Result<ptrdiff_t>
fn typ(&self) -> i32
impl Send for MatConstIterator
Auto Trait Implementations§
impl Freeze for MatConstIterator
impl RefUnwindSafe for MatConstIterator
impl !Sync for MatConstIterator
impl Unpin for MatConstIterator
impl UnwindSafe for MatConstIterator
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
source§impl<T> MatConstIteratorTraitManual for Twhere
T: MatConstIteratorTrait,
impl<T> MatConstIteratorTraitManual for Twhere
T: MatConstIteratorTrait,
source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is of course unsafe as it breaks the Rust aliasing rules, but it might be useful for some performance
sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold
. Read more