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.
average value with threshold
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: average value with threshold
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