Checks the number of masked pixels for each mask of an array, and de-selects those frames that deviate more than clip sigma from the average.
check_mask()