mirror_regionmirror_regionMirrorRegionMirrorRegionmirror_region (算子名称)
名称
mirror_regionmirror_regionMirrorRegionMirrorRegionmirror_region
— Reflect a region about an axis.
参数签名
描述
mirror_regionmirror_regionMirrorRegionMirrorRegionMirrorRegionmirror_region
reflects a region about one of three possible
axes. If ModeModeModeModemodemode
is set to 'row'"row""row""row""row""row", it is reflected
about the horizontal axis, if ModeModeModeModemodemode
is set to
'column'"column""column""column""column""column", about the vertical axis, and if ModeModeModeModemodemode
is
set to 'diagonal'"diagonal""diagonal""diagonal""diagonal""diagonal", about the main diagonal x=y.
For ModeModeModeModemodemode
= 'row'"row""row""row""row""row" or 'column'"column""column""column""column""column" the
parameter WidthHeightWidthHeightWidthHeightWidthHeightwidthHeightwidth_height
specifies two times the coordinate
of the axis of symmetry. Hence, if 区域区域区域区域区域区域
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,
WidthHeightWidthHeightWidthHeightWidthHeightwidthHeightwidth_height
corresponds to one of the dimensions of this
image (according to ModeModeModeModemodemode
). If ModeModeModeModemodemode
=
'diagonal'"diagonal""diagonal""diagonal""diagonal""diagonal", the parameter WidthHeightWidthHeightWidthHeightWidthHeightwidthHeightwidth_height
is not
used.
运行信息
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
参数表
区域区域区域区域区域区域
(input_object) region(-array) →
objectHRegionHObjectHRegionHobject
Region(s) to be reflected.
RegionMirrorRegionMirrorRegionMirrorRegionMirrorregionMirrorregion_mirror
(output_object) region(-array) →
objectHRegionHObjectHRegionHobject *
Reflected region(s).
Number of elements:
RegionMirror == Region
ModeModeModeModemodemode
(input_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Axis of symmetry.
Default:
'row'
"row"
"row"
"row"
"row"
"row"
List of values:
'column'"column""column""column""column""column", 'diagonal'"diagonal""diagonal""diagonal""diagonal""diagonal", 'row'"row""row""row""row""row"
WidthHeightWidthHeightWidthHeightWidthHeightwidthHeightwidth_height
(input_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Twice the coordinate of the axis of symmetry.
Default:
512
Suggested values:
128, 256, 512, 525, 768, 1024
Value range:
1
≤
WidthHeight
WidthHeight
WidthHeight
WidthHeight
widthHeight
width_height
≤
1024
(lin)
Minimum increment:
1
Recommended increment:
1
Restriction:
WidthHeight > 0
例程 (C)
read_image(&Image,"monkey");
threshold(Image,&Seg,128.0,255.0);
mirror_region(Seg,&Mirror,"row",512);
disp_region(Mirror,WindowHandle);
可能的前置算子
thresholdthresholdThresholdThresholdThresholdthreshold
,
connectionconnectionConnectionConnectionConnectionconnection
,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing
,
pouringpouringPouringPouringPouringpouring
可能的后置算子
select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape
,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region
可替代算子
hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflectHomMat2dReflecthom_mat2d_reflect
,
affine_trans_regionaffine_trans_regionAffineTransRegionAffineTransRegionAffineTransRegionaffine_trans_region
参考其它
zoom_regionzoom_regionZoomRegionZoomRegionZoomRegionzoom_region
模块
Foundation