distance_pcdistance_pcDistancePcDistancePcdistance_pc (算子)

名称

distance_pcdistance_pcDistancePcDistancePcdistance_pc — 计算一个点和一个轮廓之间的距离。

签名

distance_pc(Contour : : Row, Column : DistanceMin, DistanceMax)

Herror distance_pc(const Hobject Contour, double Row, double Column, double* DistanceMin, double* DistanceMax)

Herror T_distance_pc(const Hobject Contour, const Htuple Row, const Htuple Column, Htuple* DistanceMin, Htuple* DistanceMax)

void DistancePc(const HObject& Contour, const HTuple& Row, const HTuple& Column, HTuple* DistanceMin, HTuple* DistanceMax)

void HXLDCont::DistancePc(const HTuple& Row, const HTuple& Column, HTuple* DistanceMin, HTuple* DistanceMax) const

void HXLDCont::DistancePc(double Row, double Column, double* DistanceMin, double* DistanceMax) const

static void HOperatorSet.DistancePc(HObject contour, HTuple row, HTuple column, out HTuple distanceMin, out HTuple distanceMax)

void HXLDCont.DistancePc(HTuple row, HTuple column, out HTuple distanceMin, out HTuple distanceMax)

void HXLDCont.DistancePc(double row, double column, out double distanceMin, out double distanceMax)

def distance_pc(contour: HObject, row: MaybeSequence[Union[float, int]], column: MaybeSequence[Union[float, int]]) -> Tuple[Sequence[float], Sequence[float]]

def distance_pc_s(contour: HObject, row: MaybeSequence[Union[float, int]], column: MaybeSequence[Union[float, int]]) -> Tuple[float, float]

描述

算子 distance_pcdistance_pcDistancePcDistancePcDistancePcdistance_pc calculates the distance between one or several points and a single contour. As input the coordinates of the points (RowRowRowRowrowrow,ColumnColumnColumnColumncolumncolumn) and the contour (ContourContourContourContourcontourcontour) are expected. The parameters DistanceMinDistanceMinDistanceMinDistanceMindistanceMindistance_min and DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMaxdistance_max return the result of the calculation. Note that the result corresponds to the distances between the points and the segments of the contour and not the distances between the points and the base points of the contour (see also distance_contours_xlddistance_contours_xldDistanceContoursXldDistanceContoursXldDistanceContoursXlddistance_contours_xld).

执行信息

参数

ContourContourContourContourcontourcontour (输入对象)  xld_cont objectHXLDContHObjectHXLDContHobject

Input contour.

RowRowRowRowrowrow (输入控制)  point.y(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Row coordinate of the point.

ColumnColumnColumnColumncolumncolumn (输入控制)  point.x(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Column coordinate of the point.

DistanceMinDistanceMinDistanceMinDistanceMindistanceMindistance_min (输出控制)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Minimum distance between the point and the contour.

DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMaxdistance_max (输出控制)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Maximum distance between the point and the contour.

结果

distance_pcdistance_pcDistancePcDistancePcDistancePcdistance_pc 返回 2 ( H_MSG_TRUE )。

替代

distance_lcdistance_lcDistanceLcDistanceLcDistanceLcdistance_lc, distance_scdistance_scDistanceScDistanceScDistanceScdistance_sc, distance_ccdistance_ccDistanceCcDistanceCcDistanceCcdistance_cc, distance_cc_mindistance_cc_minDistanceCcMinDistanceCcMinDistanceCcMindistance_cc_min

另见

distance_prdistance_prDistancePrDistancePrDistancePrdistance_pr, distance_lrdistance_lrDistanceLrDistanceLrDistanceLrdistance_lr, distance_srdistance_srDistanceSrDistanceSrDistanceSrdistance_sr, hamming_distancehamming_distanceHammingDistanceHammingDistanceHammingDistancehamming_distance, select_xld_pointselect_xld_pointSelectXldPointSelectXldPointSelectXldPointselect_xld_point, test_xld_pointtest_xld_pointTestXldPointTestXldPointTestXldPointtest_xld_point

模块

基础