This is just a simple thing but somehow does not seem to work at all. I am running the plugin ComDet (a very cool tool, btw!) on some of my images for spot colocalization measures. The plugin provides a nice “Results” table and a “Summary” table as output. I would like to save just the summary table and discard the results table. The latter worked out quite easily. But when I try to get the summary table, I always get None.
A code snippet to try:
from ij import WindowManager from ij.measure import ResultsTable from ij.text import TextWindow wm = WindowManager win = wm.getWindow("Summary") if win is not None: rt = win.getTextPanel().getResultsTable() print rt #always returns None even if win is not None
Then I thought maybe I just rename the summary window to “Results” and get results table. So I closed the results table generated by ComDet and tried to rename summary as “Results”. This also does not work.
res = wm.getWindow("Results") if res is not None: res.setVisible(False) rt = ResultsTable() win = wm.getWindow("Summary") if win is not None: win.setTitle("Results") text_window = rt.getResultsWindow() # is not None results_table = text_window.getResultsTable() print results_table # returns None
I am using the latest version of FIJI/ ImageJ. Any help is appreciated!