Statistics calculated for each region from a mask