![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
measure allowing to build an histogram of disparity between angle measured on shape and angle measured on reference ellipse More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::DisparityAngularity2dMsr |
| Measurement object for measure DisparityAngularity2d. More... | |
| class | ipsdk::imaproc::shape::analysis::DisparityAngularity2dMsrInfo |
| Information object for measure DisparityAngularity2d. More... | |
| class | ipsdk::imaproc::shape::analysis::DisparityAngularity2dMsrParams |
| Parameter object for measure DisparityAngularity2d. More... | |
measure allowing to build an histogram of disparity between angle measured on shape and angle measured on reference ellipse
This measure allows to quantified the angularity of a shape using the difference between angle of consecutive segments of polygonal approximation of shape with angle on its equivalent ellipse.
Note that equivalent ellipse associated to a shape is define such as :
For each tops of the polygonal approximation of shape, we compute an angularity value given by :
where :
is angle between segments ending at considered top
.
is the associated angle on equivalent ellipse.
We then compute the histogram of these values using a number of orientation defined by parameter NbOrientations.
The global shape angularity value is then given by mean value associated to bin containing quantile value defined by parameter Quantile.
Here is an example of degree of angularity 2d computation on few caracteristic shapes :
measure allowing to build an histogram of disparity between angle measured on shape and angle measured on reference ellipse
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Geometry 2d |
Angle |
|
Value (ipsdk::ipReal64) |
Both |
This is a geometry 2d measure
This measure can only be used in 2d case
Measure DisparityAngularity2d is associated to an angular (radians) measurement unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_RadianUnit]
Measure DisparityAngularity2d is associated to DisparityAngularity2dMsrParams parameters
Measure DisparityAngularity2d is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipReal64> results
Measure DisparityAngularity2d requires row intersections and boundary approximation from shape data
Measure DisparityAngularity2d depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d | Perimeter2d | Perimeter2d | createHolesBasicPolicyMsrParams(_pMsrParams->getValue<DisparityAngularity2dMsrParams::ProcessHoles>()) |
| eMVP_2d | Area2d | PolygonArea2d | createHolesBasicPolicyMsrParams(_pMsrParams->getValue<DisparityAngularity2dMsrParams::ProcessHoles>()) |
| eMVP_2d | Barycenter2d | Barycenter2d | |
| eMVP_2d | InertiaOrientation2d | InertiaOrientation2d |
Generic example in 2d case :
1.8.14