Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/SauvolaThreshold.R
Thresholding method using mean and standard deviation.
1 | 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
1 2 3 4 5 6 7 8 | 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.