Table of Contents

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

nMarkers int

number of markers in the dictionary

markerSize int

number of bits per dimension of each markers

baseDictionary Dictionary

Include the markers in this dictionary at the beginning (optional)

randomSeed int

a user supplied seed for theRNG()

Returns

Dictionary