mirror_imagemirror_imageMirrorImageMirrorImage (Operator)

Name

mirror_imagemirror_imageMirrorImageMirrorImage — Mirror an image.

Signature

mirror_image(Image : ImageMirror : Mode : )

Herror mirror_image(const Hobject Image, Hobject* ImageMirror, const char* Mode)

Herror T_mirror_image(const Hobject Image, Hobject* ImageMirror, const Htuple Mode)

void MirrorImage(const HObject& Image, HObject* ImageMirror, const HTuple& Mode)

HImage HImage::MirrorImage(const HString& Mode) const

HImage HImage::MirrorImage(const char* Mode) const

HImage HImage::MirrorImage(const wchar_t* Mode) const   (Windows only)

static void HOperatorSet.MirrorImage(HObject image, out HObject imageMirror, HTuple mode)

HImage HImage.MirrorImage(string mode)

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

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