Hi Mendoza,
I had similar problem - multiple RoIs, some of them located on one slice. I
don't know what exactly are you going to measure, but i have managed to
compose a crude yet effective macro for my needs. You are free to modify it
as needed:
// This Macro counts particles inside specific Roi and otputs the number to
TAB separated Log window which after saving can be imported to excel.
print ("RoiNumber"," ","SliceLabel"," ","RoIName"," ","Count","
","RoIArea"," ","RoIPerimeter"," "," ParticlesCoveredArea","
","AreaFraction") ;
setAutoThreshold("Default dark");
n = roiManager("count");
for (i=0; i<n; i++) {
roiManager("select", i);
run("Set Measurements...", "area perimeter redirect=None
decimal=4");
run("Measure");
r=getResult("Area");
u=getResult("Perim.");
run("Set Measurements...", "area area_fraction limit display redirect=None
decimal=4");
run("Measure");
s=getResult("Area");
t=getResult("%Area");
run("Analyze Particles...", "size=0-infinity circularity=0.00-1.00
show=Nothing display clear ");
m=nResults;
q=getInfo("slice.label");
print (i," ",q," ",call("ij.plugin.frame.RoiManager.getName",
i)," ",m," ",r," ",u," ",s," ",t) ;
}
What the macro does is - it runs the Measure and Analyze Particles commands
for each RoI and then gets the needed results and plots them in a Log
window, after which it moves to the next RoI.
I hope it'll be helpful.
Stoyan Pavlov
2011/4/5 Mendoza Rodriguez <
[hidden email]>
> Hello,
>
> I'm trying to use the "Analyze particles" feature on ROIs in the ROI
> manager. I have created a unique ROI for each image of a stack and saved
> them all in the ROI manager. If I try to select all ROIs in the manager and
> run Particle analyzer I get the analysis of one ROI in all images of the
> stack. I can't figure out a way to analyze particles in all the ROIs - for
> their associated image -.
>
> Mendoza
--
Dr. Stoyan P. Pavlov, MD
Departament of Anatomy, Histology and Embryology
Medical University "Prof. Dr. Paraskev Stoyanov", Varna
Prof. Marin Drinov Str.55
9002 Varna
Bulgaria
Tel: +359 (0) 52 - 677 - 050 #2638
e-mail:
[hidden email]