Trait opencv::core::MatxTrait

source ·
pub trait MatxTrait: Sized {
    type ElemType;

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
    where
        Self::ElemType: Zero
, { ... } fn ones() -> Self
    where
        Self::ElemType: One
, { ... } 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
    where
        Self::ElemType: One + Zero
, { ... }
}

Required Associated Types§

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

Implementors§