area_center_gray — Compute the area and center of gravity of a region in a gray value image.
area_center_gray computes the area and center of gravity of the regions Regions that have gray values which are defined by the image Image. This operator is similar to area_center, 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
Note, that in the case where the Area is zero the row and column coordinates of the center of gravity are also set to zero.
Note that the operator area_center_gray only considers the given Regions and ignores any previously set domain of the input image Image. area_center_gray can be executed on OpenCL devices if the device supports the cl_khr_fp64 and cl_khr_int64_base_atomics OpenCL extensions.
Region(s) to be examined.
Gray value image.
Gray value volume of the region.
Row coordinate of the gray value center of gravity.
Column coordinate of the gray value center of gravity.
area_center_gray returns 2 (H_MSG_TRUE) if all parameters are correct and no error occurs during execution. If the input is empty the behavior can be set via set_system(::'no_object_result',<Result>:). If necessary, an exception is raised.
threshold, regiongrowing, connection