arpes.analysis.mask.raw_poly_to_mask#
- arpes.analysis.mask.raw_poly_to_mask(poly)[source]#
Converts a polygon into a mask definition.
There’s not currently much metadata attached to masks, but this is around if we ever decide that we need to implement more complicated masking schemes.
In particular, we might want to store also whether the interior or exterior is the masked region, but this is functionally achieved for now with the invert flag in other functions.
- Parameters:
poly – Polygon implementing a masked region.
- Returns:
The mask.