![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Measure allowing to compute the z-coordinate of the barycenter ponderated by the gray level of each pixel for shape. More...
Classes | |
| class | ipsdk::imaproc::shape::analysis::GreyBarycenterZMsr |
| Measurement object for measure GreyBarycenterZ. More... | |
| class | ipsdk::imaproc::shape::analysis::GreyBarycenterZMsrInfo |
| Information object for measure GreyBarycenterZ. More... | |
Measure allowing to compute the z-coordinate of the barycenter ponderated by the gray level of each pixel for shape.
The coordinates
of the grey barycenter for a given 2d or 3d shape are computed as follows :
Where
is the set of pixels in the shape and
is the number of elements (i.e. pixels in 2d case or voxels in 3d case) of the shape.
Here is an example of 3d grey z-barycenter measurement; in that example, the intensity used to compute the measures are 1 if the pixel is inside a shape and 0 otherwise. Consequently, we get the same results than BarycenterZ :
Measure allowing to compute the z-coordinate of the barycenter ponderated by the gray level of each pixel for shape
| Measure Type | Measure Unit Type | Parameter Type | Result Type | Shape Requirements |
|---|---|---|---|---|
Generic |
Length |
None |
Value (ipsdk::ipReal64) |
Row Intersections |
This is a generic measure
This measure can only be used in 3d case
Measure GreyBarycenterZ is associated to a length measurement unit [ipsdk::shape::analysis::eMsrUnitFormat::eMUF_LengthUnit]
Measure GreyBarycenterZ has no parameters
Measure GreyBarycenterZ is associated to ipsdk::shape::analysis::ValueMeasureResult<ipsdk::ipReal64> results
Measure GreyBarycenterZ requires row intersections from shape data
Measure GreyBarycenterZ depends on following measures :
| Measure Mode | Measure Name | Measure Type | Measure Parameters |
|---|---|---|---|
| eMVP_3d | GreyBarycenter | GreyBarycenter |
Generic example in 3d case :
1.8.14