Abstract
An algorithm to reduce the number of colors in a color image is explained. To bring the appearance frequency of the colors close the same, the number of colors in an image is reduced by dividing three-dimensional space (RGB-space) in which the colors are distributed. The amount of information included in the reduced image is left by this algorithm as much as possible. A software library to reduce the number of colors both in the RGB and palette color images is introduced for the realization of this algorithm. For the application of this library, the UNIX command“tiffreduce”is introduced. This command is available for the color reduction of a TIFF image file.