colormap-smooth

Synopsis

(colormap-smooth colormap)

Parameters

  • colormap

Description

Performs a simple mean smoothing operation on a colormap for each channel using a 3x3 convolution kernel.

Side Effects

Return Value

The resulting new colormap is returned.

Example

> (pp colormap-smooth)
(lambda (colormap)
 (colormap-smooth-region
   colormap
   0
   0
   (colormap-height colormap)
   (colormap-width colormap)
   3))
ok
>