Can a RoiManager ROI act as a button?

Posted by ard on
URL: http://imagej.273.s1.nabble.com/Can-a-RoiManager-ROI-act-as-a-button-tp5019935.html

In an image, we have a macro that detects areas that are candidates for furhter analysis.
Each candidate is outlined with a RoiManager's ROI, with a ROI Number.
Each image has about 60 candidates, of which by eye we can quickly identify 2 or 3 real ones.
The other candidates are bogus but as such very hard to recognise by Image Analysis.

We have a function available to handle that ROI, and remove it from the candidates list.
Rinse and repeat until no candidates are left. A special 'Finished' ROI can be added...

When clicking on a ROI it becomes selected in the Roi Manager.
Can we automatically launch a macro/call a function by that click?
I was thinking along the lines as roiManager("onClick",someFunction()).
I know a ^ can be used for macro activation on keystroke.
Can that be done with the mouse too? It would dramatically speed up our analysis.

Ard

________________________________

AMC Disclaimer : https://www.amc.nl/disclaimer

________________________________

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html