Analyze only opaque pixels
Posted: 2015-11-09T11:32:31-07:00
Hi, I'm running IM 6.9.0-10 Q16 x64.
I have an image where I'd like to analyze a certain portion of the image. The portion is an irregular shape, so I cannot crop to the portion. I have decided to make all other pixels transparent, but doesn't care - it still analyzes the whole image, including the transparent pixels. If I set all the transparent pixels to white, or all to black, it obviously skews the mean up massively, or down massively, respectively. What am I to do!? I just want to know the mean value of the opaque pixels!
Any help would be very much appreciated.
Tom
I have an image where I'd like to analyze a certain portion of the image. The portion is an irregular shape, so I cannot crop to the portion. I have decided to make all other pixels transparent, but
Code: Select all
-format "%[mean]" info:
Any help would be very much appreciated.
Tom