def masks(self, dims, z=None):
        coords = self._coords()
        return [polygon_to_mask(x, dims, z) for x in coords]
Binary masks with regions filled in as 1s or 0s.
dataset/ETHPy150Open lightning-viz/lightning-python/lightning/types/images.py/ImagePoly.masks