SortAxisAlignedPatternPoints

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:

HRESULT SortAxisAlignedPatternPoints(
    HRESULT         hrPrev,
    ITcVnContainer* ipImagePoints,
    ULONG           nPatternRows,
    ULONG           nPatternCols
)

Parameters

Name

Type

Description

hrPrev

HRESULT

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

ipImagePoints

ITcVnContainer*

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

nPatternRows

ULONG

Number of pattern rows

nPatternCols

ULONG

Number of pattern columns

 Return value

HRESULT

Required License

TC3 Vision Metrology 2D

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4026 or later

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

Tc3_Vision