mirror_imagemirror_imageMirrorImageMirrorImage (Operator)
Name
mirror_imagemirror_imageMirrorImageMirrorImage
— Mirror an image.
Signature
Description
mirror_imagemirror_imageMirrorImageMirrorImageMirrorImage
reflects an image ImageImageImageImageimage
about
one of three possible axes. If ModeModeModeModemode
is set to
'row'"row""row""row""row", it is reflected about the horizontal axis,
if ModeModeModeModemode
is set to 'column'"column""column""column""column", about the vertical
axis, and if ModeModeModeModemode
is set to 'diagonal'"diagonal""diagonal""diagonal""diagonal", about
the main diagonal x=y.
Attention
mirror_imagemirror_imageMirrorImageMirrorImageMirrorImage
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".
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
ImageImageImageImageimage
(input_object) (multichannel-)image(-array) →
objectHImageHImageHobject (byte* / int2* / uint2* / int4* / real*) *allowed for compute devices
Input image.
ImageMirrorImageMirrorImageMirrorImageMirrorimageMirror
(output_object) (multichannel-)image(-array) →
objectHImageHImageHobject * (byte / int2 / uint2 / int4 / real)
Reflected image.
ModeModeModeModemode
(input_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Axis of reflection.
Default value:
'row'
"row"
"row"
"row"
"row"
List of values: 'column'"column""column""column""column", 'diagonal'"diagonal""diagonal""diagonal""diagonal", '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_rotateHomMat2dRotateHomMat2dRotateHomMat2dRotate
,
hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflectHomMat2dReflect
,
affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImage
,
rotate_imagerotate_imageRotateImageRotateImageRotateImage
See also
rotate_imagerotate_imageRotateImageRotateImageRotateImage
,
hom_mat2d_rotatehom_mat2d_rotateHomMat2dRotateHomMat2dRotateHomMat2dRotate
Module
Foundation