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
DescriptorSize
Gets the descriptor size in bits.
public int DescriptorSize { get; }
Property Value
DescriptorType
Gets the OpenCV matrix type used by binary descriptors.
public int DescriptorType { get; }
Property Value
NumOfOctaves
Gets or sets the number of image octaves.
public int NumOfOctaves { get; set; }
Property Value
ReductionRatio
Gets or sets the Gaussian-pyramid reduction ratio.
public int ReductionRatio { get; set; }
Property Value
WidthOfBand
Gets or sets the descriptor band width.
public int WidthOfBand { get; set; }
Property Value
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
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
imagesIEnumerable<Mat>keyLinesKeyLine[][]descriptorsMat[]returnFloatDescriptorbool
Create(Params?)
Creates a binary descriptor.
public static BinaryDescriptor Create(BinaryDescriptor.Params? parameters = null)
Parameters
parametersBinaryDescriptor.Params
Returns
Detect(Mat, Mat?)
Detects line segments in an image.
public KeyLine[] Detect(Mat image, Mat? mask = null)
Parameters
Returns
- KeyLine[]
Detect(IEnumerable<Mat>, IEnumerable<Mat>?)
Detects line segments in multiple images.
public KeyLine[][] Detect(IEnumerable<Mat> images, IEnumerable<Mat>? masks = null)
Parameters
imagesIEnumerable<Mat>masksIEnumerable<Mat>
Returns
- KeyLine[][]