[a mincdist] = fn_getcolorindices(x,cm)
get indices in colormap for each pixel in image
Thomas Deneux
Copyright 2015-2017
Published with MATLAB® R2015a