saving results in a macro

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

saving results in a macro

Tristan Boureau
Dear all,

I am discovering the ImageJ softaware, and trying to build a macro for
analyzing my picts.

I want to analyze the particules in my pictures. No problem for doing the
macro with the record command mode, but I cannot find a way to include in
the macro the command for saving the results of the particule analysis
(distribution plot list, and the different parameters chosen for describing
each particule) as a text file in a given chosen folder.

has anyone done such thing previously and can tell me how to cope with this?

Thanks a lot
tris


--
Tristan Boureau, PHD
ATER, Université Pierre et Marie Curie (Paris VI)
Laboratoire des Interactions Plantes-Pathogènes (LIPP)
UMR217 INAPG/INRA/PARISVI
16, rue Claude Bernard
75005 PARIS
FRANCE
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: saving results in a macro

Wayne Rasband
> I am discovering the ImageJ softaware, and trying to build a
> macro for analyzing my picts.
>
> I want to analyze the particules in my pictures. No problem
> for doing the macro with the record command mode, but I
> cannot find a way to include in the macro the command for
> saving the results of the particule analysis (distribution
> plot list, and the different parameters chosen for
> describing each particule) as a text file in a given chosen
> folder.
>
> has anyone done such thing previously and can tell me how to
> cope with this?

Record the File>Save As>Measurements command.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: saving results in a macro

Tristan Boureau
Thank you!

>
> Record the File>Save As>Measurements command.
>
> -wayne


--
Tristan Boureau, PHD
ATER, Université Pierre et Marie Curie (Paris VI)
Laboratoire des Interactions Plantes-Pathogènes (LIPP)
UMR217 INAPG/INRA/PARISVI
16, rue Claude Bernard
75005 PARIS
FRANCE
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: saving results in a macro

zhhjll
In reply to this post by Wayne Rasband
Hi everyone

I am beginner in ImageJ, sorry if I am digging up a dead topic. I have in a emergency situation that have to ask it.

I am trying to analyze a sequence of images of few particles that I have to write the position of this particles in text files. I am using this macro but in the save as part I ma getting an error.

please help if you know whats going on!

num = getNumber("number of images : ",100) ;
for(id=num-1; id >= 0 ;id--)
{

if ( id < 10)
open("/Users/zjalilvand/Desktop/test/images000"+id+".tif");
if ( id > 9 && id < 100)
open("/Users/zjalilvand/Desktop/test/images00"+id+".tif");
if ( id > 99)
open("/Users/zjalilvand/Desktop/test/images0"+id+".tif");


run("Analyze Particles...", "size=100-1000 circularity=0.0-1.00 show=Nothing display clear slice");
saveAs(“measurements”, ”Users/zjalilvand/Desktop/test/results/Results"+id+".txt");
close;
}