Table of Contents ▸ List of Commands ▸ Colors ▸ colormap | ◀ colorblind | compose_channels ▶ |
colormap
Arguments:
- nb_levels>=0,_method={ 0:Median-cut | 1:K-means },_sort_vectors
Description:
Estimate best-fitting colormap with nb_colors entries, to index selected images.Set nb_levels==0 to extract all existing colors of an image.
sort_vectors can be { 0:Unsorted | 1:By increasing norm | 2:By decreasing occurrence }.
Default values:
method=1 and sort_vectors=1.
This command has a
.Example of use:
image.jpg +colormap[0] 4 +colormap[0] 8 +colormap[0] 16