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_trigonometry_map◀  rep_trigonometry_three_channel_gradient    |    rep_trigonometry_map_8bit_integer  ▶

rep_trigonometry_map

Arguments:

  • _image_value_divide,_chan_form={ 0=sinusoidal | 1=cosinusoidal | 2=cubic-sinusoidal | 3=cubic-cosinusoidal | 4=cubic-sinusoidal-cosinusoidal },_multiplier>0,_valueshift,0>=_midgray_expf>=1,_lightness_merge_factor>=1,_lightness_end_expf>0,0>=_gray2col_end>=1

Description:

Map trigonometry function into image.

 

(equivalent to shortcut command rep_trigmap).

 
_image_value_divide defines how much the image should be divided by. Of course, 0 is not valid.
_chan_form refers to the formula each channels use. Number higher than 4 will use a slight different formula, but still follow the pattern of formulas named above.
_multiplier defines the multiplication of base gradient used to map formula based on trigonometry.
_valueshift refers to the value shift of base gradient
_midgray_expf refers to the middle-point of base gradient used to map formula based on trigonometry relative to middle.
_lightness_merge_factor refers to the merging of lightness gradient with color gradient. Used to add white and black to gradient ends.
_lightness_end_expf defines the magnitude of shades and tind of each end of end gradient
_gray2col_end defines how much the end gradient overrides the base gradient
 
Note: Add 5 or 10 to _chan_form for another variation of the specified formula.

Default values:

_image_value_divide=1,_multiplier_mode=1,_valueshift=0,_midgray_expf=1,_lightness_merge_factor=1,_lightness_end_expf=0,'_gray2col_end=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.