Class HistogramCostExtractor
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Abstract base class for histogram cost algorithms used in shape matching.
public abstract class HistogramCostExtractor : Algorithm, IDisposable
- Inheritance
-
HistogramCostExtractor
- Implements
- Derived
- Inherited Members
Constructors
HistogramCostExtractor(nint, nint, Action<nint>)
Constructor for the factory pattern (cv::Ptr<T>* + raw T*).
protected HistogramCostExtractor(nint smartPtr, nint rawPtr, Action<nint> release)
Parameters
Properties
DefaultCost
The default cost assigned to dummy bins.
public float DefaultCost { get; set; }
Property Value
NDummies
The number of dummy histogram bins added to each histogram to handle size differences.
public int NDummies { get; set; }
Property Value
Methods
BuildCostMatrix(InputArray, InputArray, OutputArray)
Builds a cost matrix from two sets of descriptors.
public virtual void BuildCostMatrix(InputArray descriptors1, InputArray descriptors2, OutputArray costMatrix)
Parameters
descriptors1InputArrayFirst set of descriptors.
descriptors2InputArraySecond set of descriptors.
costMatrixOutputArrayOutput cost matrix.