Particle Analyzer error with no particles

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Particle Analyzer error with no particles

P Page-McCaw
I'd like to suppress the dialog window that pops up when you get no
particles.

"No particles were detected.The threshold () may not be incorrect"

I'm using FIJI/IJ1.48g and calling via a python script. Sometimes there
just isn't anything there and I'd like to catch the error without user
having to 'ok' out.



Sorry if this should be obvious. I can't find that error dialog in the
source.

Thanks

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Particle Analyzer error with no particles

Michael Schmid
Hi P,

the message comes from ij.plugin.filter.ParticleAnalyzer, line 1027.

Looking at the source code, the message should be absent when running a macro.
As a workaround, maybe Phyton could run a macro for that command with IJ.runMacro(String macro)
(I have never used Phyton). Or have a macro in the StartupMacros.

Michael
________________________________________________________________
On Nov 22, 2013, at 17:10, P Page-McCaw wrote:

> I'd like to suppress the dialog window that pops up when you get no
> particles.
>
> "No particles were detected.The threshold () may not be incorrect"
>
> I'm using FIJI/IJ1.48g and calling via a python script. Sometimes there
> just isn't anything there and I'd like to catch the error without user
> having to 'ok' out.
>
>
>
> Sorry if this should be obvious. I can't find that error dialog in the
> source.
>
> Thanks

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html