imgStdNErosionDilation: Fixed mask NErosionDilation

Description Usage Arguments Value Note See Also Examples

Description

This function applies erosion n times and then dilation n times, with a 0-squared matrix with a given dimension.

Usage

1
imgStdNErosionDilation(imgdata, n, dim=3)

Arguments

imgdata

The image

n

Times to apply each operation

dim

mask's dimension (default = 3)

Value

return an imagedata object

Note

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

See Also

imgNErosionDilation

Examples

1
2
3
4
5
	## Not run: 
		x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
		y <- imgStdNErosionDilation(x, 4, 5)
	
## End(Not run)

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