Reference

Table of Contents  ▸  List of Commands  ▸  Values Manipulation  ▸  index◀  fill    |    inrange  ▶

index

Built-in command

Arguments:

Description:

Index selected vector-valued images by specified vector-valued palette.

palette_name can be { default | hsv | lines | hot | cool | jet | flag | cube | rainbow | algae | amp |balance | curl | deep | delta | dense | diff | haline | ice | matter | oxy | phase | rain | solar | speed | tarn |tempo | thermal | topo | turbid | aurora | hocuspocus | srb2 | uzebox }

Default values:

dithering=0 and map_palette=0.

This command has a tutorial page.

Examples of use:

• Example #1

$ gmic image.jpg +index 1,1,1

Command: image.jpg +index 1,1,1
Command: image.jpg +index 1,1,1

• Example #2

$ gmic image.jpg (0;255;255^0;128;255^0;0;255) +index[-2] [-1],1,1

Command: image.jpg (0;255;255^0;128;255^0;0;255) +index[-2] [-1],1,1
Command: image.jpg (0;255;255^0;128;255^0;0;255) +index[-2] [-1],1,1
Command: image.jpg (0;255;255^0;128;255^0;0;255) +index[-2] [-1],1,1