Thank you Wayne for that rapid fix.
Now it works very well. However, I'm now stuck with the mask flickering
rapidly while it's created by the particle analyser and close almost
immediately. Since the operation is repeated about a thousand times it
makes the screen looks like a stroboscope. I think it can have an impact
on speed.
Is there anyway to generate the mask without displaying it?
Thanks,
Gabriel
Rasband Wayne wrote:
>> 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
>