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 scalar images.

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

$ gmic image.jpg +luminance map[-1] 3

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

• Example #2

$ gmic 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]