Name
area_center_gray area_center_gray AreaCenterGray area_center_gray AreaCenterGray AreaCenterGray — Compute the area and center of gravity of a region in a gray value
image.
Herror area_center_gray (Hobject Regions , Hobject Image , double* Area , double* Row , double* Column )
Herror area_center_gray (Hobject Regions , Hobject Image , HTuple* Area , HTuple* Row , HTuple* Column )
double HRegion ::AreaCenterGray (const HImage& Image , double* Row , double* Column ) const
HTuple HRegionArray ::AreaCenterGray (const HImage& Image , HTuple* Row , HTuple* Column ) const
void AreaCenterGray (const HObject& Regions , const HObject& Image , HTuple* Area , HTuple* Row , HTuple* Column )
HTuple HImage ::AreaCenterGray (const HRegion& Regions , HTuple* Row , HTuple* Column ) const
double HImage ::AreaCenterGray (const HRegion& Regions , double* Row , double* Column ) const
HTuple HRegion ::AreaCenterGray (const HImage& Image , HTuple* Row , HTuple* Column ) const
double HRegion ::AreaCenterGray (const HImage& Image , double* Row , double* Column ) const
static void HOperatorSet .AreaCenterGray (HObject regions , HObject image , out HTuple area , out HTuple row , out HTuple column )
HTuple HImage .AreaCenterGray (HRegion regions , out HTuple row , out HTuple column )
double HImage .AreaCenterGray (HRegion regions , out double row , out double column )
HTuple HRegion .AreaCenterGray (HImage image , out HTuple row , out HTuple column )
double HRegion .AreaCenterGray (HImage image , out double row , out double column )
area_center_gray area_center_gray AreaCenterGray area_center_gray AreaCenterGray AreaCenterGray computes the area and center of gravity of
the regions Regions Regions Regions Regions Regions regions that have gray values which are defined
by the image Image Image Image Image Image image . This operator is similar to
area_center area_center AreaCenter area_center AreaCenter AreaCenter , 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 the operator area_center_gray area_center_gray AreaCenterGray area_center_gray AreaCenterGray AreaCenterGray only considers
the given Regions Regions Regions Regions Regions regions and ignores any previously set domain
of the input image Image Image Image Image Image image .
area_center_gray area_center_gray AreaCenterGray area_center_gray AreaCenterGray AreaCenterGray can be executed on OpenCL devices if the device
supports the cl_khr_fp64 and cl_khr_int64_base_atomics OpenCL extensions.
Supports OpenCL compute devices.
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on tuple level.
Region(s) to be examined.
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 area_center_gray AreaCenterGray area_center_gray AreaCenterGray AreaCenterGray 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>:) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) . If
necessary, an exception is raised.
threshold threshold Threshold threshold Threshold Threshold ,
regiongrowing regiongrowing Regiongrowing regiongrowing Regiongrowing Regiongrowing ,
connection connection Connection connection Connection Connection
area_center area_center AreaCenter area_center AreaCenter AreaCenter
area_center_xld area_center_xld AreaCenterXld area_center_xld AreaCenterXld AreaCenterXld ,
elliptic_axis_gray elliptic_axis_gray EllipticAxisGray elliptic_axis_gray EllipticAxisGray EllipticAxisGray
Foundation