threshold.msi(crackrec)R Documentation

threshold.msi

Description

can be used to find an appropriate threshold value for crackrec. threshold.msi uses kernel denstity estimation with Gaussian kernel.

Usage

threshold.msi(mat, bw)

Arguments

mat the matrix representation of an image.
bw the smoothing parameter (bandwidth).

Value

Returns a numeric value

Author(s)

Janine Keppler, Alexander Stepper stepper@mathematik.uni-kassel.de

See Also

rbmp, crackrec, medianfilter, crackplot, shadow.remove.

Examples

## Not run: 
threshold.msi(matrix, bw=30)

# A simple visual test for the threshold value
t<-threshold.msi(matrix, bw=30)
image(matrix>=t, col=gray((1:32)/32))
## End(Not run)

[Package crackrec version 2.1.5 Index]