Class HausdorffDistanceExtractor
A simple Hausdorff distance measure between shapes defined by contours
Inheritance
System.Object
HausdorffDistanceExtractor
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class HausdorffDistanceExtractor : ShapeDistanceExtractor, ICvPtrHolder
Remarks
according to the paper "Comparing Images using the Hausdorff distance." by D.P. Huttenlocher, G.A. Klanderman, and W.J. Rucklidge. (PAMI 1993). :
Constructors
| Improve this Doc View SourceHausdorffDistanceExtractor(IntPtr)
Declaration
protected HausdorffDistanceExtractor(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | p |
Properties
| Improve this Doc View SourceDistanceFlag
Flag indicating which norm is used to compute the Hausdorff distance (NORM_L1, NORM_L2).
Declaration
public DistanceTypes DistanceFlag { get; set; }
Property Value
Type | Description |
---|---|
DistanceTypes |
RankProportion
fractional value (between 0 and 1).
Declaration
public float RankProportion { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceCreate(DistanceTypes, Single)
Complete constructor
Declaration
public static HausdorffDistanceExtractor Create(DistanceTypes distanceFlag = DistanceTypes.L2, float rankProp = 0.6F)
Parameters
Type | Name | Description |
---|---|---|
DistanceTypes | distanceFlag | Flag indicating which norm is used to compute the Hausdorff distance (NORM_L1, NORM_L2). |
System.Single | rankProp | fractional value (between 0 and 1). |
Returns
Type | Description |
---|---|
HausdorffDistanceExtractor |
DisposeManaged()
Releases managed resources
Declaration
protected override void DisposeManaged()