clutImage

Replaces colors in the image from a color lookup table. Optional second
parameter to replace colors in a specific channel. Available since 6.3.6
Applies a Colour LookUp Table to an image. The CLUT should be an image 1 pixel wide.

The colours will be 'looked up' in the clut by using the intensity of each pixel in source image e.g. black will be taken from one end of the CLUT, white the other end, and all other values interpolated from there relevant position in the CLUT, according to the set interpolation method.

Using \Imagick::INTERPOLATE_BILINEAR means that a very small clut can be used to generate a smooth palette of colours.

Replaces colors in the image from a color lookup table. Optional second
parameter to replace colors in a specific channel. Available since 6.3.6

Applies a Colour LookUp Table to an image. The CLUT should be an image 1 pixel wide.

The colours will be 'looked up' in the clut by using the intensity of each pixel in source image e.g. black will be taken from one end of the CLUT, white the other end, and all other values interpolated from there relevant position in the CLUT, according to the set interpolation method.

Using \Imagick::INTERPOLATE_BILINEAR means that a very small clut can be used to generate a smooth palette of colours.

Parameters

lookup_table

Imagick

Imagick object containing the color lookup table

channel

float

The Channeltype
constant. When not supplied, default channels are replaced.