area_center_grayarea_center_grayAreaCenterGrayAreaCenterGrayAreaCenterGray computes the area and center of gravity of
the regions RegionsRegionsRegionsRegionsregions that have gray values which are defined
by the image ImageImageImageImageimage. This operator is similar to
area_centerarea_centerAreaCenterAreaCenterAreaCenter, but in contrast to that operator, the gray
values of the image are taken into account while computing the area
and center of gravity.
The area A of a region R in the image with the gray values
g(r,c) is defined as
This means that the area is defined by the volume of the gray
value function g(r,c). The center of gravity is defined by the
first two normalized moments of the gray values g(r,c), i.e., by
, where
Note, that in the case where the AreaAreaAreaAreaarea is zero the row and
column coordinates of the center of gravity are also set to zero.
Note that the operator area_center_grayarea_center_grayAreaCenterGrayAreaCenterGrayAreaCenterGray only considers
the given RegionsRegionsRegionsRegionsregions and ignores any previously set domain
of the input image ImageImageImageImageimage.
area_center_grayarea_center_grayAreaCenterGrayAreaCenterGrayAreaCenterGray can be executed on OpenCL devices if the device
supports the cl_khr_fp64 and cl_khr_int64_base_atomics OpenCL extensions.