| imgNDilationErosion {biOps} | R Documentation |
This function applies n dilations followed by n erosions to the given image. Smoothes of irregularities of N pixels in size
imgNDilationErosion(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 <- imgNDilationErosion(x, mask, 5)
## End(Not run)