threshold.msi(crackrec) | R Documentation |
can be used to find an appropriate threshold value for crackrec. threshold.msi uses kernel denstity estimation with Gaussian kernel.
threshold.msi(mat, bw)
mat |
the matrix representation of an image. |
bw |
the smoothing parameter (bandwidth). |
Returns a numeric value
Janine Keppler, Alexander Stepper stepper@mathematik.uni-kassel.de
rbmp
, crackrec
, medianfilter
, crackplot
, shadow.remove
.
## 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)