I’m making a masking function that can mask out certain areas of an image using different types of masks, and display them using patches. I want to add a function where a user can move a mask that has already been created.
I can use the picker = True to have it return the patch being clicked on… but how do I know which mask was clicked on if I have two identical masks? or even worse, if I have two identical masks almost lying ontop of each other… returning both patches at the same time?? I’ve tried different things using == to compare… but that didn’t work… any suggestions??