A simple Hausdorff distance measure between shapes defined by contours.
More...
#include <opencv2/shape/shape_distance.hpp>
A simple Hausdorff distance measure between shapes defined by contours.
according to the paper "Comparing Images using the Hausdorff distance." by D.P. Huttenlocher, G.A. Klanderman, and W.J. Rucklidge. (PAMI 1993). :
◆ getDistanceFlag()
| virtual int cv::HausdorffDistanceExtractor::getDistanceFlag |
( |
| ) |
const |
|
pure virtual |
| Python: |
|---|
| cv.HausdorffDistanceExtractor.getDistanceFlag( | | ) -> | retval |
◆ getRankProportion()
| virtual float cv::HausdorffDistanceExtractor::getRankProportion |
( |
| ) |
const |
|
pure virtual |
| Python: |
|---|
| cv.HausdorffDistanceExtractor.getRankProportion( | | ) -> | retval |
◆ setDistanceFlag()
| virtual void cv::HausdorffDistanceExtractor::setDistanceFlag |
( |
int |
distanceFlag | ) |
|
|
pure virtual |
| Python: |
|---|
| cv.HausdorffDistanceExtractor.setDistanceFlag( | distanceFlag | ) -> | None |
Set the norm used to compute the Hausdorff value between two shapes. It can be L1 or L2 norm.
- Parameters
-
| distanceFlag | Flag indicating which norm is used to compute the Hausdorff distance (NORM_L1, NORM_L2). |
◆ setRankProportion()
| virtual void cv::HausdorffDistanceExtractor::setRankProportion |
( |
float |
rankProportion | ) |
|
|
pure virtual |
| Python: |
|---|
| cv.HausdorffDistanceExtractor.setRankProportion( | rankProportion | ) -> | None |
This method sets the rank proportion (or fractional value) that establish the Kth ranked value of the partial Hausdorff distance. Experimentally had been shown that 0.6 is a good value to compare shapes.
- Parameters
-
| rankProportion | fractional value (between 0 and 1). |
The documentation for this class was generated from the following file: