imgNDilationErosion {biOps}R Documentation

Dilation/Erosion multiple apply

Description

This function applies n dilations followed by n erosions to the given image. Smoothes of irregularities of N pixels in size

Usage

imgNDilationErosion(imgdata, mask, n)

Arguments

imgdata The image
mask Mask to apply operation
n Times to apply each operation

Value

return an imagedata object

Note

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

See Also

imgBinaryErosion imgBinaryDilation

Examples

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

[Package biOps version 0.2.1 Index]