Method ExtendDictionary
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ExtendDictionary(int, int, Dictionary?, int)
Extend base dictionary by new nMarkers. 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.
public static Dictionary ExtendDictionary(int nMarkers, int markerSize, Dictionary? baseDictionary = null, int randomSeed = 0)
Parameters
nMarkersintnumber of markers in the dictionary
markerSizeintnumber of bits per dimension of each markers
baseDictionaryDictionaryInclude the markers in this dictionary at the beginning (optional)
randomSeedinta user supplied seed for theRNG()