| imgNErosionDilation {biOps} | R Documentation |
This function applies n erosions followed by n dilations to the given image. Approaches an N depth opening
imgNErosionDilation(imgdata, mask, n)
imgdata |
The image |
mask |
Mask to apply operation |
n |
Times to apply each operation |
return an imagedata object
This function accepts binary images only and will treat gray scale ones as binary images.
imgBinaryErosion
imgBinaryDilation
## Not run:
x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
mat <- matrix (0, dim, dim)
mask <- imagedata (mat, "grey", dim, dim)
y <- imgNErosionDilation(x, mask, 5)
## End(Not run)