![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
computation of distance from shape barycenter to nearest neighbor shape barycenter for each shape More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::DistanceToNearestBarycenter2dMsr |
| Measurement object for measure DistanceToNearestBarycenter2d. More... | |
| class | ipsdk::imaproc::shape::analysis::DistanceToNearestBarycenter2dMsrInfo |
| Information object for measure DistanceToNearestBarycenter2d. More... | |
computation of distance from shape barycenter to nearest neighbor shape barycenter for each shape
This measure allows to compute the distance from the shape barycenter to its nearest neighbor shape barycenter. It is based on a geometric analysis of shape neighborhood.
Here is an example of nearest barycenter computation for several shapes :
In the previous figure, the shapes (ie. the polygonal approximation of boundaries), are colored with respect to the computed distance to nearest barycenter.
computation of distance from shape barycenter to nearest neighbor shape barycenter for each shape
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Geometry 2d |
Length |
None |
Value (ipsdk::ipReal64) |
Row Intersections |
This is a geometry 2d measure
This measure can only be used in 2d case
Measure DistanceToNearestBarycenter2d is associated to a length measurement unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_LengthUnit]
Measure DistanceToNearestBarycenter2d has no parameters
Measure DistanceToNearestBarycenter2d is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipReal64> results
Measure DistanceToNearestBarycenter2d requires row intersections from shape data
Measure DistanceToNearestBarycenter2d depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d | Barycenter2dCollRTree | Barycenter2dCollRTree | |
| eMVP_2d | Barycenter | Barycenter2d |
Generic example in 2d case :
1.8.14