Table of Contents

Class BinaryDescriptor

Namespace
OpenCvSharp.LineDescriptor
Assembly
OpenCvSharp.dll

Detects line segments and computes binary line descriptors.

public sealed class BinaryDescriptor : Algorithm, IDisposable
Inheritance
BinaryDescriptor
Implements
Inherited Members

Properties

DefaultNorm

Gets the default norm used to compare descriptors.

public int DefaultNorm { get; }

Property Value

int

DescriptorSize

Gets the descriptor size in bits.

public int DescriptorSize { get; }

Property Value

int

DescriptorType

Gets the OpenCV matrix type used by binary descriptors.

public int DescriptorType { get; }

Property Value

int

NumOfOctaves

Gets or sets the number of image octaves.

public int NumOfOctaves { get; set; }

Property Value

int

ReductionRatio

Gets or sets the Gaussian-pyramid reduction ratio.

public int ReductionRatio { get; set; }

Property Value

int

WidthOfBand

Gets or sets the descriptor band width.

public int WidthOfBand { get; set; }

Property Value

int

Methods

Compute(Mat, ref KeyLine[], Mat, bool)

Computes descriptors for the supplied lines. The native algorithm may update the lines.

public void Compute(Mat image, ref KeyLine[] keyLines, Mat descriptors, bool returnFloatDescriptor = false)

Parameters

image Mat
keyLines KeyLine[]
descriptors Mat
returnFloatDescriptor bool

Compute(IEnumerable<Mat>, ref KeyLine[][], out Mat[], bool)

Computes descriptors for lines from multiple images.

public void Compute(IEnumerable<Mat> images, ref KeyLine[][] keyLines, out Mat[] descriptors, bool returnFloatDescriptor = false)

Parameters

images IEnumerable<Mat>
keyLines KeyLine[][]
descriptors Mat[]
returnFloatDescriptor bool

Create(Params?)

Creates a binary descriptor.

public static BinaryDescriptor Create(BinaryDescriptor.Params? parameters = null)

Parameters

parameters BinaryDescriptor.Params

Returns

BinaryDescriptor

Detect(Mat, Mat?)

Detects line segments in an image.

public KeyLine[] Detect(Mat image, Mat? mask = null)

Parameters

image Mat
mask Mat

Returns

KeyLine[]

Detect(IEnumerable<Mat>, IEnumerable<Mat>?)

Detects line segments in multiple images.

public KeyLine[][] Detect(IEnumerable<Mat> images, IEnumerable<Mat>? masks = null)

Parameters

images IEnumerable<Mat>
masks IEnumerable<Mat>

Returns

KeyLine[][]