![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Measure allowing to get the number of shapes equivalent to the shape with minimum area. More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::RelativeSizeMsr |
| Measurement object for measure RelativeSize. More... | |
| class | ipsdk::imaproc::shape::analysis::RelativeSizeMsrInfo |
| Information object for measure RelativeSize. More... | |
| class | ipsdk::imaproc::shape::analysis::RelativeSizeMsrParams |
| Parameter object for measure RelativeSize. More... | |
Functions | |
| IPSDKIPLSHAPEANALYSIS_API RelativeSizeMsrParamsPtr | ipsdk::imaproc::shape::analysis::createRelativeSizeMsrParams (const eRelativeSizePolicy &relativeSizePolicy) |
| function allowing to create a new parameter object for RelativeSize measure | |
| IPSDKIPLSHAPEANALYSIS_API RelativeSizeMsrParamsPtr | ipsdk::imaproc::shape::analysis::createRelativeSizeMsrParams (ipsdk::ipBool bProcessHoles, const eRelativeSizePolicy &relativeSizePolicy) |
| [Deprecated] function allowing to create a new parameter object for RelativeSize measure bProcessHoles is ignored | |
Measure allowing to get the number of shapes equivalent to the shape with minimum area.
RelativeSize measure computes the number of shapes with the minimum area contained in each shape of the image. For a given 2d shape
, the relative size
is computed as follows :
Where
is the shapes collection and
computes the area of the 2d shape
.
The 3d relative size is computed with :
Where
computes the volume of the 3d shape
.
The following figure illustrates the result of this measure on a simple example :
Here is an example of relative size measurement :
Measure allowing to get the number of shapes equivalent to the shape with minimum area
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Generic |
None |
|
Value (ipsdk::ipReal64) |
Row Intersections |
This is a generic measure
This measure can be used in 2d and 3d case
Measure RelativeSize is not associated to any unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_NoUnit]
Measure RelativeSize is associated to RelativeSizeMsrParams parameters
Measure RelativeSize is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipReal64> results
Measure RelativeSize requires row intersections from shape data
Measure RelativeSize depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d | Volume | Area2d | |
| eMVP_3d | Volume | Volume3d |
Generic example in 2d case :
Generic example in 3d case :
1.8.14