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.1 (2026/07/02)

Reference
Table of Contents  ▸  List of Commands  ▸  Colors  ▸  transfer_rgb◀  transfer_pca    |    mix_rgb  ▶

transfer_rgb

Arguments:

  • [style],_rgb_smoothness>0,_beta>0,_regul_iterations>=0,_brightness_constraint>=0,_transfer_avg_std={ 0:No | 1:Avg-only | 2    or
  • Avg-Std },_colorspace={ 0:srgb | 1:lrgb | 2:ycbcr | 3:lab },_resolution3d>0,[color_constraints],_lambda>=0

Description:

Transfer RGB colors from specified style image to selected images, using 3D variational registration.

When [color_constraints] is provided, it must be a 6D image where each point has the meaning: [ Rimg,Gimg,Bimg, Rstyle,Gstyle,Bstyle ]

Default values:

rgb_smoothness=0.01, beta=1, regul_iterations=3, brightness_constraint=0.35, transfer_avg_std=0, colorspace=0, resolution3d=32, [color_constraints]=(undefined) and lambda=1000.

Examples of use:

• Example #1

sample colorful,eagle +transfer_rgb[0] [1]

Command: sample colorful,eagle +transfer_rgb[0] [1]
Command: sample colorful,eagle +transfer_rgb[0] [1]
Command: sample colorful,eagle +transfer_rgb[0] [1]

• Example #2

sample pencils,wall +transfer_rgb[0] [1]

Command: sample pencils,wall +transfer_rgb[0] [1]
Command: sample pencils,wall +transfer_rgb[0] [1]
Command: sample pencils,wall +transfer_rgb[0] [1]
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.