![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Measure allowing to compute the ratio between the shapes areas and the image area. More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::ImageRatioMsr |
| Measurement object for measure ImageRatio. More... | |
| class | ipsdk::imaproc::shape::analysis::ImageRatioMsrInfo |
| Information object for measure ImageRatio. More... | |
Measure allowing to compute the ratio between the shapes areas and the image area.
This measure computes the ratio between the shapes areas and the image area, in terms of number of pixels. For a given shape, the 2d ratio is calculated as follows :
Where
,
is the number of pixels of the shape calculated with NbPixels2d and
is the number of pixels of the image.
In the 3d case, the ratio is given by :
Where
is the number of voxels of the shape calculated with NbPixels3d and
is the volume of the image.
Here is an example of image ratio measurement in 2d case :
Measure allowing to compute the ratio between the shapes areas and the image area
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Generic |
None |
None |
Value (ipsdk::ipReal64) |
Row Intersections |
This is a generic measure
This measure can be used in 2d and 3d case
Measure ImageRatio is not associated to any unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_NoUnit]
Measure ImageRatio has no parameters
Measure ImageRatio is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipReal64> results
Measure ImageRatio requires row intersections from shape data
Measure ImageRatio depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_2d | Volume | NbPixels2d | |
| eMVP_3d | Volume | NbPixels3d |
Generic example in 2d case :
Generic example in 3d case :
1.8.14