![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Compute the circularity of a shape. More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::Circularity2dMsr |
| Measurement object for measure Circularity2d. More... | |
| class | ipsdk::imaproc::shape::analysis::Circularity2dMsrInfo |
| Information object for measure Circularity2d. More... | |
Typedefs | |
| typedef HolesBasicPolicyMsrParams | ipsdk::imaproc::shape::analysis::Circularity2dMsrParams |
| parameter type associated to class | |
Compute the circularity of a shape.
Circularity2d measure is adapted of the sphericity formula for 2d case.
It computes circularity of a 2d shape as follows :
Where
is the shape area, calculated with Area2d, and
is the shape perimeter.
Here is an example of circularity measurement :
Compute the circularity of a shape
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Generic |
None |
|
Value (ipsdk::ipReal64) |
Boundary Approximation |
This is a generic measure
This measure can only be used in 2d case
Measure Circularity2d is not associated to any unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_NoUnit]
Measure Circularity2d is associated to Circularity2dMsrParams parameters
Measure Circularity2d is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipReal64> results
Measure Circularity2d requires boundary approximation from shape data
Measure Circularity2d depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d | Area2d | PolygonArea2d | createHolesBasicPolicyMsrParams(_pMsrParams->getValue<Circularity2dMsrParams::ProcessHoles>()) |
| eMVP_2d | Perimeter2d | Perimeter2d | createHolesBasicPolicyMsrParams(_pMsrParams->getValue<Circularity2dMsrParams::ProcessHoles>()) |
Generic example in 2d case :
1.8.14