mirror_imagemirror_imageMirrorImageMirrorImagemirror_image (Operator)
Name
mirror_imagemirror_imageMirrorImageMirrorImagemirror_image
— Mirror an image.
Signature
def mirror_image(image: HObject, mode: str) -> HObject
Description
mirror_imagemirror_imageMirrorImageMirrorImageMirrorImagemirror_image
reflects an image ImageImageImageImageimageimage
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.
Attention
mirror_imagemirror_imageMirrorImageMirrorImageMirrorImagemirror_image
can be executed on OpenCL devices if the input
image does not exceed the maximum size of image objects of the selected
device. However, execution might be faster on the CPU, especially for the
mode 'row'"row""row""row""row""row".
Execution Information
- Supports OpenCL compute devices.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
- Automatically parallelized on channel level.
- Automatically parallelized on internal data level.
Parameters
ImageImageImageImageimageimage
(input_object) (multichannel-)image(-array) →
objectHImageHObjectHImageHobject (byte* / int2* / uint2* / int4* / real*) *allowed for compute devices
Input image.
ImageMirrorImageMirrorImageMirrorImageMirrorimageMirrorimage_mirror
(output_object) (multichannel-)image(-array) →
objectHImageHObjectHImageHobject * (byte / int2 / uint2 / int4 / real)
Reflected image.
ModeModeModeModemodemode
(input_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Axis of reflection.
Default value:
'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"
Example (HDevelop)
read_image(Image,'monkey')
dev_display (Image)
mirror_image(Image,MirrorImage,'row')
dev_display (MirrorImage)
Example (C)
read_image(&Image,"monkey");
disp_image(Image,WindowHandle);
mirror_image(Image,&MirImage,"row");
disp_image(MirImage,WindowHandle);
Example (HDevelop)
read_image(Image,'monkey')
dev_display (Image)
mirror_image(Image,MirrorImage,'row')
dev_display (MirrorImage)
Example (HDevelop)
read_image(Image,'monkey')
dev_display (Image)
mirror_image(Image,MirrorImage,'row')
dev_display (MirrorImage)
Example (HDevelop)
read_image(Image,'monkey')
dev_display (Image)
mirror_image(Image,MirrorImage,'row')
dev_display (MirrorImage)
Alternatives
hom_mat2d_rotatehom_mat2d_rotateHomMat2dRotateHomMat2dRotateHomMat2dRotatehom_mat2d_rotate
,
hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflectHomMat2dReflecthom_mat2d_reflect
,
affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImageaffine_trans_image
,
rotate_imagerotate_imageRotateImageRotateImageRotateImagerotate_image
See also
rotate_imagerotate_imageRotateImageRotateImageRotateImagerotate_image
,
hom_mat2d_rotatehom_mat2d_rotateHomMat2dRotateHomMat2dRotateHomMat2dRotatehom_mat2d_rotate
Module
Foundation