Name
moments_xld moments_xld MomentsXld moments_xld MomentsXld MomentsXld — Geometric moments
,
, and
of contours or polygons.
Herror moments_xld (const Hobject XLD , double* M11 , double* M20 , double* M02 )
Herror T_moments_xld (const Hobject XLD , Htuple* M11 , Htuple* M20 , Htuple* M02 )
Herror moments_xld (Hobject XLD , double* M11 , double* M20 , double* M02 )
Herror moments_xld (Hobject XLD , HTuple* M11 , HTuple* M20 , HTuple* M02 )
double HXLD ::MomentsXld (double* M20 , double* M02 ) const
HTuple HXLDArray ::MomentsXld (HTuple* M20 , HTuple* M02 ) const
moments_xld moments_xld MomentsXld moments_xld MomentsXld MomentsXld calculates the moments (M20 M20 M20 M20 M20 m20 ,
M02 M02 M02 M02 M02 m02 , and M11 M11 M11 M11 M11 m11 ) of the region enclosed by the
contours or polygons XLD XLD XLD XLD XLD XLD . See moments_region_2nd moments_region_2nd MomentsRegion2nd moments_region_2nd MomentsRegion2nd MomentsRegion2nd
for the definition of these features. The moments are computed by
applying Green's theorem using only the points on the contour or
polygon, i.e., no region is generated explicitly for the purpose of
calculating the features. It is assumed that the contours or
polygons are closed. If this is not the case moments_xld moments_xld MomentsXld moments_xld MomentsXld MomentsXld
will artificially close the contours or polygons.
It should be noted that moments_xld moments_xld MomentsXld moments_xld MomentsXld MomentsXld only returns useful
results if the contour or polygon encloses a region in the plane. In
particular, the contour or polygon must not intersect itself. This
is particularly important if open contours or polygons are passed
because they are closed automatically, which can produce a
self-intersection. To test whether the contours or polygons
intersect themselves, test_self_intersection_xld test_self_intersection_xld TestSelfIntersectionXld test_self_intersection_xld TestSelfIntersectionXld TestSelfIntersectionXld can be
used. If the contour or polygon intersects itself, useful values
for the moments can be calculated with moments_points_xld moments_points_xld MomentsPointsXld moments_points_xld MomentsPointsXld MomentsPointsXld .
If more than one contour or polygon is passed, the results are stored
in tuples in the same order as the respective contours or polygons in
XLD XLD XLD XLD XLD XLD .
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on tuple level.
Contours or polygons to be examined.
Mixed second order moment.
Second order moment along the row axis.
Second order moment along the column axis.
Let n be the number of points of the contour or polygon.
Then the run time is O(n).
moments_xld moments_xld MomentsXld moments_xld MomentsXld MomentsXld returns 2 (H_MSG_TRUE) if the input is not empty. 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.
gen_contours_skeleton_xld gen_contours_skeleton_xld GenContoursSkeletonXld gen_contours_skeleton_xld GenContoursSkeletonXld GenContoursSkeletonXld ,
smooth_contours_xld smooth_contours_xld SmoothContoursXld smooth_contours_xld SmoothContoursXld SmoothContoursXld ,
gen_polygons_xld gen_polygons_xld GenPolygonsXld gen_polygons_xld GenPolygonsXld GenPolygonsXld
moments_any_xld moments_any_xld MomentsAnyXld moments_any_xld MomentsAnyXld MomentsAnyXld ,
moments_points_xld moments_points_xld MomentsPointsXld moments_points_xld MomentsPointsXld MomentsPointsXld ,
moments_any_points_xld moments_any_points_xld MomentsAnyPointsXld moments_any_points_xld MomentsAnyPointsXld MomentsAnyPointsXld
moments_any_xld moments_any_xld MomentsAnyXld moments_any_xld MomentsAnyXld MomentsAnyXld ,
area_center_xld area_center_xld AreaCenterXld area_center_xld AreaCenterXld AreaCenterXld ,
moments_region_2nd moments_region_2nd MomentsRegion2nd moments_region_2nd MomentsRegion2nd MomentsRegion2nd ,
area_center area_center AreaCenter area_center AreaCenter AreaCenter
Foundation