Table of Contents

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

smartPtr nint
rawPtr nint
release Action<nint>

Properties

DefaultCost

The default cost assigned to dummy bins.

public float DefaultCost { get; set; }

Property Value

float

NDummies

The number of dummy histogram bins added to each histogram to handle size differences.

public int NDummies { get; set; }

Property Value

int

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

descriptors1 InputArray

First set of descriptors.

descriptors2 InputArray

Second set of descriptors.

costMatrix OutputArray

Output cost matrix.