I want to create a grid inside an annotation to study heterogeneity.
To do so, I get the annotation bounds and add rectangle annotations. But, sometimes (at the edges), the rectangle annotation is not completely inside the parent one. So I would like to remove it. But I don’t know how to do it.
The thing I can do is to test whether the candidate annotation is inside or not (with getLevel()), but after, I don’t know how to select it.
Thanks for your help
(and by the way, is there a place were all methods are listed, something like the built-in macro function page for imageJ)