![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Computes the distance between Hu moments of shapes in an image and and a template's Hu moments. More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::HuDistance2dMsr |
| Measurement object for measure HuDistance2d. More... | |
| class | ipsdk::imaproc::shape::analysis::HuDistance2dMsrInfo |
| Information object for measure HuDistance2d. More... | |
| class | ipsdk::imaproc::shape::analysis::HuDistance2dMsrParams |
| Parameter object for measure HuDistance2d. More... | |
Computes the distance between Hu moments of shapes in an image and and a template's Hu moments.
This measure computes the distance between the Hu moment invariants of a reference shape and the Hu invariants of each shape. Three distances are available:
These distances are also used by the openCV matchShapes function (http://docs.opencv.org/2.4.13.2/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#matchshapes).
Here is an example of Hu moments distance measurement in 2d case with the distance type
and without processing holes :
See also HuMoments2d.
Computes the distance between Hu moments of shapes in an image and and a template's Hu moments
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Geometry 2d |
None |
|
Value (ipsdk::ipReal64) |
Boundary Approximation |
This is a geometry 2d measure
This measure can only be used in 2d case
Measure HuDistance2d is not associated to any unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_NoUnit]
Measure HuDistance2d is associated to HuDistance2dMsrParams parameters
Measure HuDistance2d is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipReal64> results
Measure HuDistance2d requires boundary approximation from shape data
Measure HuDistance2d depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d | HuMoments2d | HuMoments2d | createHolesBasicPolicyMsrParams(_pMsrParams->getValue<HuDistance2dMsrParams::ProcessHoles>()) |
Generic example in 2d case :
1.8.14