Posted by
federica viti on
Apr 18, 2008; 12:00pm
URL: http://imagej.273.s1.nabble.com/Analyze-particles-without-GUI-tp3696537p3696539.html
On Fri, Apr 18, 2008 at 12:07 PM, Gabriel Landini <
[hidden email]>
wrote:
> On Friday 18 April 2008 09:52:27 federica viti wrote:
> > Hi!
> > I'm new to ImageJ and I'm working in batch mode, using macros, without
> GUI.
> > I run Analyze Particles on an active image, but then I'm not able to
> save
> > the produced output (the elaborated image and, particularly, the txt
> > results file reporting the measurements): if I run the 'save' command it
> > saves the input image, not the output one.
> > I looked around in Internet but I couldn't find the solution.
> > Can anyone help me, please?
> > Thank you very much,
> > Federica
>
>
> I guess that you are not issuing "selectImage" and "selectWindow" commands
> before applying the "save".
>
> Cheers,
>
> G.
>
Hi!
here's a part of my code.
"Results" is the name (string) of the xtx window in output from the Analyze
Particles macro.
path = "/mydir/try.txt";
dimensione="300-Infinity";
curvatura="0.00-1.00";
forma="Ellipses";
run("Analyze Particles...",
"Size="+dimensione+"Cicularity="+curvatura+"Show="+forma+"Include Holes");
//I also tried with adding +"Display Results"+ option, but still doesn't
work
selectWindow("Results");
save(path);
and if I execute the shell command:
./jre/bin/java -jar ij.jar -batch macros/FedeTries_BatchMode.txt
the output is:
No window with the title "Results" found.
This command requires a TextWindow such as
the "Log" window or an "Info for..." window.
I can't undestrastand what's wrong..
Cheers,
Federica