if it is a black ( 0 ) and white ( 255) only image
open /color / info / histogram

the mean average is related to that
128 is 50% ,50% black and white
the higher the average the more white it is

then it is a simple ratio