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  ▸  rep_reverse_engineer_gradient_map◀  rep_reverse_engineer_color_curves    |    rep_primelist  ▶

rep_reverse_engineer_gradient_map

Arguments:

  • _array_size>0,_norm={ 0=do_not_norm | 1=norm }

Description:

Automatically reverse engineer gradient map. All images after [0] will be converted into gradient map while [0] is the gray reference.

(equivalent to shortcut command rep_regm).


_array_size is used to define the depth of gradient map, if you're using float, then you need to scale image to something higher than 256. If array size is not inserted, then this filter will automatically find the array size.
_normalize is used to normalize image to max array id number. Useful when using float as reference.

Default values:

_array_size=n/a,_normalize=0

 
Author: Reptorian, Garagecoder.
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.