saving multiple result tables in macro

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

saving multiple result tables in macro

giorgionabble
I'm using the Analyze skeleton function to batch process all the image in a directory and save the results with the names of theimage I process.
The only problem is that it only saves one table results :(
There's the script I've made copying and cutting examples I've found in  the mailing list

  macro "Batch Analyse" {
     dir = getDirectory("Choose a Directory ");
     list = getFileList(dir);
     setBatchMode(true);
     for (i=0; i<list.length; i++) {
        path = dir+list[i];
        open(path);
        run("Make Binary");
        run("Skeletonize (2D/3D)");
        run("Analyze Skeleton (2D/3D)", "prune=none calculate show");
        path2 = dir+File.nameWithoutExtension;
        selectWindow("Longest shortest paths");
        saveAs("Results", path2+"-Results.xls");
        saveAs("Results", path2+"-Branch information.xls");
     }

Thanks in advance for any help !!!
Giorgio
Reply | Threaded
Open this post in threaded view
|

Re: saving multiple result tables in macro

giorgionabble
any hints on thwe topic ?
Reply | Threaded
Open this post in threaded view
|

Re: saving multiple result tables in macro

tireira1
Did you find solution !
I have same problem !
I think something is wrong in the source code like save "Branch information" instead of  save "Results"
Reply | Threaded
Open this post in threaded view
|

Re: saving multiple result tables in macro

giorgionabble
I have the code in my pc at work I will send you in two weeks when I will come back to work ;)  


On 2 August 2013 18:29, tireira1 [via ImageJ] <[hidden email]> wrote:
Did you find solution !
I have same problem !
I think something is wrong in the source code like save "Branch information" instead of  save "Results"


If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.x6.nabble.com/saving-multiple-result-tables-in-macro-tp5003561p5004293.html
To unsubscribe from saving multiple result tables in macro, click here.
NAML