imgBinaryDilation {biOps}R Documentation

Dilation of a binary image

Description

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.

Usage

imgBinaryDilation(imgdata, mask)

Arguments

imgdata The image
mask Mask to apply operation

Value

return an imagedata object

Note

This function accepts binary images only and will treat gray scale ones as binary images.

Examples

        ## 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)

[Package biOps version 0.2.1 Index]