Herror ::mirror_region (
    Hobject Region,
    Hobject *RegionMirror,
    const HTuple &RowColumn,
    const HTuple &WidthHeight
)
HRegion HRegion::MirrorRegion (
    const HTuple &RowColumn,
    const HTuple &WidthHeight
) const
HRegionArray HRegionArray::MirrorRegion (
    const HTuple &RowColumn,
    const HTuple &WidthHeight
) const

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) -> Hobject: HRegion(Array)
Region(s) to be reflected.

RegionMirror (output_object)
region(-array) -> Hobject * : HRegion(Array)
Reflected region(s).
Number of elements: RegionMirror == Region

RowColumn (input_control)
string -> HTuple.char *
Coordinate of the axis of symmetry.
Default value: 'row'
List of values: 'column', 'row'

WidthHeight (input_control)
integer -> HTuple.long
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);

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-2002 MVTec Software GmbH