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.4 (2026/08/19)

Reference
Table of Contents  ▸  List of Commands  ▸  Reptorian's Commands  ▸  modular_formula◀  rep_ordered_dithering    |    rep_photomosaic  ▶

modular_formula

Arguments:

  • operation,max_channel_value={ float_value | [image] },_channel_values={ float_value(%) | [image] }

Description:

Apply modular formulas into selected images. channel_value can be values outside the channel ranges of image.

When using a image argument to max_channel_value, the dimension should be equal to the spectrum of target images.
When using a image argument to channel_value, it can be single spectrum or equal to the spectrum of target images.

(equivalent to shortcut command modf).

operation can be { 0=modulo | 1=modulo_continuous | 2=divisive | 3=divisive_continuous | 4=additive | 5=additive_continuous}
In addition, the operation variable can be the corresponding string as argument.
Author: Reptorian.

Default values:

_channel_value=100%

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.