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.1.1 (2026/12/04)

Reference
Table of Contents  ▸  List of Commands  ▸  Reptorian's Commands  ▸  rep_img2mapgrad◀  rep_autofill_coloring_book    |    rep_img2curvs  ▶

rep_img2mapgrad

Arguments:

  • [ref_imgs],array_size>=2,val_a,val_b>val_a,alpha_value>0,_process_in_range_only={ 0=false | 1=true }

Description:

Replace selected images with gradient map(s) matching them to [ref_imgs].

One map is generated per (input image, reference image) pair.
Each map has size array_size x 1, with as many channels as its reference image.
 
Input images must be G or GA. All input and reference images must have the same width, height and depth.
Input alpha, divided by alpha_value and clamped to [0,1], is used as the sample weight.
Reference images can have any number of channels.
 

Default values:

process_in_range_only=1.

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