Trait opencv::core::MatxTrait [−][src]
pub trait MatxTrait: Sized {
type ElemType: ValidMatxType;
Show 14 methods
fn rows(&self) -> usize;
fn cols(&self) -> usize;
fn val(&self) -> &[Self::ElemType];
fn val_mut(&mut self) -> &mut [Self::ElemType];
fn all(alpha: Self::ElemType) -> Self;
fn channels(&self) -> usize { ... }
fn shortdim(&self) -> usize { ... }
fn zeros() -> Self { ... }
fn ones() -> Self { ... }
fn get(&self, idx: (usize, usize)) -> Option<&Self::ElemType> { ... }
unsafe fn get_unchecked(&self, idx: (usize, usize)) -> &Self::ElemType { ... }
fn get_mut(&mut self, idx: (usize, usize)) -> Option<&mut Self::ElemType> { ... }
unsafe fn get_unchecked_mut(
&mut self,
idx: (usize, usize)
) -> &mut Self::ElemType { ... }
fn eye() -> Self { ... }
}
Associated Types
type ElemType: ValidMatxType
Required methods
Provided methods
Safety
Caller must ensure that the specified idx
is within the Matx
bounds
Safety
Caller must ensure that the specified idx
is within the Matx
bounds