G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.4.3        Current pre-release: 3.5.0 (2024/12/20)

Reference

Table of Contents  ▸  List of Commands  ▸  Values Manipulation  ▸  map◀  inrange    |    mix_channels  ▶

map

Built-in command

Arguments:

Description:

Map specified vector-valued palette to selected indexed images.

Each output image has M*N channels, where M and N are the numbers of channels of, respectively, the corresponding input image and the palette image.
palette_name can be { default | hsv | lines | hot | cool | jet | flag | cube | rainbow | algae | amp | balance | curl | deep | delta | dense | diff | gray | haline | ice | matter | oxy | phase | rain | solar | speed | tarn | tempo | thermal | topo | turbid | aurora | hocuspocus | srb2 | uzebox }
boundary_conditions can be { 0:dirichlet | 1:neumann | 2:periodic | 3:mirror }.

Default values:

boundary_conditions=0.

This command has a tutorial page.

Examples of use:

• Example #1

image.jpg +luminance map[-1] 3

Command: image.jpg +luminance map[-1] 3
Command: image.jpg +luminance map[-1] 3

• Example #2

image.jpg +rgb2ycbcr split[-1] c (0,255,0) resize[-1] 256,1,1,1,3 map[-4] [-1] remove[-1] append[-3--1] c ycbcr2rgb[-1]

Command: image.jpg +rgb2ycbcr split[-1] c (0,255,0) resize[-1] 256,1,1,1,3 map[-4] [-1] remove[-1] append[-3--1] c ycbcr2rgb[-1]
Command: image.jpg +rgb2ycbcr split[-1] c (0,255,0) resize[-1] 256,1,1,1,3 map[-4] [-1] remove[-1] append[-3--1] c ycbcr2rgb[-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.