imgGrayScaleOpening {biOps} | R Documentation |
This function applies an erosion inmediatly followed by a dilation to the given image
imgGrayScaleOpening(imgdata, mask)
imgdata |
The image |
mask |
Mask to apply operation |
return an imagedata object
This function accepts gray scale images and will fail with color ones.
imgGrayScaleErosion
imgGrayScaleDilation
imgBinaryErosion
imgBinaryDilation
## Not run: x <- readJpeg(system.file("samples", "violet.jpg", package="biOps")) mat <- matrix (125, 3, 3) mask <- imagedata (mat, "grey", 3, 3) y <- imgGrayScaleOpening(x, mask) ## End(Not run)