HALCON Reference Manual 10.0.2
Name
get_regress_params_xldT_get_regress_params_xldget_regress_params_xldGetRegressParamsXldGetRegressParamsXld — Return XLD contour parameters.
Herror T_get_regress_params_xld(const Hobject Contours, Htuple* Length, Htuple* Nx, Htuple* Ny, Htuple* Dist, Htuple* Fpx, Htuple* Fpy, Htuple* Lpx, Htuple* Lpy, Htuple* Mean, Htuple* Deviation)
Herror get_regress_params_xld(Hobject Contours, HTuple* Length, HTuple* Nx, HTuple* Ny, HTuple* Dist, HTuple* Fpx, HTuple* Fpy, HTuple* Lpx, HTuple* Lpy, HTuple* Mean, HTuple* Deviation)
HTuple HXLDContArray::GetRegressParamsXld(HTuple* Nx, HTuple* Ny, HTuple* Dist, HTuple* Fpx, HTuple* Fpy, HTuple* Lpx, HTuple* Lpy, HTuple* Mean, HTuple* Deviation) const
void HOperatorSetX.GetRegressParamsXld(
[in] IHUntypedObjectX* Contours, [out] VARIANT* Length, [out] VARIANT* Nx, [out] VARIANT* Ny, [out] VARIANT* Dist, [out] VARIANT* Fpx, [out] VARIANT* Fpy, [out] VARIANT* Lpx, [out] VARIANT* Lpy, [out] VARIANT* Mean, [out] VARIANT* Deviation)
VARIANT HXLDContX.GetRegressParamsXld(
[out] VARIANT* Nx, [out] VARIANT* Ny, [out] VARIANT* Dist, [out] VARIANT* Fpx, [out] VARIANT* Fpy, [out] VARIANT* Lpx, [out] VARIANT* Lpy, [out] VARIANT* Mean, [out] VARIANT* Deviation)
static void HOperatorSet.GetRegressParamsXld(HObject contours, out HTuple length, out HTuple nx, out HTuple ny, out HTuple dist, out HTuple fpx, out HTuple fpy, out HTuple lpx, out HTuple lpy, out HTuple mean, out HTuple deviation)
HTuple HXLDCont.GetRegressParamsXld(out HTuple nx, out HTuple ny, out HTuple dist, out HTuple fpx, out HTuple fpy, out HTuple lpx, out HTuple lpy, out HTuple mean, out HTuple deviation)
get_regress_params_xldget_regress_params_xldget_regress_params_xldGetRegressParamsXldGetRegressParamsXld returns the following parameters for
all XLD contours given in ContoursContoursContoursContourscontours:
-
the number of contour points LengthLengthLengthLengthlength,
-
the coordinates NxNxNxNxnx and NyNyNyNyny of the
normal vector of the regression line (i.e., least-squares
approximating line),
-
the distance DistDistDistDistdist of the regression line to the
origin
-
the sub-pixel precise coordinates FpxFpxFpxFpxfpx and
FpyFpyFpyFpyfpy of the perpendicular projection of the start
point of the contour onto the regression line,
-
the sub-pixel precise coordinates LpxLpxLpxLpxlpx and
LpyLpyLpyLpylpy 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 from
the regression line,
-
the standard deviation of these distances.
Before the contour parameters can be returned by
get_regress_params_xldget_regress_params_xldget_regress_params_xldGetRegressParamsXldGetRegressParamsXld, the parameters of the regression
line to the contour must be calculated by calling
regress_contours_xldregress_contours_xldregress_contours_xldRegressContoursXldRegressContoursXld.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Number of contour points.
NxNxNxNxnx (output_control) point.x-array → HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)
X-coordinate of the normal vector of the
regression line.
NyNyNyNyny (output_control) point.y-array → HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)
Y-coordinate of the normal vector of the
regression line.
Distance of the regression line from the origin.
FpxFpxFpxFpxfpx (output_control) point.x-array → HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)
X-coordinate of the projection of the start point
of the contour onto the regression line.
FpyFpyFpyFpyfpy (output_control) point.y-array → HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)
Y-coordinate of the projection of the start point
of the contour onto the regression line.
LpxLpxLpxLpxlpx (output_control) point.x-array → HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)
X-coordinate of the projection of the end point
of the contour onto the regression line.
LpyLpyLpyLpylpy (output_control) point.y-array → HTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double)
Y-coordinate of the projection of the end point
of the contour onto the regression line.
Mean distance of the contour points from the
regression line.
Standard deviation of the distances from the
regression line.
regress_contours_xldregress_contours_xldregress_contours_xldRegressContoursXldRegressContoursXld
disp_linedisp_linedisp_lineDispLineDispLine,
select_linesselect_linesselect_linesSelectLinesSelectLines,
line_orientationline_orientationline_orientationLineOrientationLineOrientation
fit_line_contour_xldfit_line_contour_xldfit_line_contour_xldFitLineContourXldFitLineContourXld,
get_contour_global_attrib_xldget_contour_global_attrib_xldget_contour_global_attrib_xldGetContourGlobalAttribXldGetContourGlobalAttribXld,
query_contour_global_attribs_xldquery_contour_global_attribs_xldquery_contour_global_attribs_xldQueryContourGlobalAttribsXldQueryContourGlobalAttribsXld,
get_contour_xldget_contour_xldget_contour_xldGetContourXldGetContourXld,
get_contour_attrib_xldget_contour_attrib_xldget_contour_attrib_xldGetContourAttribXldGetContourAttribXld,
gen_contours_skeleton_xldgen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXld,
lines_gausslines_gausslines_gaussLinesGaussLinesGauss,
lines_facetlines_facetlines_facetLinesFacetLinesFacet,
edges_sub_pixedges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPix
Foundation
| HALCON Reference Manual 10.0.2 |
Copyright © 1996-2011 MVTec Software GmbH |