If we consider only the direct neightbours allow to be at 1 pixel of the border
If we consider only the direct neightbours allow to be at 1 pixel of the border

image-js/ij,image-js/ij,image-js/ij,image-js/core,image-js/core,image-js/image-js,image-js/image-js