Re: Saving macro results to array in java?
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Jun 01, 2010; 9:26pm
URL: http://imagej.273.s1.nabble.com/Saving-macro-results-to-array-in-java-tp3688093p3688095.html
On Jun 1, 2010, at 5:20 AM, ultrah wrote:
> hi,
>
> I want to work with with the results of a macro in java. currently I export
> the results to xls and reimport them.
>
> for example:
>
> IJ.run("Shape Descriptors", "display=[Mean particle details] size=500-100000
> circularity=0-1 show=Nothing display exclude clear");
>
> IJ.saveAs("Text", "[path]\\Mean values.xls");
>
> is there a way to do this without exporting to xls ?
Modify the Shape Descriptors plugin so it writes to the standard results table using the ResultsTable.addValue() method. There is an example at
http://rsbweb.nih.gov/ij/plugins/sine-cosine.html-wayne