SauvolaThreshold {CRImage} | R Documentation |
Thresholding method using mean and standard deviation.
SauvolaThreshold(allGreyValues)
allGreyValues |
Vector of gray values. |
A threshold for the gray values is returned
The threshold.
Henrik Failmezger, failmezger@cip.ifi.lmu.de
J. Sauvola, M. Pietikainen, "Adaptive Document Image Binarization," Pattern Recognition, vol. 33, 225-236, 2000
createBinaryImage
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))