-mask works fine for actual pixel processing of an image (such as -modulate). But I cannot seem to use it to get statistics.
Image: (pure red, pure green1, pure blue)
![Image](http://www.fmwconcepts.com/misc_tests/mask_bug/rgb.gif)
Mask:
![Image](http://www.fmwconcepts.com/misc_tests/mask_bug/rgb_mask.gif)
I am expecting mean values of: 0,1,0
convert rgb.gif -mask rgb_mask.gif -format "%[fx:mean.r],%[fx:mean.g],%[fx:mean.b]" info:
0.333333,0.333333,0.333333
Which is the same as using no mask and getting the full image mean values!
convert rgb.gif -format "%[fx:mean.r],%[fx:mean.g],%[fx:mean.b]" info:
0.333333,0.333333,0.333333
Am I doing something wrong or is there some bug here?
P.S. Same issue with -clip-mask