getPaletteFromImg

getPaletteFromImg(img, ncols = 5)