Login  Register

Re: how do I determine when cursor is over a point Roi in an overlay?

Posted by JonNathan on Dec 21, 2016; 6:52pm
URL: http://imagej.273.s1.nabble.com/how-do-I-determine-when-cursor-is-over-a-point-Roi-in-an-overlay-tp5017801p5017803.html

Hi Herbie,

Thanks for your suggestion.  My only issue with doing a comparison as you suggest is that the cursor is only rarely over the exact pixel in a point selection, whereas the behavior I'd like to replicate is capturing an event when the cursor is appropriately near the point selection.  Just so the user doesn't have to "hunt down" the exact pixel.  I could probably just define a radius around the point selection and proceed from there, but I'd rather not reinvent the wheel if something easier exists in ImageJ's current API.

Cheers,

Jon