Show / Hide Table of Contents

Class Dictionary

Dictionary/Set of markers. It contains the inner codification

Inheritance
System.Object
DisposableObject
DisposableCvObject
Dictionary
Implements
ICvPtrHolder
Inherited Members
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.DisposeManaged()
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.Aruco
Assembly: OpenCvSharp.dll
Syntax
public class Dictionary : DisposableCvObject, ICvPtrHolder

Properties

| Improve this Doc View Source

BytesList

Marker code information

Declaration
public Mat BytesList { get; }
Property Value
Type Description
Mat
| Improve this Doc View Source

MarkerSize

Number of bits per dimension.

Declaration
public int MarkerSize { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

MaxCorrectionBits

Maximum number of bits that can be corrected.

Declaration
public int MaxCorrectionBits { get; set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

DisposeUnmanaged()

Releases unmanaged resources

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

GenerateImageMarker(Int32, Int32, OutputArray, Int32)

Generate a canonical marker image

Declaration
public void GenerateImageMarker(int id, int sidePixels, OutputArray img, int borderBits = 1)
Parameters
Type Name Description
System.Int32 id
System.Int32 sidePixels
OutputArray img
System.Int32 borderBits
| Improve this Doc View Source

GetBitsFromByteList(Mat, Int32)

Transform list of bytes to matrix of bits

Declaration
public static Mat GetBitsFromByteList(Mat byteList, int markerSize)
Parameters
Type Name Description
Mat byteList
System.Int32 markerSize
Returns
Type Description
Mat
| Improve this Doc View Source

GetByteListFromBits(Mat)

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

Declaration
public static Mat GetByteListFromBits(Mat bits)
Parameters
Type Name Description
Mat bits
Returns
Type Description
Mat
| Improve this Doc View Source

GetDistanceToId(InputArray, Int32, Boolean)

Returns the distance of the input bits to the specific id. If allRotations is true, the four possible bits rotation are considered

Declaration
public int GetDistanceToId(InputArray bits, int id, bool allRotations = true)
Parameters
Type Name Description
InputArray bits
System.Int32 id
System.Boolean allRotations
Returns
Type Description
System.Int32
| Improve this Doc View Source

Identify(Mat, out Int32, out Int32, Double)

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

Declaration
public bool Identify(Mat onlyBits, out int idx, out int rotation, double maxCorrectionRate)
Parameters
Type Name Description
Mat onlyBits
System.Int32 idx
System.Int32 rotation
System.Double maxCorrectionRate
Returns
Type Description
System.Boolean

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX