@decorator_util.jit()<EOL>def total_regular_pixels_from_mask(mask):
total_regular_pixels = <NUM_LIT:0><EOL>for y in range(mask.shape[<NUM_LIT:0>]):<EOL><INDENT>for x in range(mask.shape[<NUM_LIT:1>]):<EOL><INDENT>if not mask[y, x]:<EOL><INDENT>total_regular_pixels += <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT>return total_regular_pixels<EOL>
Compute the total number of unmasked regular pixels in a masks.