[][src]Struct opencv::aruco::Dictionary

pub struct Dictionary { /* fields omitted */ }

Dictionary/Set of markers. It contains the inner codification

bytesList contains the marker codewords where

  • bytesList.rows is the dictionary size
  • each marker is encoded using nbytes = ceil(markerSize*markerSize/8.)
  • each row contains all 4 rotations of the marker, so its length is 4*nbytes

bytesList.ptr(i)[k*nbytes + j] is then the j-th byte of i-th marker, in its k-th rotation.

Implementations

impl Dictionary[src]

impl Dictionary[src]

pub fn new(
    _bytes_list: &Mat,
    _marker_size: i32,
    _maxcorr: i32
) -> Result<Dictionary>
[src]

C++ default parameters

  • _bytes_list: Mat()
  • _marker_size: 0
  • _maxcorr: 0

pub fn copy(_dictionary: &Ptr<Dictionary>) -> Result<Dictionary>[src]

pub fn create(
    n_markers: i32,
    marker_size: i32,
    random_seed: i32
) -> Result<Ptr<Dictionary>>
[src]

See also

generateCustomDictionary

C++ default parameters

  • random_seed: 0

pub fn create_from(
    n_markers: i32,
    marker_size: i32,
    base_dictionary: &Ptr<Dictionary>,
    random_seed: i32
) -> Result<Ptr<Dictionary>>
[src]

See also

generateCustomDictionary

C++ default parameters

  • random_seed: 0

pub fn get(dict: i32) -> Result<Ptr<Dictionary>>[src]

See also

getPredefinedDictionary

pub fn get_byte_list_from_bits(bits: &Mat) -> Result<Mat>[src]

Transform matrix of bits to list of bytes in the 4 rotations

pub fn get_bits_from_byte_list(byte_list: &Mat, marker_size: i32) -> Result<Mat>[src]

Transform list of bytes to matrix of bits

Trait Implementations

impl Boxed for Dictionary[src]

impl DictionaryTrait for Dictionary[src]

impl Drop for Dictionary[src]

impl Send for Dictionary[src]

Auto Trait Implementations

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.