distill
Loc: Huthwaite, Nottinghamshire UK
Hi to all
I wondered if anyone knew of a program that will give you percentages of the colours in a photo. I know that their are plenty of colour pickers out their but I just want percentages
(if a photo had 2 red circles, 2 blue circles 1 green circle then it's 40%red 40%blue 20% green)
Yes I know colour is spelt wrong unless your English,
Cheers
Gerald
distill wrote:
Hi to all
I wondered if anyone knew of a program that will give you percentages of the colours in a photo. I know that their are plenty of colour pickers out their but I just want percentages
(if a photo had 2 red circles, 2 blue circles 1 green circle then it's 40%red 40%blue 20% green)
Yes I know colour is spelt wrong unless your English,
Cheers
Gerald
One way to get the numbers you want, for an entire image or any pary of it, is to crop put the part you want and apply blur to it. Repeatedly add blur until it is just one single color
The RGB value of that color is the average of the entire area that was blurred. You can convert the 0 to 255 values to percentaged.
Of Course it is a math problem... I looked it up.. complicated... so perhaps a trick we use to use in Chromatography is to cut out the curve and weigh it. Precise scales are low cost on E-Bay. Gen purpose paper is about 90 g/sq M. OR... Print on graph paper and count the sqs will give you an approximation.
And why do you want to know? Just to know, or is there a practical reason?
Precisely weigh the cartridges in your printer.
Print the photo in question.
Weigh the cartridges again & determine the amount of each ink actually used & compare to the total ink for the percentages.
I just opened a random photo in PSP X9, and counted the colors; there are over 700,000 unique colors in the picture; which really means there are 700.000 unique combinations of red values Plus Green Values, plus Blue values where the values range from 0 to 255. with 255 allowable intensities of each of the primaries, a total of 16.5 Million colors are available.
I did some playing in PSP, and I split the RGB channels, then recombined the channels using a Black (0,0,0) image for the red channel (R,0,0) where R=original red value. this yielded an image where the pixel colors were (0,G,B) where G & B were the original green and blue intensities. I discovered that 36,000 unique colors remained in the image. This means that 664,000 of the unique colors of the original image included red.
But, of course, what you want is the number of pixels with red in the picture, and all I can tell you is that 94% of the unique colors of the image contain red.
I did not do it, but had I done the same thing except setting the green channel or blue channel to (0,0,0) I suspect I would have also come up with over 90% of the colors contained green or blue.
distill
Loc: Huthwaite, Nottinghamshire UK
Hi to all, many thanks for your comments
Wonder whether some folks sit around thinking up ways to "make photography difficult" games?
Just skin out of this exercise and shoot monochrome and be happy if colour irritates yuh...I never
knew colour to be harmful though. :)
If you want to reply, then
register here. Registration is free and your account is created instantly, so you can post right away.