Jump to content
Sign in to follow this  
myspacee

How much given color is on given area

Recommended Posts

myspacee

hello to all,

find many function that pick color under mouse.

If I want to find how much 'red' is, on given area, anyobody can help me ?

m.

Share this post


Link to post
Share on other sites
BrettF
myspacee

i'm so lazy :)

i've an UDF in my mind...

_check_color_in_area(left_UP_point, right_DOWN_point, color_to_check)

code to write but think can works...

thank you for motivation words,

m.

Share this post


Link to post
Share on other sites
jvanegmond

myspacee, I don't quite understand how you would use this or how this would be useful.. There are many alternatives, such as using a pixelchecksum or just checking the color of one pixel instead of an area.

Also, how you want this to work is unclear. Can you give us some documentation on what the return values can be?

Share this post


Link to post
Share on other sites
myspacee

Some time ago i made a tool that find differences between 2 images

Differences are given by a red color. (use Imagemagik)

Now need numeric value to understand how much images are different (with numeric value),

so I think to count red pixel.

m.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×