Operator Reference
mirror_region (Operator)
mirror_region
— Reflect a region about an axis.
Signature
mirror_region(Region : RegionMirror : Mode, WidthHeight : )
Description
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.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
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
Mode
(input_control) string →
(string)
Axis of symmetry.
Default: 'row'
List of values: 'column' , 'diagonal' , 'row'
WidthHeight
(input_control) integer →
(integer)
Twice the coordinate of the axis of symmetry.
Default: 512
Suggested values: 128, 256, 512, 525, 768, 1024
Value range:
1
≤
WidthHeight
≤
1024
(lin)
Minimum increment: 1
Recommended increment: 1
Restriction:
WidthHeight > 0
Example (C)
read_image(&Image,"monkey"); 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
Alternatives
hom_mat2d_reflect
,
affine_trans_region
See also
Module
Foundation