imgGrayScaleErosion {biOps}R Documentation

Erosion of a gray scale image

Description

This function makes a dilation of a gray scale image with a given mask. This is, it applies the mask in every image pixel and sets current point to the minimum of the sums of the corresponding pair of pixel values in the mask and image.

Usage

imgGrayScaleErosion(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.

Examples

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

[Package biOps version 0.2.1 Index]