F_VN_SortAxisAlignedPatternPoints

F_VN_SortAxisAlignedPatternPoints 1:

Sorts the points of a horizontally aligned asymmetric or symmetric calibration pattern in place. Rows top to bottom (ascending y), and points within each row left to right (ascending x). Individual pattern rows must not have overlapping y-coordinates.

Syntax

Definition:

FUNCTION F_VN_SortAxisAlignedPatternPoints : HRESULT
VAR_INPUT
    ipImagePoints : ITcVnContainer;
    nPatternRows  : UDINT;
    nPatternCols  : UDINT;
    hrPrev        : HRESULT;
END_VAR

 Inputs

Name

Type

Description

ipImagePoints

ITcVnContainer

Detected pattern point positions in the image coordinate system (will be sorted by this function, ContainerType_Vector_TcVnPoint2_REAL)

nPatternRows

UDINT

Number of pattern rows

nPatternCols

UDINT

Number of pattern columns

hrPrev

HRESULT

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

 Return value

HRESULT

Required License

TC3 Vision Metrology 2D

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4024.59 or later

PC or CX (x64) with min. PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision