Photoshop Gurus!

Welcome to the public CLPEX.com Message Board for Latent Print Examiners. Feel free to share information at will.

Photoshop Gurus!

Postby g. » Fri Jul 24, 2009 8:31 am

All you Photoshop Gurus (e.g. Steve, George, Pat, Boyd, etc.)

Does anyone know how to take an image and automatically count the number of pixels of a certain color?

For example I have a fingerprint image with green, yellow, and red markings on it. I would like to know how many green pixels are present, yellow pixels, etc. I will take any metric as long as I can compare green apples to yellow apples to red apples.

The problem is slightly more complicated in that all the images may not have exactly the same shade of red (it can vary abit depending on the background, which is greyscale fingerprint ridges).

Your help is appreciated. Post here or to: glenn.langenburg@state.mn.us

Thanks in advance.

(PS-if it matters, I only have a copy of CS with me...if later versions are needed, please specify. thx.)

g.
g.
 
Posts: 141
Joined: Wed Jul 06, 2005 3:27 pm
Location: St. Paul, MN

Re: Photoshop Gurus!

Postby David Fairhurst » Fri Jul 24, 2009 9:09 am

I'm not a guru, but for a quick answer you can try looking at your histograms.

They will show you how many pixels of every given value of hue, saturation and luminosity you have.
posterising or reducing the colour depth of the image will force similar value pixels into larger groups.
User avatar
David Fairhurst
 
Posts: 149
Joined: Wed Jul 06, 2005 6:11 am
Location: UK

Re: Photoshop Gurus!

Postby g. » Fri Jul 24, 2009 9:28 am

Thanks Dave, I came back here just to tell folks, nevermind. I spent 2 hours trying to get it, posted to the board, and 5 minutes later figured it out. My HISTOGRAM window had a tiny arrow to "EXPAND". Once expanded there it was. And as you say, it says how many pixels are selected. Once I separated my colors into layers, it was easy to calculate. And accurate. Fantastic....

Now comes the next 8 hours of separating, selecting and counting....

I need a research assistant!

g.
g.
 
Posts: 141
Joined: Wed Jul 06, 2005 3:27 pm
Location: St. Paul, MN

Re: Photoshop Gurus!

Postby Steve Everist » Fri Jul 24, 2009 11:29 am

Glenn,

Did you notice that there's also an "all channels" view to the Histogram? This separates them into separate histograms all visible at one time. This is in CS3 - not sure about CS.
~Steve E.
Steve Everist
Site Admin
 
Posts: 312
Joined: Sun Jul 03, 2005 6:27 pm
Location: Bellevue, WA

Re: Photoshop Gurus!

Postby gaganforensics » Mon Jul 27, 2009 3:10 am

Perhaps, you can open the image in the photoshop

the go to window drop down menu and select INFO or alternatively press F8

the u can move the cursor over the image and the values of different shade, pixel values will come in terms of

RGB CMYK WH etc.


Hope it helps

with regards
gds :)
gaganforensics
 
Posts: 4
Joined: Mon Dec 08, 2008 10:35 pm


Return to Public CLPEX Message Board

Who is online

Users browsing this forum: Google [Bot], NYSLPE, Yahoo [Bot] and 3 guests