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

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

Provided methods

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

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

Safety

Caller must ensure that index is within Mat bounds

pub unsafe fn at_unchecked_mut<T: DataType>(
    &mut self,
    i0: i32
) -> Result<&mut T>
[src]

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

Safety

Caller must ensure that index is within Mat bounds

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

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

Safety

Caller must ensure that indices are within Mat bounds

pub unsafe fn at_2d_unchecked_mut<T: DataType>(
    &mut self,
    row: i32,
    col: i32
) -> Result<&mut T>
[src]

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

Safety

Caller must ensure that indices are within Mat bounds

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

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

Safety

Caller must ensure that point is within Mat bounds

pub unsafe fn at_pt_unchecked_mut<T: DataType>(
    &mut self,
    pt: Point
) -> Result<&mut T>
[src]

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

Safety

Caller must ensure that point is within Mat bounds

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

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

Safety

Caller must ensure that indices are within Mat bounds

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

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

Safety

Caller must ensure that indices are within Mat bounds

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

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

Safety

Caller must ensure that indices are within Mat bounds

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

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

Safety

Caller must ensure that indices are within Mat bounds

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

Return a complete read-only row

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

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

Safety

Caller must ensure that index is within Mat bounds

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

Return a complete writeable row

pub unsafe fn at_row_unchecked_mut<T: DataType>(
    &mut self,
    row: i32
) -> Result<&mut [T]>
[src]

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

Safety

Caller must ensure that index is within Mat bounds

pub fn size(&self) -> Result<Size>[src]

pub fn is_allocated(&self) -> bool[src]

pub fn set(&mut self, s: Scalar) -> Result<()>[src]

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

Parameters

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

pub fn data(&self) -> Result<&u8>[src]

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

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

pub fn data_typed_mut<T: DataType>(&mut self) -> Result<&mut [T]>[src]

pub unsafe fn data_typed_unchecked_mut<T: DataType>(
    &mut self
) -> Result<&mut [T]>
[src]

pub fn to_vec_2d<T: DataType>(&self) -> Result<Vec<Vec<T>>>[src]

Loading content...

Implementors

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

Loading content...