On Aug 7, 2013, at 1:01 PM, Rainer M. Engel wrote:
> Is there a function or macro that does this already?
>
> Is the point X,Y inside the area of mask N?
> Returning "true" if the condition is met.
>
> At this time I only see workarounds with boolean operations with the
> advantage of being able to test if masks intersect a.s.o.
Convert the mask to a selection using Edit>Selection>Create Selection and use the selectionContains() macro function to determine if the the point is inside the selection.
run("Create Selection");
if (selectionContains(x, y))
print(x+","+y+" is inside the mask");
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html