imgStdNDilationErosion {biOps}R Documentation

Fixed mask NDilationErosion

Description

This function applies dilation n times and then erosion n times, with a 0-squared matrix with a given dimension.

Usage

imgStdNDilationErosion(imgdata, n, dim=3)

Arguments

imgdata The image
n Times to apply each operation
dim mask's dimension (default = 3)

Value

return an imagedata object

Note

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

See Also

imgNDilationErosion

Examples

        ## Not run: 
                x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
                y <- imgStdNDilationErosion(x, 4, 5)
        
## End(Not run)

[Package biOps version 0.2.1 Index]