moments_object_model_3d — Calculates the mean or the central moment of second order for a 3D object model.
moments_object_model_3d calculates the mean or the central moment of second order for a 3D object model. To calculate the mean of the points of the 3D object model, select 'mean_points' in MomentsToCalculate. If instead the central moment of second order should be calculated, select 'central_moment_2_points'. The results are the variances of the x, y, z, x-y, x-z, and y-z axes. To compute the three principal axes of the 3D object model select 'principal_axes' in MomentsToCalculate. The result is a pose with the mean of the points as center. The coordinate system that corresponds to the pose has the x-axis along the first principal axis, the y-axis along the second principal axis and the z-axis along the third principal axis.
Handle of the 3D object model.
Moment to calculate.
Default value: 'mean_points'
List of values: 'central_moment_2_points', 'mean_points', 'principal_axes'
Number of elements: Moments == ObjectModel3D
gen_object_model_3d_from_points (rand(200), rand(200),\ rand(200), ObjectModel3D) moments_object_model_3d (ObjectModel3D, ['mean_points',\ 'central_moment_2_points','principal_axes'], \ Moments)
moments_object_model_3d returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.