get_regress_params_xld🔗
Short description🔗
get_regress_params_xld — Return XLD contour parameters.
Signature🔗
get_regress_params_xld( xld_cont Contours, out integer Length, out point.x Nx, out point.y Ny, out number Dist, out point.x Fpx, out point.y Fpy, out point.x Lpx, out point.y Lpy, out real Mean, out real Deviation )
Description🔗
get_regress_params_xld returns the following parameters for
all XLD contours given in Contours:
-
the number of contour points
Length, -
the coordinates
NxandNyof the normal vector of the regression line (i.e., least-squares approximating line), -
the distance
Distof the regression line to the origin -
the sub-pixel precise coordinates
FpxandFpyof the perpendicular projection of the start point of the contour onto the regression line, -
the sub-pixel precise coordinates
LpxandLpyof the perpendicular projection of the end point of the contour onto the regression line, -
the mean of the Euclidean distance of the contour points from the regression line,
-
the standard deviation of these distances.
Attention🔗
Before the contour parameters can be returned by
get_regress_params_xld, the parameters of the regression
line to the contour must be calculated by calling
regress_contours_xld.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
Contours (input_object) xld_cont-array → object
Input XLD contours.
Length (output_control) integer-array → (integer)
Number of contour points.
Nx (output_control) point.x-array → (real)
X-coordinate of the normal vector of the regression line.
Ny (output_control) point.y-array → (real)
Y-coordinate of the normal vector of the regression line.
Dist (output_control) number-array → (real)
Distance of the regression line from the origin.
Fpx (output_control) point.x-array → (real)
X-coordinate of the projection of the start point of the contour onto the regression line.
Fpy (output_control) point.y-array → (real)
Y-coordinate of the projection of the start point of the contour onto the regression line.
Lpx (output_control) point.x-array → (real)
X-coordinate of the projection of the end point of the contour onto the regression line.
Lpy (output_control) point.y-array → (real)
Y-coordinate of the projection of the end point of the contour onto the regression line.
Mean (output_control) real-array → (real)
Mean distance of the contour points from the regression line.
Deviation (output_control) real-array → (real)
Standard deviation of the distances from the regression line.
Combinations with other operators🔗
Combinations
Possible predecessors
Possible successors
See also
fit_line_contour_xld, get_contour_global_attrib_xld, query_contour_global_attribs_xld, get_contour_xld, get_contour_attrib_xld, gen_contours_skeleton_xld, lines_gauss, lines_facet, edges_sub_pix
Module🔗
Foundation