imgShenCastan: Shen-Castan Edge Detection Method

Description Usage Arguments Value Examples

Description

This function does edge detection using the Shen-Castan algorithm.

Usage

1
imgShenCastan(imgdata, smooth_factor=0.9, thin_factor=2, adapt_window=7, thresh_ratio=0.8, do_hysteresis=1)

Arguments

imgdata

The image

smooth_factor

The smooth factor

thin_factor

The thinning factor

adapt_window

The size of the window for adaptive gradient

thresh_ratio

The percentage of pixels to be above high threshold

do_hysteresis

If true, do hysteresis

Value

return an imagedata object

Examples

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

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