@decorator_util.jit()<EOL>def edge_pixels_from_mask(mask):
edge_pixel_total = total_edge_pixels_from_mask(mask)<EOL>edge_pixels = np.zeros(edge_pixel_total)<EOL>edge_index = <NUM_LIT:0><EOL>regular_index = <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>if mask[y + <NUM_LIT:1>, x] or mask[y - <NUM_LIT:1>, x] or mask[y, x + <NUM_LIT:1>] or mask[y, x - <NUM_LIT:1>] ormask[y + <NUM_LIT:1>, x + <NUM_LIT:1>] or mask[y + <NUM_LIT:1>, x - <NUM_LIT:1>] or mask[y - <NUM_LIT:1>, x + <NUM_LIT:1>] or mask[y - <NUM_LIT:1>, x - <NUM_LIT:1>]:<EOL><INDENT>edge_pixels[edge_index] = regular_index<EOL>edge_index += <NUM_LIT:1><EOL><DEDENT>regular_index += <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT>return edge_pixels<EOL>
Compute a 1D array listing all edge pixel indexes in the masks. An edge pixel is a pixel which is not fully \
    surrounding by False masks values i.e. it is on an edge.