[][src]Struct opencv::types::DictionaryRef

pub struct DictionaryRef<'o> { /* fields omitted */ }

Methods from Deref<Target = Dictionary>

pub fn marker_size(&self) -> Result<i32>[src]

pub fn max_correction_bits(&self) -> Result<i32>[src]

pub fn identify(
    &self,
    only_bits: &Mat,
    idx: &mut i32,
    rotation: &mut i32,
    max_correction_rate: f64
) -> Result<bool>
[src]

Given a matrix of bits. Returns whether if marker is identified or not. It returns by reference the correct id (if any) and the correct rotation

pub fn get_distance_to_id(
    &self,
    bits: &dyn ToInputArray,
    id: i32,
    all_rotations: bool
) -> Result<i32>
[src]

Returns the distance of the input bits to the specific id. If allRotations is true, the four posible bits rotation are considered

C++ default parameters

  • all_rotations: true

pub fn draw_marker(
    &self,
    id: i32,
    side_pixels: i32,
    _img: &mut dyn ToOutputArray,
    border_bits: i32
) -> Result<()>
[src]

Draw a canonical marker image

C++ default parameters

  • border_bits: 1

Trait Implementations

impl<'_> Deref for DictionaryRef<'_>[src]

type Target = Dictionary

The resulting type after dereferencing.

Auto Trait Implementations

impl<'o> RefUnwindSafe for DictionaryRef<'o>

impl<'o> !Send for DictionaryRef<'o>

impl<'o> !Sync for DictionaryRef<'o>

impl<'o> Unpin for DictionaryRef<'o>

impl<'o> UnwindSafe for DictionaryRef<'o>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.