![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Computes the distance between Hu moments of shapes in an image and and several templates' Hu moments. More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::HuMatch2dMsr |
| Measurement object for measure HuMatch2d. More... | |
| class | ipsdk::imaproc::shape::analysis::HuMatch2dMsrInfo |
| Information object for measure HuMatch2d. More... | |
| class | ipsdk::imaproc::shape::analysis::HuMatch2dMsrParams |
| Parameter object for measure HuMatch2d. More... | |
Computes the distance between Hu moments of shapes in an image and and several templates' Hu moments.
This measure computes the distance between the Hu moment invariants of reference shapes and the Hu invariants of each shape. The available distances are detailed in the HuDistance2d measure.
If a distance is higher than the input threshold, the measure considers it as a bad match and sets the distance to the maximum possible value of ipReal64 type.
Here is an example of Hu moment matching measurement in 2d case with the distance type
, a threshold set to 1.2 and without processing holes (the 'X' represent bad matches):
See also HuMoments2d.
Computes the distance between Hu moments of shapes in an image and and several templates' Hu moments
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Geometry 2d |
None |
|
Collection (ipsdk::ipReal64) |
Boundary Approximation |
This is a geometry 2d measure
This measure can only be used in 2d case
Measure HuMatch2d is not associated to any unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_NoUnit]
Measure HuMatch2d is associated to HuMatch2dMsrParams parameters
Measure HuMatch2d is associated to ipsdk::shape::analysis::CollMeasureResult<ipsdk::ipReal64> results
Measure HuMatch2d requires boundary approximation from shape data
Measure HuMatch2d depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d | HuMoments2d | HuMoments2d | createHolesBasicPolicyMsrParams(_pMsrParams->getValue<HuMatch2dMsrParams::ProcessHoles>()) |
Generic example in 2d case :
1.8.14