how to get the results of an batch into a new txt or excel file

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

how to get the results of an batch into a new txt or excel file

danielsd
First, thank you for reading this post. Unfortunately I'm not used to work with ImageJ or Java. Although I combined some batch processings I found. I try to box count a complete folder of images after processing them. This works with:

macro "Batch Measure" {
    dir = getDirectory("Choose a Directory ");
    list = getFileList(dir);
    if (getVersion>="1.40e")
        setOption("display labels", true);
    setBatchMode(true);
    for (i=0; i<list.length; i++) {
        path = dir+list[i];
        showProgress(i, list.length);
        if (!endsWith(path,"/")) open(path);
        if (nImages>=1) {
            run("Find Edges");
run("Make Binary");
run("Skeletonize");
run("Fractal Box Count...", "box=2,3,4,6,8,16,32,64,128,256,512,1024,2048 black");
            close();
        }
    }
}

The results are shown in the result box, but I don't know which result belongs to what Image.
Now I would like to read the results (D) andy copy them into a chart with the name of the image and the associated result for the box count.
Could anybody please help me to complete this macro?

THANK YOU!!!