Collecting Results from Results Box

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Collecting Results from Results Box

Pedro Ramos
There is a simple way to save the results window creating a macro like this:


path="C:\\....\\.....\\.....\\";
name="file_name";
selectWindow("Results");
run("Excel...", "select...=["+path+name+".xls]");


Where you have to provide

1) the path of the directory where you want to save the resulting excel file
(only when you write the macro or when you like to use different
directories).
2) a name for the output file. Optionally, change this line by

name=getTtitle();

and the file name will be the title of the opened window

3) you need to have installed the excel writer plugin (that I don't know if
is already part of the last version of imageJ, but you can get it anyhow
from the imageJ website)


I hope this works,


Pedro

Pedro Ramos Cabrer
Max Planck Institute for Neurological Research
Gleueler str. 50
D-50931 Cologne
Germany

Phone: +49 221 4726 339
Fax:      +49 221 4726 337
[hidden email]