| imgBinaryClosing {biOps} | R Documentation |
This function applies an Dilation inmediatly followed by a Erosion to the given image
imgBinaryClosing(imgdata, mask)
imgdata |
The image |
mask |
Mask to apply 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, 3, 3)
mask <- imagedata (mat, "grey", 3, 3)
y <- imgBinaryClosing(x, mask)
## End(Not run)