Using photoshop to calculate percent of picture covered by a certain color

BS
Posted By
Buffy_smith
Oct 21, 2005
Views
12076
Replies
3
Status
Closed
hello all, if your reading this, thanks for your time. As in my subject heading, i would like to use photoshop 7 for windows to estimate the percent of an entire image taken up by a color (or range of colors). Specifically, i am assessing the amount of green ground cover exibited by plant as a percent of the total ground cover (the whole image). There may not be an easy way to calculate this, but then again there may. I would like to be able to select a range of greens from one image to do the calculation on. Can anyone be of help with this problem?

Thanks, Buffy

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

JR
John_R_Nielsen
Oct 21, 2005
Select > Color Range, and then Histogram.
GA
George_Austin
Oct 21, 2005
Buffy,

The trouble with using Color Range is that you have to decide on a fuzziness value which, for your purposes may be, well, fuzzy. If you get by that, then you have to contend with "partially" selected pixels. I think those above 50% selected get counted by the histogram.

It may be better to skip the Color Range feature and, instead, visually select what you consider green areas. The histogram will count all pixels within that selected area. Dividing by the total number of pixels gives you the "green" percentage sought.

George
JR
John_R_Nielsen
Oct 21, 2005
If partially selected pixels are a problem, just go into Quick Mask mode, and use Threshold. Or Curves or Levels, if Threshold’s too drastic.

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

Related Discussion Topics

Nice and short text about related topics in discussion sections