imgShenCastan {biOps}R Documentation

Shen-Castan Edge Detection Method

Description

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

Usage

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

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

[Package biOps version 0.2.1 Index]