mirror_region ( Region : RegionMirror : RowColumn, WidthHeight : )

Reflect a region about an axis parallel to the x- or y-axis.

mirror_region reflects a region about an axis parallel to the x- respectively y-axis (parameter RowColumn). The parameter WidthHeight specifies two times the coordinate of the axis of symmetry. Hence, if Region has been extracted from an image and should be mirrored in a way such as if it had been extracted from a mirrored version of this image, WidthHeight corresponds to to one of the dimensions of this image (according to RowColumn).


Parameters

Region (input_object)
region(-array) -> object
Region(s) to be reflected.

RegionMirror (output_object)
region(-array) -> object
Reflected region(s).
Number of elements: RegionMirror == Region

RowColumn (input_control)
string -> string
Axis of symmetry.
Default value: 'row'
List of values: 'column', 'row'

WidthHeight (input_control)
integer -> integer
Twice the coordinate of the axis of symmetry.
Default value: 512
Suggested values: 128, 256, 512, 525, 768, 1024
Typical range of values: 1 <= WidthHeight <= 1024 (lin)
Minimum increment: 1
Recommended increment: 1
Restriction: WidthHeight > 0


Example (Syntax: C)
read_image(&Image,"monkey");
threshold(Image,&Seg,128.0,255.0);
mirror_region(Seg,&Mirror,"row",512);
disp_region(Mirror,WindowHandle);

Parallelization Information

mirror_region is reentrant and automatically parallelized (on tuple level).


Possible Predecessors

threshold, connection, regiongrowing, pouring


Possible Successors

select_shape, disp_region


Alternatives

affine_trans_region


See also

zoom_region


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH