cont_info_xld ( Contours : : : Length, Nx, Ny, Fpx, Fpy, Lpx, Lpy, Mean, Deviation )
Return XLD contour parameters.
cont_info_xld returns the following parameters for all
XLD contours given in Contours:
- the number of contour points Length,
- the coordinates Nx and Ny of the normal vector of the regression
line to the contour (i.e., least-squares approximating line),
- the sub-pixel precise coordinates Fpx and Fpy of the perpendicular
projection of the start point of the contour onto the regression
line,
- the sub-pixel precise coordinates Lpx and Lpy of the perpendicular
projection of the end point of the contour onto the regression
line,
- the mean of the Euclidian distance of the contour points to the
regression line,
- the standard deviation of these distances.
Attention
Before the contour parameters can be returned by
cont_info_xld, the parameters of the regression line to
the contour must be calculated by calling
regress_cont_xld.
Parameters
Contours (input_object)
|
xld_cont-array -> object
|
Input XLD contours. |
Length (output_control)
|
integer-array -> integer
|
Number of contour points. |
Nx (output_control)
|
real-array -> real
|
X-coordinate of the normal vector of the
regression line. |
Ny (output_control)
|
real-array -> real
|
Y-coordinate of the normal vector of the
regression line. |
Fpx (output_control)
|
real-array -> real
|
X-coordinate of the projection of the start point
of the contour onto the regression line. |
Fpy (output_control)
|
real-array -> real
|
Y-coordinate of the projection of the start point
of the contour onto the regression line. |
Lpx (output_control)
|
real-array -> real
|
X-coordinate of the projection of the end point
of the contour onto the regression line. |
Lpy (output_control)
|
real-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 to the
regression line. |
Deviation (output_control)
|
real-array -> real
|
Standard deviation of the distances to the
regression line. |
Possible Predecessors
regress_cont_xld
Possible Successors
select_cont_xld
See also
get_contour_xld,
get_cont_attrib_xld,
gen_contour_xld,
gen_contour2_xld,
lines_gauss,
lines_facet,
edges_sub_pix
Copyright © 1996-1997 MVTec Software GmbH