[][src]Function opencv::aruco::generate_custom_dictionary_with_base

pub fn generate_custom_dictionary_with_base(
    n_markers: i32,
    marker_size: i32,
    base_dictionary: &PtrOfDictionary,
    random_seed: i32
) -> Result<PtrOfDictionary>

Generates a new customizable marker dictionary

Parameters

  • nMarkers: number of markers in the dictionary
  • markerSize: number of bits per dimension of each markers
  • baseDictionary: Include the markers in this dictionary at the beginning (optional)
  • randomSeed: a user supplied seed for theRNG()

This function creates a new dictionary composed by nMarkers markers and each markers composed by markerSize x markerSize bits. If baseDictionary is provided, its markers are directly included and the rest are generated based on them. If the size of baseDictionary is higher than nMarkers, only the first nMarkers in baseDictionary are taken and no new marker is added.

C++ default parameters

  • random_seed: 0