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 tutorial page.
Example of use:
image.jpg +colormap[0] 4 +colormap[0] 8 +colormap[0] 16
Command:
image.jpg +colormap[0] 4 +colormap[0] 8 +colormap[0] 16
Command:
image.jpg +colormap[0] 4 +colormap[0] 8 +colormap[0] 16
Command:
image.jpg +colormap[0] 4 +colormap[0] 8 +colormap[0] 16
Command:
image.jpg +colormap[0] 4 +colormap[0] 8 +colormap[0] 16
G'MIC is an open-source software distributed under the
CeCILL free software licenses (LGPL-like and/or
GPL-compatible).
Copyrights (C) Since July 2008,
David Tschumperlé - GREYC UMR CNRS 6072, Image Team.