Login  Register

help with stack of masks

Posted by Leon Espinosa-2 on May 12, 2009; 9:29am
URL: http://imagej.273.s1.nabble.com/Swing-Java-components-in-ImageJ-plugin-frames-tp3692563p3692565.html

Dear all,

I'm trying to obtain the ImagePlus of the stack of masks created by  
the analyze particle command. But I get only de active slide. I guess  
there is something wrong with the flag "PlugInFilter.DOES_STACKS"... ??
this is the code:

public class My_Plugin implements PlugIn {
ImagePlus imp, impOut;
ParticleAnalyzer pa;
ResultsTable rt;

        public void run(String arg) {
                imp=IJ.getImage();
                rt = new ResultsTable();
                pa = new ParticleAnalyzer(ParticleAnalyzer.SHOW_MASKS|
PlugInFilter.DOES_STACKS, Measurements.AREA, rt, 100, 10000);
                pa.analyze(imp);
                impOut = pa.getOutputImage();
                impOut.show();
                IJ.showMessage("My_Plugin","Hello world!");

        }

}


Thank you...

all the best,

  Leon Espinosa



Leon Espinosa
Laboratoire des Rickettsies du Pr. RAOULT
URMITE CNRS IRD
UMR 6236
Fac. de Medecine de la Timone
27 Bd Jean Moulin
13005 Marseille

mail: [hidden email]

tel:
Bureau: 04 91 32 46 32
Secrétariat: 04 91 32 43 75

Fax:
04 91 83 03 90
04 91 32 46 34

portable: 06 79 25 97 40