Page 1 of 1

average value with threshold

Posted: 2012-09-23T00:17:22-07:00
by PSan
Hi

I wanted to carry out image processing on an image where I want to get an average value of the RGB channel .
I understand that the identify -verbose command can give me the mean values for the RGB channel.


However, in the calculation of the average value of each chanel, I want to ignore any pixel value which are below a certain value and ignore pixel values which are saturated.

Is there a way to do this?

Thank you.

Re: average value with threshold

Posted: 2012-09-23T11:30:01-07:00
by fmw42
You would have to create a binary mask showing the values you want to average as white an the rest black. Then see my example for processing to get the mean value of a grayscale image ellipse at http://www.fmwconcepts.com/imagemagick/ ... shape_mean