imgGrayScaleOpening {biOps}R Documentation

Applies an “opening” to an image

Description

This function applies an erosion inmediatly followed by a dilation to the given image

Usage

imgGrayScaleOpening(imgdata, mask)

Arguments

imgdata The image
mask Mask to apply operation

Value

return an imagedata object

Note

This function accepts gray scale images and will fail with color ones.

See Also

imgGrayScaleErosion imgGrayScaleDilation imgBinaryErosion imgBinaryDilation

Examples

        ## Not run: 
                x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
                mat <- matrix (125, 3, 3)
                mask <- imagedata (mat, "grey", 3, 3)
                y <- imgGrayScaleOpening(x, mask)
        
## End(Not run)

[Package biOps version 0.2.1 Index]