Login  Register

Re: Total Particle Count from ParticleAnalyzer plugin

Posted by Albert-5 on Jul 18, 2005; 7:58am
URL: http://imagej.273.s1.nabble.com/Re-Total-Particle-Count-from-ParticleAnalyzer-plugin-tp3705247p3705248.html

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.zip

Albert


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