Herror ::mirror_image (
    Hobject Image,
    Hobject *ImageMirror,
    const HTuple &Mode
)
HImage HImage::MirrorImage (
    const HTuple &Mode
) const
HImageArray HImageArray::MirrorImage (
    const HTuple &Mode
) const

Mirror an image.

::mirror_image reflects an image Image 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 'main', about the main diagonal x=y.


Parameters

Image (input_object)
(multichannel-)image(-array) -> Hobject: HImage(Array) ( byte / int2 )
Input image.

ImageMirror (output_object)
(multichannel-)image(-array) -> Hobject * : HImage(Array) ( byte / int2 )
Reflected image.

Mode (input_control)
string -> HTuple.char *
Axis of reflection.
Default value: 'row'
List of values: 'row', 'column', 'main'


Example
read_image(&Image,"affe");
disp_image(Image,WindowHandle);
mirror_image(Image,&MirImage,"row");
disp_image(MirImage,WindowHandle);

Alternatives

::hom_mat2d_rotate, ::affine_trans_image, ::rotate_image


See also

::rotate_image, ::hom_mat2d_rotate


Module

Image filters



Copyright © 1996-2002 MVTec Software GmbH