mirror_region ( Region : RegionMirror : RowColumn, WidthHeight : )

Reflect a region about the x- or y-axis.

mirror_region reflects a region about the x- or y-axis (parameter RowColumn). The parameter WidthHeight specifies the corresponding image width or height respectively, i.e., it is two times the coordinate of the axis of symmetry.


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
Coordinate of the axis of symmetry.
Default value: 'row'
List of values: 'column', 'row'

WidthHeight (input_control)
integer -> integer
Height or width of the corresponding image.
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
read_image(&Image,"affe");
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

Region processing



Copyright © 1996-2005 MVTec Software GmbH