Re: Using the BAR tool in a macro...writing
Posted by
Emanuele Martini on
Apr 16, 2015; 8:16am
URL: http://imagej.273.s1.nabble.com/Using-the-BAR-tool-in-a-macro-writing-tp5012501p5012503.html
Hi Ethan,
I used "Find Peaks" once in a plugin writed in jython.
I used this workaround to retrieve the peaks values:
I get the Result table created by "Find Peaks"
in jython is:
1)retrieve the window of peak plot
MAX_plot=WindowManager.getWindow("Peaks in "+tit)
where tit is the title of the curve analyzed by "Find Peaks"
2) retrieve the *Results Table* of your find plot
MAX_rt_temp=MAX_plot.getResultsTable()
3) now you can access the peaks and any values like that
a=MAX_rt_temp.getValueAsDouble(column_index,row_index)
4) and/or if you want show the peaks like that
MAX_rt_temp.show("res peaks")
and then if you want save as you save resulttable
I use python/jython and I really don't know how to "translate" in Imagej Macro Language, since i use the macro language very few.
hoping to be in someway useful,
have a nice day
Emanuele
Image Analyst @Ifom-IEO research campus -MI-