pub struct Dictionary { /* private fields */ }
Expand description

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

C++ default parameters
  • _bytes_list: Mat()
  • _marker_size: 0
  • _maxcorr: 0
See also

generateCustomDictionary

C++ default parameters
  • random_seed: 0
See also

generateCustomDictionary

C++ default parameters
  • random_seed: 0
See also

getPredefinedDictionary

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

Transform list of bytes to matrix of bits

Trait Implementations

Wrap the specified raw pointer Read more
Return an the underlying raw pointer while consuming this wrapper. Read more
Return the underlying raw pointer. Read more
Return the underlying mutable raw pointer Read more
Read a new dictionary from FileNode. Format: Read more
Write a dictionary to FileStorage. Format is the same as in readDictionary().
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 Read more
Returns the distance of the input bits to the specific id. If allRotations is true, the four posible bits rotation are considered Read more
Draw a canonical marker image Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.