imgBinaryErosion: Erosion of a binary image

Description Usage Arguments Value Note Examples

Description

This function makes an erosion of a binary image with a given mask. This is, it applies the mask in every image pixel: when the mask matches completely, it turns its images' center into a black point

Usage

1
imgBinaryErosion(imgdata, mask)

Arguments

imgdata

The image

mask

Mask to apply operation

Value

return an imagedata object

Note

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

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 <- imgBinaryErosion(x, mask)
	
## End(Not run)

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