imgNErosionDilation: Erosion/Dilation multiple apply

Description Usage Arguments Value Note See Also Examples

Description

This function applies n erosions followed by n dilations to the given image. Approaches an N depth opening

Usage

1
imgNErosionDilation(imgdata, mask, n)

Arguments

imgdata

The image

mask

Mask to apply operation

n

Times to apply each operation

Value

return an imagedata object

Note

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

See Also

imgBinaryErosion imgBinaryDilation

Examples

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

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