Re: White particles
Posted by Wayne Rasband on May 21, 2008; 2:53pm
URL: http://imagej.273.s1.nabble.com/White-particles-tp3696155p3696160.html
On May 21, 2008, at 6:57 AM, Simon Roussel wrote:
> Dear Wayne,
> In binary images, ImageJ can deal with both white or black particles,
> thanks
> to some black background chexboxes in Binary/Options, after
> thresholding etc.
> However, I would find also convenient to have a black background
> option in
> Analyse Particles, to analyse white (255) particles.
You can analyze white particles by setting a 255-255 threshold. Here is
an example:
w=512; h=512;
newImage("Test", "8-bit Black", w, h, 1);
setColor(255);
for (i=0; i<200; i++) {
makeOval(random*w, random*h, 10, 10);
fill;
}
run("Select None");
setThreshold(255, 255);
run("Analyze Particles...", "show=Nothing display clear");
-wayne