Flattens the given colormap into an indexed variant, throwing away any defined boundaries.
Creates an IndexColorMap from sequence of RGB short values.
Converts a ColorMap to sequence of short triplets in encoding expected by GeoTiff 'Palette' color space.