Description Usage Arguments Value Note See Also Examples
This function applies n dilations followed by n erosions to the given image. Smoothes of irregularities of N pixels in size
1 | 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
1 2 3 4 5 6 7 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.