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: 3.6.6        Current pre-release: 3.7.0 (2026/01/14)

Reference
Table of Contents  ▸  List of Commands  ▸  Input / Output  ▸  random_patches◀  print    |    random_pattern  ▶

random_patches

Arguments:

  • _nb_patches>0,_patch_size>0

Description:

Generate a set of square color patches containing random geometric shapes, returned as a volumetric image.

Default values:

nb_patches=16 and patch_size=64.

Example of use:

random_patches 16,64 split z append_tiles ,

Command: random_patches 16,64 split z append_tiles ,
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.