![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Measure the aspect ratio of a shape (measure based on polygonal or polyhedral approximation) More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::AspectRatioMsr |
| Measurement object for measure AspectRatio. More... | |
| class | ipsdk::imaproc::shape::analysis::AspectRatioMsrInfo |
| Information object for measure AspectRatio. More... | |
| class | ipsdk::imaproc::shape::analysis::AspectRatioMsrParams |
| Parameter object for measure AspectRatio. More... | |
Functions | |
| IPSDKIPLSHAPEANALYSIS_API AspectRatioMsrParamsPtr | ipsdk::imaproc::shape::analysis::createAspectRatioMsrParams (ipsdk::ipUInt32 nbOrientations=36) |
| function allowing to create a new parameter object for AspectRatio measure | |
Measure the aspect ratio of a shape (measure based on polygonal or polyhedral approximation)
AspectRatio measure computes the aspect ratio of a shape, that equals to the minimal Feret diameter divided by the maximal Feret diameter of the shape (see MinFeretDiameter and MaxFeretDiameter)
Here is an example of aspect ratio measurement with an orientation step of 1° on a 2d shape:
Measure the aspect ratio 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 be used in 2d and 3d case
Measure AspectRatio is not associated to any unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_NoUnit]
Measure AspectRatio is associated to AspectRatioMsrParams parameters
Measure AspectRatio is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipReal64> results
Measure AspectRatio requires boundary approximation from shape data
Measure AspectRatio depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d3d | MinFeretDiameter | MinFeretDiameter | createMinFeretDiameterMsrParams(_pMsrParams->getValue<AspectRatioMsrParams::NbOrientations>()) |
| eMVP_2d3d | MaxFeretDiameter | MaxFeretDiameter | createMaxFeretDiameterMsrParams(_pMsrParams->getValue<AspectRatioMsrParams::NbOrientations>()) |
Generic example in 2d case :
Generic example in 3d case :
1.8.14