ClassesClassesClassesClasses | | | | Operators

gen_region_polygon_filledT_gen_region_polygon_filledGenRegionPolygonFilledgen_region_polygon_filledGenRegionPolygonFilledGenRegionPolygonFilled (Operator)

Name

gen_region_polygon_filledT_gen_region_polygon_filledGenRegionPolygonFilledgen_region_polygon_filledGenRegionPolygonFilledGenRegionPolygonFilled — Store a polygon as a “filled” region.

Signature

gen_region_polygon_filled( : Region : Rows, Columns : )

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

Herror gen_region_polygon_filled(Hobject* Region, const HTuple& Rows, const HTuple& Columns)

HRegion HRegion::GenRegionPolygonFilled(const HTuple& Rows, const HTuple& Columns)

void GenRegionPolygonFilled(HObject* Region, const HTuple& Rows, const HTuple& Columns)

void HRegion::GenRegionPolygonFilled(const HTuple& Rows, const HTuple& Columns)

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

void HRegionX.GenRegionPolygonFilled(
[in] VARIANT Rows, [in] VARIANT Columns)

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

void HRegion.GenRegionPolygonFilled(HTuple rows, HTuple columns)

Description

The operator gen_region_polygon_filledgen_region_polygon_filledGenRegionPolygonFilledgen_region_polygon_filledGenRegionPolygonFilledGenRegionPolygonFilled creates a region from a polygon containing the corner points of the region (line and column coordinates) either clockwise or anti-clockwise. Contrary to gen_region_polygongen_region_polygonGenRegionPolygongen_region_polygonGenRegionPolygonGenRegionPolygon a “filled” region is returned here.

Parallelization

Parameters

RegionRegionRegionRegionRegionregion (output_object)  region objectHRegionHRegionHRegionHRegionXHobject *

Created region.

RowsRowsRowsRowsRowsrows (input_control)  polygon.y-array HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Line indices of the base points of the region contour.

Default value: 100

Suggested values: 0, 10, 30, 50, 100, 200, 300, 500

Typical range of values: Rows Rows Rows Rows Rows rows (lin)

Minimum increment: 1

Recommended increment: 1

ColumnsColumnsColumnsColumnsColumnscolumns (input_control)  polygon.x-array HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Column indices of the base points of the region contour.

Number of elements: Columns == Rows

Default value: 100

Suggested values: 0, 10, 30, 50, 100, 200, 300, 500

Typical range of values: Columns Columns Columns Columns Columns columns (lin)

Minimum increment: 1

Recommended increment: 1

Example (C)

/* Polygon approximation */
T_get_region_polygon(Region,7,&Row,&Column);
T_gen_region_polygon_filled(&Pol,Row,Column);
/* fill up with original gray value */
reduce_domain(Image,Pol,&New);

Result

If the base points are correct the operator gen_region_polygon_filledgen_region_polygon_filledGenRegionPolygonFilledgen_region_polygon_filledGenRegionPolygonFilledGenRegionPolygonFilled returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised. The clipping according to the current image format is set via the operator set_system('clip_region',<'true'/'false'>)set_system("clip_region",<"true"/"false">)SetSystem("clip_region",<"true"/"false">)set_system("clip_region",<"true"/"false">)SetSystem("clip_region",<"true"/"false">)SetSystem("clip_region",<"true"/"false">). If an empty region is created (by the clipping or by an empty input) the operator set_system('store_empty_region',<'true'/'false'>)set_system("store_empty_region",<"true"/"false">)SetSystem("store_empty_region",<"true"/"false">)set_system("store_empty_region",<"true"/"false">)SetSystem("store_empty_region",<"true"/"false">)SetSystem("store_empty_region",<"true"/"false">) determines whether the region is returned or an empty object tuple.

Possible Predecessors

get_region_polygonget_region_polygonGetRegionPolygonget_region_polygonGetRegionPolygonGetRegionPolygon, draw_polygondraw_polygonDrawPolygondraw_polygonDrawPolygonDrawPolygon

Alternatives

gen_region_polygongen_region_polygonGenRegionPolygongen_region_polygonGenRegionPolygonGenRegionPolygon, gen_region_pointsgen_region_pointsGenRegionPointsgen_region_pointsGenRegionPointsGenRegionPoints, draw_polygondraw_polygonDrawPolygondraw_polygonDrawPolygonDrawPolygon

See also

gen_region_polygongen_region_polygonGenRegionPolygongen_region_polygonGenRegionPolygonGenRegionPolygon, reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain, get_region_polygonget_region_polygonGetRegionPolygonget_region_polygonGetRegionPolygonGetRegionPolygon, gen_region_runsgen_region_runsGenRegionRunsgen_region_runsGenRegionRunsGenRegionRuns

Module

Foundation


ClassesClassesClassesClasses | | | | Operators