ClassesClassesClassesClasses | | | | Operators

move_regionmove_regionMoveRegionmove_regionMoveRegionMoveRegion (Operator)

Name

move_regionmove_regionMoveRegionmove_regionMoveRegionMoveRegion — Translate a region.

Signature

move_region(Region : RegionMoved : Row, Column : )

Herror move_region(const Hobject Region, Hobject* RegionMoved, const Hlong Row, const Hlong Column)

Herror T_move_region(const Hobject Region, Hobject* RegionMoved, const Htuple Row, const Htuple Column)

Herror move_region(Hobject Region, Hobject* RegionMoved, const HTuple& Row, const HTuple& Column)

HRegion HRegion::MoveRegion(const HTuple& Row, const HTuple& Column) const

HRegionArray HRegionArray::MoveRegion(const HTuple& Row, const HTuple& Column) const

void MoveRegion(const HObject& Region, HObject* RegionMoved, const HTuple& Row, const HTuple& Column)

HRegion HRegion::MoveRegion(Hlong Row, Hlong Column) const

void HOperatorSetX.MoveRegion(
[in] IHUntypedObjectX* Region, [out] IHUntypedObjectX*RegionMoved, [in] VARIANT Row, [in] VARIANT Column)

IHRegionX* HRegionX.MoveRegion(
[in] Hlong Row, [in] Hlong Column)

static void HOperatorSet.MoveRegion(HObject region, out HObject regionMoved, HTuple row, HTuple column)

HRegion HRegion.MoveRegion(int row, int column)

Description

move_regionmove_regionMoveRegionmove_regionMoveRegionMoveRegion translates the input regions by the vector given by (RowRowRowRowRowrow, ColumnColumnColumnColumnColumncolumn). If necessary, the resulting regions are clipped with the current image format.

Parallelization

Parameters

RegionRegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Region(s) to be moved.

RegionMovedRegionMovedRegionMovedRegionMovedRegionMovedregionMoved (output_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject *

Translated region(s).

Number of elements: RegionMoved == Region

RowRowRowRowRowrow (input_control)  point.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row coordinate of the vector by which the region is to be moved.

Default value: 30

Suggested values: -128, -64, -32, -16, -10, -8, -4, -2, -1, 0, 1, 2, 4, 5, 8, 10, 16, 32, 64, 128

Typical range of values: -512 ≤ Row Row Row Row Row row ≤ 512 (lin)

Minimum increment: 1

Recommended increment: 10

ColumnColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row coordinate of the vector by which the region is to be moved.

Default value: 30

Suggested values: -128, -64, -32, -16, -10, -8, -4, -2, -1, 0, 1, 2, 4, 5, 8, 10, 16, 32, 64, 128

Typical range of values: -512 ≤ Column Column Column Column Column column ≤ 512 (lin)

Minimum increment: 1

Recommended increment: 10

Complexity

Let F be the area of the input region. Then the runtime complexity is O(F).

Result

move_regionmove_regionMoveRegionmove_regionMoveRegionMoveRegion always returns the value 2 (H_MSG_TRUE). The behavior in case of empty input (no regions given) can be set via set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>), the behavior in case of an empty input region via set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>), and the behavior in case of an empty result region via 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">). If necessary, an exception is raised.

Possible Predecessors

thresholdthresholdThresholdthresholdThresholdThreshold, connectionconnectionConnectionconnectionConnectionConnection, regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing, pouringpouringPouringpouringPouringPouring

Possible Successors

select_shapeselect_shapeSelectShapeselect_shapeSelectShapeSelectShape, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion

See also

affine_trans_imageaffine_trans_imageAffineTransImageaffine_trans_imageAffineTransImageAffineTransImage, mirror_regionmirror_regionMirrorRegionmirror_regionMirrorRegionMirrorRegion, zoom_regionzoom_regionZoomRegionzoom_regionZoomRegionZoomRegion

Module

Foundation


ClassesClassesClassesClasses | | | | Operators