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§

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. Read more
Write a dictionary to FileStorage, format is the same as in readDictionary(). Read more
Given a matrix of bits. Returns whether if marker is identified or not. Read more
Returns the distance of the input bits to the specific id. Read more
Generate 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.