![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
measure allowing to compute number of neighbors of shapes given a distance threshold More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::NbNeighborsMsr |
| Measurement object for measure NbNeighbors. More... | |
| class | ipsdk::imaproc::shape::analysis::NbNeighborsMsrInfo |
| Information object for measure NbNeighbors. More... | |
Typedefs | |
| typedef ipsdk::imaproc::shape::analysis::NeighborsDistanceMsrParams | ipsdk::imaproc::shape::analysis::NbNeighborsMsrParams |
| parameters type associated to measure | |
measure allowing to compute number of neighbors of shapes given a distance threshold
This measure allows to compute number of neighbors of a shape given a user parameter distance threshold MaxDist (we count shapes for which distance is lower or equal to this value). It is based on a geometric analysis of shape neighborhood.
Parameter flag ProcessHoles allows to specify whether shape holes should be taken into account during computation. Please see Distance to nearest neighbor 2d for an explanation of effects of this flag.
Please refer to documentation of following measures for more information :
measure allowing to compute number of neighbors of shapes given a distance threshold
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Generic |
None |
|
Value (ipsdk::ipUInt32) |
Boundary Approximation |
This is a generic measure
This measure can be used in 2d and 3d case
Measure NbNeighbors is not associated to any unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_NoUnit]
Measure NbNeighbors is associated to NbNeighborsMsrParams parameters
Measure NbNeighbors is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipUInt32> results
Measure NbNeighbors requires boundary approximation from shape data
Measure NbNeighbors depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d | NearestNeighbors | NearestNeighbors2d | boost::make_shared<NeighborsDistanceMsrParams>(*_pMsrParams) |
| eMVP_3d | NearestNeighbors | NearestNeighbors3d | boost::make_shared<NeighborsDistanceMsrParams>(*_pMsrParams) |
Generic example in 2d case :
Generic example in 3d case :
1.8.14