Re: problem accessing the mask generate from the ParticleAnalyzer class
Posted by
Wayne Rasband on
Oct 19, 2008; 10:11pm
URL: http://imagej.273.s1.nabble.com/problem-accessing-the-mask-generate-from-the-ParticleAnalyzer-class-tp3694689p3694690.html
> Hi everyone,
> I'm currently trying to write my first plugin and I'm having some
> trouble with whit ParticleAnalyzer class. My problem is that I want to
> use the mask output as a mask for my next step but I can't figure out
> how to access the newly generated image. Anyone has suggestion on
> how to
> do it?
>
> Here is the code lines that I managed so far.
> rt = new ResultsTable();
> this.PA = new ParticleAnalyzer(5128, 113050, rt, Min_Area,
> Max_Area,
> Min_Circ, Max_Circ);
> for(i; i<=stack.getSize(); i++){
> this.PA.analyze(imp, ip);
> // long unfished code
> }
> rt.show("Resultats test");
The ParticleAnalyze class in the ImageJ 1.41o daily build has a
getOutputImage() method that returns the newly generated image.
ImagePlus mask = PA.getOutputImage();
-wayne