[][src]Trait opencv::core::MatTraitManual

pub trait MatTraitManual: MatTrait {
    unsafe fn at_unchecked<T: DataType>(&self, i0: i32) -> Result<&T> { ... }
unsafe fn at_unchecked_mut<T: DataType>(
        &mut self,
        i0: i32
    ) -> Result<&mut T> { ... }
unsafe fn at_2d_unchecked<T: DataType>(
        &self,
        row: i32,
        col: i32
    ) -> Result<&T> { ... }
unsafe fn at_2d_unchecked_mut<T: DataType>(
        &mut self,
        row: i32,
        col: i32
    ) -> Result<&mut T> { ... }
unsafe fn at_pt_unchecked<T: DataType>(&self, pt: Point) -> Result<&T> { ... }
unsafe fn at_pt_unchecked_mut<T: DataType>(
        &mut self,
        pt: Point
    ) -> Result<&mut T> { ... }
unsafe fn at_3d_unchecked<T: DataType>(
        &self,
        i0: i32,
        i1: i32,
        i2: i32
    ) -> Result<&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<T: DataType>(&self, idx: &[i32]) -> Result<&T> { ... }
unsafe fn at_nd_unchecked_mut<T: DataType>(
        &mut self,
        idx: &[i32]
    ) -> Result<&mut T> { ... }
fn at_row<T: DataType>(&self, row: i32) -> Result<&[T]> { ... }
unsafe fn at_row_unchecked<T: DataType>(&self, row: i32) -> Result<&[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 size(&self) -> Result<Size> { ... }
fn is_allocated(&self) -> bool { ... }
fn set(&mut self, s: Scalar) -> Result<()> { ... }
fn data(&self) -> Result<&u8> { ... }
fn data_typed<T: DataType>(&self) -> Result<&[T]> { ... }
unsafe fn data_typed_unchecked<T: DataType>(&self) -> Result<&[T]> { ... }
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 to_vec_2d<T: DataType>(&self) -> Result<Vec<Vec<T>>> { ... } }

Provided methods

unsafe fn at_unchecked<T: DataType>(&self, i0: i32) -> Result<&T>

Like Mat::at() but performs no bounds or type checks

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

unsafe fn at_2d_unchecked<T: DataType>(&self, row: i32, col: i32) -> Result<&T>

Like Mat::at_2d() but performs no bounds or type checks

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

unsafe fn at_pt_unchecked<T: DataType>(&self, pt: Point) -> Result<&T>

Like Mat::at_pt() but performs no bounds or type checks

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

unsafe fn at_3d_unchecked<T: DataType>(
    &self,
    i0: i32,
    i1: i32,
    i2: i32
) -> Result<&T>

Return a complete read-only row

unsafe fn at_3d_unchecked_mut<T: DataType>(
    &mut self,
    i0: i32,
    i1: i32,
    i2: i32
) -> Result<&mut T>

unsafe fn at_nd_unchecked<T: DataType>(&self, idx: &[i32]) -> Result<&T>

unsafe fn at_nd_unchecked_mut<T: DataType>(
    &mut self,
    idx: &[i32]
) -> Result<&mut T>

fn at_row<T: DataType>(&self, row: i32) -> Result<&[T]>

unsafe fn at_row_unchecked<T: DataType>(&self, row: i32) -> Result<&[T]>

Like Mat::at_row() but performs no bounds or type checks

fn at_row_mut<T: DataType>(&mut self, row: i32) -> Result<&mut [T]>

Return a complete writeable row

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

fn size(&self) -> Result<Size>

fn is_allocated(&self) -> bool

fn set(&mut self, s: Scalar) -> Result<()>

Sets all or some of the array elements to the specified value.

Parameters

  • s: Assigned scalar converted to the actual array type.

fn data(&self) -> Result<&u8>

fn data_typed<T: DataType>(&self) -> Result<&[T]>

unsafe fn data_typed_unchecked<T: DataType>(&self) -> Result<&[T]>

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 to_vec_2d<T: DataType>(&self) -> Result<Vec<Vec<T>>>

Loading content...

Implementors

impl<T: MatTrait + ?Sized> MatTraitManual for T[src]

Loading content...