How To Find Out How Many Colors Are In An Image. Pick a few of your favorite shades from your color group and make these your main colors. [rows, columns, numberofcolorchannels] = size.

This is very black, but not exactly black. Utilizing your test image, the most common color has an rgb value of (1, 1, 1). Photoshop mixes red, green and blue using color channels.