HALCON Reference Manual 10.0.2
Table of Contents / Regions / Access ClassesClassesClasses | | | Operators

get_region_pointsT_get_region_pointsget_region_pointsGetRegionPointsGetRegionPoints (Operator)

Name

get_region_pointsT_get_region_pointsget_region_pointsGetRegionPointsGetRegionPoints — Access the pixels of a region.

Signature

get_region_points(Region : : : Rows, Columns)

Herror T_get_region_points(const Hobject Region, Htuple* Rows, Htuple* Columns)

Herror get_region_points(Hobject Region, HTuple* Rows, HTuple* Columns)

HTuple HRegion::GetRegionPoints(HTuple* Columns) const

void HOperatorSetX.GetRegionPoints(
[in] IHUntypedObjectX* Region, [out] VARIANT* Rows, [out] VARIANT* Columns)

VARIANT HRegionX.GetRegionPoints([out] VARIANT* Columns)

static void HOperatorSet.GetRegionPoints(HObject region, out HTuple rows, out HTuple columns)

void HRegion.GetRegionPoints(out HTuple rows, out HTuple columns)

Description

The operator get_region_pointsget_region_pointsget_region_pointsGetRegionPointsGetRegionPoints returns the region data in the form of coordinate lists. The coordinates are sorted in the following order:

          (r1,c1) <= (r2,c2) := r1 < r2 or r1 = r2 and c1 <= c2

get_region_pointsget_region_pointsget_region_pointsGetRegionPointsGetRegionPoints returns the coordinates in the form of tuples. An empty region is passed as empty tuple.

Attention

Only one region may be passed.

Parallelization

Parameters

RegionRegionRegionRegionregion (input_object)  region objectHRegionHRegionHRegionXHobject

This region is accessed.

RowsRowsRowsRowsrows (output_control)  coordinates.y-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Line numbers of the pixels in the region

ColumnsColumnsColumnsColumnscolumns (output_control)  coordinates.x-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Column numbers of the pixels in the region.

Number of elements: Columns == Rows

Result

The operator get_region_pointsget_region_pointsget_region_pointsGetRegionPointsGetRegionPoints normally returns the value 2 (H_MSG_TRUE). If more than one connection component is passed an exception is raised. The behavior in case of empty input (no input regions available) is set via the operator set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>).

Possible Predecessors

sobel_ampsobel_ampsobel_ampSobelAmpSobelAmp, thresholdthresholdthresholdThresholdThreshold, connectionconnectionconnectionConnectionConnection

Alternatives

get_region_runsget_region_runsget_region_runsGetRegionRunsGetRegionRuns

See also

copy_objcopy_objcopy_objCopyObjCopyObj, gen_region_pointsgen_region_pointsgen_region_pointsGenRegionPointsGenRegionPoints

Module

Foundation


Table of Contents / Regions / Access ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH