![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Information object for measure AspectRatio. More...
#include <AspectRatioMsrInfo.h>
Public Types | |
| typedef ipsdk::shape::analysis::ValueMeasureResult< ipsdk::ipReal64 > | MsrResultType |
| typedef AspectRatioMsrParams | MsrParamsType |
| Parameter type associated to measure. | |
| typedef const AspectRatioMsrParams | MsrParamsConstType |
| Parameter const type associated to measure. | |
| typedef boost::shared_ptr< MsrParamsType > | MsrParamsStorageType |
| Shared pointer to parameter type associated to measure. | |
| typedef boost::shared_ptr< MsrParamsConstType > | MsrParamsConstStorageType |
| Shared pointer to const parameter type associated to measure. | |
Public Member Functions | |
| ~AspectRatioMsrInfo () | |
| destructor | |
| const std::string & | getObjectName () const |
| method allowing to retrieve object name | |
| const std::string & | getToolTip () const |
| method allowing to retrieve object tooltip | |
| const std::string & | getDefaultName () const |
| ipsdk::shapeanalysis::eMsrProcessingPolicy | getMsrProcessingPolicy () const |
Static Public Member Functions | |
| static const std::string & | getObjectNameStr () |
| method allowing to retrieve object name | |
| static const std::string & | getToolTipStr () |
| method allowing to retrieve object tooltip | |
Static Public Attributes | |
| static const ipsdk::shapeanalysis::eMsrProcessingPolicy::domain | g_msrProcessingPolicy = ipsdk::shapeanalysis::eMsrProcessingPolicy::eMPP_Generic |
Protected Member Functions | |
| AspectRatioMsrInfo () | |
| constructor | |
| virtual BoolResult | validateMsrParams (const bool b2dMsrMode, const DataItemConstPtr &pMeasureParams) const |
| method allowing to validate measure parameters in derived class | |
Protected Attributes | |
| MsrParamsConstStorageType | _pMsrParams |
| Derived parameter associated to measure. | |
Information object for measure AspectRatio.
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