Stella,
Here's a crude patch to your problem:
Copy the ParticleAnalyzer.java from the ImageJ source
ij/plugin/filter/ParticleAnalyzer.java and make your own plugin from it
by doing:
- replace all 'private' by 'public'
- rename the class to My_Particle_Analyzer or something like that, and
so the name of the file too.
Now compile it, restart ImageJ to update the plugins table and call it
from your plugin as IJ.run("My_Particle_Analyzer");
The totalCount and all other vars will be accessible.
The ImageJ sources are here:
http://rsb.info.nih.gov/ij/download/src/ij134q-src.zipAlbert
Albert Cardona
Institute of Neuroinformatics Tel : +41 1 635 3052
University/ETH Zurich Fax : +41 1 635 3053
Winterthurerstrasse 190 acardona (at) ini phys ethz ch
Zurich 8057, Switzerland www.ini.unizh.ch