Is there a way to extract image patches within an annotated image region?

The annotated region is a blob-like shape. Is it possible to extract image patches from the annotated region? If so, how would I go about extracting the patches?

I am using Python.

Thank you!
1 answer 1