Particle counting macro
Posted by
Stoyan Pavlov on
Jun 03, 2009; 10:09am
URL: http://imagej.273.s1.nabble.com/Particle-counting-macro-tp3692303.html
Dear ImageJ users,
I have stacks of binarized images and set of RoIs associated with certain
slides. I need a macro which counts particles of specific sizes within each
RoI and produces a table with the Label of the RoI, and the number of
particles found inside. I am quite inexperienced with the macro language. I
could devise something, which is both awfully clumsy and time consuming:
n = roiManager("count");
for (i=0; i<n; i++) {
roiManager("select", i);
run("Analyze Particles...", "size=2-20 circularity=0.00-1.00
show=Nothing display exclude clear ");
m=nResults;
print (i," ",":"," ", m) ;
Can anyone help me?
Thanks in advance!
--
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 - 650 - 061 #295
Fax: +359 (0) 52 - 650 - 019
e-mail:
[hidden email]