Extracting mask from or section within blobs.corners()

Hi,

I just want to ask if there is any way at the present to mask the section inside the polygon specified by blob.min_corners(). Within the photo below, I would like to extract the part that is within the pink polygon though I know that there is no function currently supported this feature, I would still want to consult you for any possible way that this can be achieved despite performance hit.

Thanks in advance.
Screenshot 2021-03-03 133303.png

Mask inside or outside?

You can make a loop in python that just zeros pixels outside of it. But, that will be slow.