get_regress_params_xldT_get_regress_params_xldGetRegressParamsXldGetRegressParamsXldget_regress_params_xld (算子)
名称
get_regress_params_xldT_get_regress_params_xldGetRegressParamsXldGetRegressParamsXldget_regress_params_xld — 返回 XLD 轮廓参数。
签名
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)
void GetRegressParamsXld(const HObject& Contours, HTuple* Length, HTuple* Nx, HTuple* Ny, HTuple* Dist, HTuple* Fpx, HTuple* Fpy, HTuple* Lpx, HTuple* Lpy, HTuple* Mean, HTuple* Deviation)
HTuple HXLDCont::GetRegressParamsXld(HTuple* Nx, HTuple* Ny, HTuple* Dist, HTuple* Fpx, HTuple* Fpy, HTuple* Lpx, HTuple* Lpy, HTuple* Mean, HTuple* Deviation) const
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)
def get_regress_params_xld(contours: HObject) -> Tuple[Sequence[int], Sequence[float], Sequence[float], Sequence[float], Sequence[float], Sequence[float], Sequence[float], Sequence[float], Sequence[float], Sequence[float]]
描述
get_regress_params_xldget_regress_params_xldGetRegressParamsXldGetRegressParamsXldGetRegressParamsXldget_regress_params_xld returns the following parameters for
all XLD contours given in ContoursContoursContoursContourscontourscontours:
注意
Before the contour parameters can be returned by
get_regress_params_xldget_regress_params_xldGetRegressParamsXldGetRegressParamsXldGetRegressParamsXldget_regress_params_xld, the parameters of the regression
line to the contour must be calculated by calling
regress_contours_xldregress_contours_xldRegressContoursXldRegressContoursXldRegressContoursXldregress_contours_xld。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
ContoursContoursContoursContourscontourscontours (输入对象) xld_cont-array → objectHXLDContHObjectHXLDContHobject
输入 XLD 轮廓。
LengthLengthLengthLengthlengthlength (输出控制) integer-array → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Number of contour points.
NxNxNxNxnxnx (输出控制) point.x-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
X-coordinate of the normal vector of the
regression line.
NyNyNyNynyny (输出控制) point.y-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Y-coordinate of the normal vector of the
regression line.
DistDistDistDistdistdist (输出控制) number-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Distance of the regression line from the origin.
FpxFpxFpxFpxfpxfpx (输出控制) point.x-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
X-coordinate of the projection of the start point
of the contour onto the regression line.
FpyFpyFpyFpyfpyfpy (输出控制) point.y-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Y-coordinate of the projection of the start point
of the contour onto the regression line.
LpxLpxLpxLpxlpxlpx (输出控制) point.x-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
X-coordinate of the projection of the end point
of the contour onto the regression line.
LpyLpyLpyLpylpylpy (输出控制) point.y-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Y-coordinate of the projection of the end point
of the contour onto the regression line.
MeanMeanMeanMeanmeanmean (输出控制) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Mean distance of the contour points from the
regression line.
DeviationDeviationDeviationDeviationdeviationdeviation (输出控制) real-array → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Standard deviation of the distances from the
regression line.
可能的前趋
regress_contours_xldregress_contours_xldRegressContoursXldRegressContoursXldRegressContoursXldregress_contours_xld
可能的后继
disp_linedisp_lineDispLineDispLineDispLinedisp_line,
line_orientationline_orientationLineOrientationLineOrientationLineOrientationline_orientation
另见
fit_line_contour_xldfit_line_contour_xldFitLineContourXldFitLineContourXldFitLineContourXldfit_line_contour_xld,
get_contour_global_attrib_xldget_contour_global_attrib_xldGetContourGlobalAttribXldGetContourGlobalAttribXldGetContourGlobalAttribXldget_contour_global_attrib_xld,
query_contour_global_attribs_xldquery_contour_global_attribs_xldQueryContourGlobalAttribsXldQueryContourGlobalAttribsXldQueryContourGlobalAttribsXldquery_contour_global_attribs_xld,
get_contour_xldget_contour_xldGetContourXldGetContourXldGetContourXldget_contour_xld,
get_contour_attrib_xldget_contour_attrib_xldGetContourAttribXldGetContourAttribXldGetContourAttribXldget_contour_attrib_xld,
gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld,
lines_gausslines_gaussLinesGaussLinesGaussLinesGausslines_gauss,
lines_facetlines_facetLinesFacetLinesFacetLinesFacetlines_facet,
edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixEdgesSubPixedges_sub_pix
模块
基础