G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 4.0.5 (2026/09/04)

Reference
Table of Contents  ▸  List of Commands  ▸  Geometry Manipulation  ▸  mirror◀  extract_region    |    permute  ▶

mirror

Built-in command

Arguments:

  • axes={ x | y | z | c }...{ x | y | z | c }

Description:

Mirror selected images along specified axes.

 
Each character of axes selects an axis along which the image is flipped:
x mirrors the image along the horizontal axis (left/right are swapped).
y mirrors the image along the vertical axis (top/bottom are swapped).
z mirrors the image along the depth axis (front/back slices are swapped, only meaningful for 3D images).
c mirrors the image along the channel axis (channel order is reversed, only meaningful for multi-channel images).

Several axes can be given at once, e.g. xy mirrors along both horizontal and vertical axes.

Examples of use:

• Example #1

image.jpg +mirror y +mirror[0] c

Command: image.jpg +mirror y +mirror[0] c
Command: image.jpg +mirror y +mirror[0] c
Command: image.jpg +mirror y +mirror[0] c

• Example #2

image.jpg +mirror x +mirror y append_tiles 2,2

Command: image.jpg +mirror x +mirror y append_tiles 2,2
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.