ClassesClassesClassesClasses | | | | Operators

dist_rectangle2_contour_points_xldT_dist_rectangle2_contour_points_xldDistRectangle2ContourPointsXlddist_rectangle2_contour_points_xldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXld (Operator)

Name

dist_rectangle2_contour_points_xldT_dist_rectangle2_contour_points_xldDistRectangle2ContourPointsXlddist_rectangle2_contour_points_xldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXld — Compute the distances of all contour points to a rectangle.

Signature

dist_rectangle2_contour_points_xld(Contour : : ClippingEndPoints, Row, Column, Phi, Length1, Length2 : Distances)

Herror T_dist_rectangle2_contour_points_xld(const Hobject Contour, const Htuple ClippingEndPoints, const Htuple Row, const Htuple Column, const Htuple Phi, const Htuple Length1, const Htuple Length2, Htuple* Distances)

Herror dist_rectangle2_contour_points_xld(Hobject Contour, const HTuple& ClippingEndPoints, const HTuple& Row, const HTuple& Column, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2, HTuple* Distances)

HTuple HXLDCont::DistRectangle2ContourPointsXld(const HTuple& ClippingEndPoints, const HTuple& Row, const HTuple& Column, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2) const

void DistRectangle2ContourPointsXld(const HObject& Contour, const HTuple& ClippingEndPoints, const HTuple& Row, const HTuple& Column, const HTuple& Phi, const HTuple& Length1, const HTuple& Length2, HTuple* Distances)

HTuple HXLDCont::DistRectangle2ContourPointsXld(Hlong ClippingEndPoints, double Row, double Column, double Phi, double Length1, double Length2) const

void HOperatorSetX.DistRectangle2ContourPointsXld(
[in] IHUntypedObjectX* Contour, [in] VARIANT ClippingEndPoints, [in] VARIANT Row, [in] VARIANT Column, [in] VARIANT Phi, [in] VARIANT Length1, [in] VARIANT Length2, [out] VARIANT* Distances)

VARIANT HXLDContX.DistRectangle2ContourPointsXld(
[in] Hlong ClippingEndPoints, [in] double Row, [in] double Column, [in] double Phi, [in] double Length1, [in] double Length2)

static void HOperatorSet.DistRectangle2ContourPointsXld(HObject contour, HTuple clippingEndPoints, HTuple row, HTuple column, HTuple phi, HTuple length1, HTuple length2, out HTuple distances)

HTuple HXLDCont.DistRectangle2ContourPointsXld(int clippingEndPoints, double row, double column, double phi, double length1, double length2)

Description

dist_rectangle2_contour_points_xlddist_rectangle2_contour_points_xldDistRectangle2ContourPointsXlddist_rectangle2_contour_points_xldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXld determines the Euclidean distances between the points of a contour ContourContourContourContourContourcontour and a rectangle of arbitrary orientation specified by the center (RowRowRowRowRowrow, ColumnColumnColumnColumnColumncolumn), the orientation PhiPhiPhiPhiPhiphi, and the half edge lengths Length1Length1Length1Length1Length1length1 and Length2Length2Length2Length2Length2length2. The angle PhiPhiPhiPhiPhiphi must be given in radians and specifies the angle between the horizontal axis and the edge with the half length Length1Length1Length1Length1Length1length1 in the mathematically positive direction (counterclockwise).

Depending on the processing used to create ContourContourContourContourContourcontour, the start and end points of a contour may contain positional errors. In this case, the operator fit_rectangle2_contour_xldfit_rectangle2_contour_xldFitRectangle2ContourXldfit_rectangle2_contour_xldFitRectangle2ContourXldFitRectangle2ContourXld is typically called with the parameter ClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsclippingEndPoints set to a value greater than zero to exclude points at the beginning and the end of the contour from the computation. To compute the distances of the same set of points as used in the fitting process, ClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsclippingEndPoints should be set to the same value as in fit_rectangle2_contour_xldfit_rectangle2_contour_xldFitRectangle2ContourXldfit_rectangle2_contour_xldFitRectangle2ContourXldFitRectangle2ContourXld.

Parallelization

Parameters

ContourContourContourContourContourcontour (input_object)  xld_cont objectHXLDContHXLDContHXLDContHXLDContXHobject

Input contour.

ClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsClippingEndPointsclippingEndPoints (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Number of points at the beginning and the end of the contours to be ignored for the computation of distances.

Default value: 0

Suggested values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Restriction: ClippingEndPoints >= 0

RowRowRowRowRowrow (input_control)  rectangle2.center.y HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Row coordinate of the center of the rectangle.

ColumnColumnColumnColumnColumncolumn (input_control)  rectangle2.center.x HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Column coordinate of the center of the rectangle.

PhiPhiPhiPhiPhiphi (input_control)  rectangle2.angle.rad HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Orientation of the main axis of the rectangle [rad].

Length1Length1Length1Length1Length1length1 (input_control)  rectangle2.hwidth HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

First radius (half length) of the rectangle.

Restriction: Length1 > 0

Length2Length2Length2Length2Length2length2 (input_control)  rectangle2.hheight HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Second radius (half width) of the rectangle.

Restriction: Length2 >= 0

DistancesDistancesDistancesDistancesDistancesdistances (output_control)  real-array HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Distances of the contour points to the rectangle.

Result

dist_rectangle2_contour_points_xlddist_rectangle2_contour_points_xldDistRectangle2ContourPointsXlddist_rectangle2_contour_points_xldDistRectangle2ContourPointsXldDistRectangle2ContourPointsXld returns 2 (H_MSG_TRUE) if all parameter values are correct. If necessary, an exception is raised.

Possible Predecessors

fit_rectangle2_contour_xldfit_rectangle2_contour_xldFitRectangle2ContourXldfit_rectangle2_contour_xldFitRectangle2ContourXldFitRectangle2ContourXld

Module

Foundation


ClassesClassesClassesClasses | | | | Operators