SauvolaThreshold {CRImage} | R Documentation

## Do Sauvola thresholding

### Description

Thresholding method using mean and standard deviation.

### Usage

    SauvolaThreshold(allGreyValues)

### Arguments

`allGreyValues` | Vector of gray values.

### Details

A threshold for the gray values is returned

### Value

The threshold.

### Author(s)

Henrik Failmezger, failmezger@cip.ifi.lmu.de

### References

J. Sauvola, M. Pietikainen, "Adaptive Document Image Binarization," Pattern Recognition, vol. 33, 225-236, 2000

### See Also

createBinaryImage

### Examples

    f1= system.file("extdata", "exImg2.jpg", package="CRImage")
    print(f1)
    img=readImage(f1)
    print(img)
    #convert to grayscale
    imgG=EBImage::channel(img,'grey')
    #threshold value
    t=SauvolaThreshold(as.vector(imgG))

[Package CRImage version 1.32.0 Index]