![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
2d Oriented bounding box fitting a shape More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::OrientedBoundingBox2dMsr |
| Measurement object for measure OrientedBoundingBox2d. More... | |
| class | ipsdk::imaproc::shape::analysis::OrientedBoundingBox2dMsrInfo |
| Information object for measure OrientedBoundingBox2d. More... | |
| class | ipsdk::imaproc::shape::analysis::OrientedBoundingBox2dMsrParams |
| Parameter object for measure OrientedBoundingBox2d. More... | |
| class | ipsdk::imaproc::shape::analysis::OrientedBoundingBox2dMsrResults |
| Measurement results object for measure OrientedBoundingBox2d. More... | |
Functions | |
| IPSDKIPLSHAPEANALYSIS_API OrientedBoundingBox2dMsrParamsPtr | ipsdk::imaproc::shape::analysis::createOrientedBoundingBox2dMsrParams (ipUInt32 nbOrientations) |
| function allowing to create a new parameter object for OrientedBoundingBox2d measure | |
2d Oriented bounding box fitting a shape
This measure uses FeretDiameter2d to compute the oriented minimum bounding box for each shape.
The Feret diameters are calculated for a given angle
and
. The corners coordinates of the bounding box are then computed and the resulting oriented bounding box is selected so that its area is minimal.
Here is an example of oriented bounding box measurement, the oriented bounding boxes are displayed with dashed lines :
2d Oriented bounding box fitting a shape
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Generic |
None |
|
Custom |
Boundary Approximation |
This is a generic measure
This measure can only be used in 2d case
Measure OrientedBoundingBox2d is not associated to any unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_NoUnit]
Measure OrientedBoundingBox2d is associated to OrientedBoundingBox2dMsrParams parameters
Measure OrientedBoundingBox2d is associated to OrientedBoundingBox2dMsrResults results
Measure OrientedBoundingBox2d requires boundary approximation from shape data
Measure OrientedBoundingBox2d depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d | FeretOrthogonalDiameters_00000 | FeretOrthogonalDiameters2d | createFeretOrthogonalDiameters2dMsrParams(0.) |
Generic example in 2d case :
1.8.14