distance_pcdistance_pcDistancePcDistancePc (Operator)
Name
distance_pcdistance_pcDistancePcDistancePc
— Calculate the distance between a point and one contour.
Signature
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)
Description
The operator distance_pcdistance_pcDistancePcDistancePcDistancePc
calculates the distance between one or
several points and a single contour. As input the coordinates of the points
(RowRowRowRowrow
,ColumnColumnColumnColumncolumn
) and the contour (ContourContourContourContourcontour
) are
expected. The parameters DistanceMinDistanceMinDistanceMinDistanceMindistanceMin
and DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMax
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_xldDistanceContoursXldDistanceContoursXldDistanceContoursXld
).
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
ContourContourContourContourcontour
(input_object) xld_cont →
objectHXLDContHXLDContHobject
Input contour.
RowRowRowRowrow
(input_control) point.y(-array) →
HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Row coordinate of the point.
ColumnColumnColumnColumncolumn
(input_control) point.x(-array) →
HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Column coordinate of the point.
DistanceMinDistanceMinDistanceMinDistanceMindistanceMin
(output_control) real(-array) →
HTupleHTupleHtuple (real) (double) (double) (double)
Minimum distance between the point and the contour.
DistanceMaxDistanceMaxDistanceMaxDistanceMaxdistanceMax
(output_control) real(-array) →
HTupleHTupleHtuple (real) (double) (double) (double)
Maximum distance between the point and the contour.
Result
distance_pcdistance_pcDistancePcDistancePcDistancePc
returns 2 (H_MSG_TRUE).
Alternatives
distance_lcdistance_lcDistanceLcDistanceLcDistanceLc
,
distance_scdistance_scDistanceScDistanceScDistanceSc
,
distance_ccdistance_ccDistanceCcDistanceCcDistanceCc
,
distance_cc_mindistance_cc_minDistanceCcMinDistanceCcMinDistanceCcMin
See also
distance_prdistance_prDistancePrDistancePrDistancePr
,
distance_lrdistance_lrDistanceLrDistanceLrDistanceLr
,
distance_srdistance_srDistanceSrDistanceSrDistanceSr
,
hamming_distancehamming_distanceHammingDistanceHammingDistanceHammingDistance
,
select_xld_pointselect_xld_pointSelectXldPointSelectXldPointSelectXldPoint
,
test_xld_pointtest_xld_pointTestXldPointTestXldPointTestXldPoint
Module
Foundation