imgGrayScaleClosing: Applies a "closing" to an image

Description Usage Arguments Value Note See Also Examples

Description

This function applies an Dilation inmediatly followed by a Erosion to the given image

Usage

1
imgGrayScaleClosing(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

1
2
3
4
5
6
7
	## Not run: 
		x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
		mat <- matrix (0, 3, 3)
		mask <- imagedata (mat, "grey", 3, 3)
		y <- imgGrayScaleClosing(x, mask)
	
## End(Not run)

matiasb/biOps documentation built on May 21, 2019, 12:55 p.m.