Login  Register

Binary dilation instead erosion

Posted by Norbert Vischer-2 on Mar 18, 2010; 12:36pm
URL: http://imagej.273.s1.nabble.com/Decimal-Fractions-in-ResultsTable-tp3688918p3688922.html

I have a strange behaviour that only appears on one of my computers.
If I run the macro below, only a few of the larger spots will survive erosion - this is what I expect.

However, on one computer (OS X, 32 or 64 bit), the spots are dilated, not eroded. This happens even if I trash ImageJ and install a completely new version 1.43, without  custom plugins.


In all cases, spots are black(=0) on white background(=255).

Anyone who can explain this?

Norbert


                        run("Cell Colony (31K)");
                        run("Duplicate...", "title=tmp");
                        setThreshold(0, 180);
                        run("Make Binary", "thresholded remaining black");
                        run("Erode");
                        run("Erode");
                        run("Erode");
                        run("Erode");