distance_pcdistance_pcDistancePcDistancePcdistance_pc (算子名称)
名称
distance_pcdistance_pcDistancePcDistancePcdistance_pc — Calculate the distance between a point and one contour.
参数签名
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 (input_object) xld_cont → objectHXLDContHObjectHXLDContHobject
Input contour.
RowRowRowRowrowrow (input_control) point.y(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row coordinate of the point.
ColumnColumnColumnColumncolumncolumn (input_control) point.x(-array) → HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column coordinate of the point.
DistanceMinDistanceMinDistanceMinDistanceMindistanceMindistance_min (output_control) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Minimum distance between the point and the contour.
DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMaxdistance_max (output_control) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Maximum distance between the point and the contour.
结果
distance_pcdistance_pcDistancePcDistancePcDistancePcdistance_pc returns 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
模块
Foundation