Description Usage Arguments Value Note Examples
This function makes a dilation of a binary image with a given mask. This is, it applies the mask in every image pixel: when reached a black point, it turns every image's mask black point into black.
1 | imgBinaryDilation(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.
1 2 3 4 5 6 7 | ## Not run:
x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
mat <- matrix (0, 3, 3)
mask <- imagedata (mat, "grey", 3, 3)
y <- imgBinaryDilation(x, mask)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.