polygon_mask#

anri.index.polygon_mask(shape, vertices)[source]#

Mask [ny, nx] of the pixels inside a polygon given by (x, y) = (column, row) vertices.

Return type:

ndarray