On Sunday 11 March 2007 13:57:27 Per Christian Henden wrote:
> Isolated Pixel Removal -- Removes background pixels (black) completely
> surrounded by foreground pixels (white). Works on both 2D and 3D images
> (stack). Treats a stack as a 3D image.
In
http://www.pvv.org/~perchrh/imagej/IsolatedPixelsRemoval_.javaIs this correct?:
// Check 4-neigbourhood
sum += get(ip, z, x, y + 1, value);
sum += get(ip, z, x + 1, y + 1, value); //<=== ???
sum += get(ip, z, x, y - 1, value);
sum += get(ip, z, x - 1, y, value);
Shouldn't it be:
sum += get(ip, z, x + 1, y , value);
if you are checking 6-neighbour connectivity? (plus the previous and next
slice).
Cheers,
G.