mirror_region — Reflect a region about an axis.
mirror_region reflects a region about one of three possible axes. If Mode is set to 'row', it is reflected about the horizontal axis, if Mode is set to 'column', about the vertical axis, and if Mode is set to 'diagonal', about the main diagonal x=y.
For Mode = 'row' or 'column' 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 one of the dimensions of this image (according to Mode). If Mode = 'diagonal', the parameter WidthHeight is not used.
Region(s) to be reflected.
Number of elements: RegionMirror == Region
Axis of symmetry.
Default value: 'row'
List of values: 'column', 'diagonal', 'row'
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
read_image(&Image,"monkey"); threshold(Image,&Seg,128.0,255.0); mirror_region(Seg,&Mirror,"row",512); disp_region(Mirror,WindowHandle);
threshold, connection, regiongrowing, pouring