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
Regions to be reflected.

RegionMirror (output_object)
region(-array) -> object
Reflected regions.
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
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);

Possible Predecessors

threshold__, connection, regiongrowing__, pouring


Possible Successors

select_shape, disp_region


Alternatives

rotate_region1, rotate_region2


See also

zoom_region



Copyright © 1996-1997 MVTec Software GmbH