Description Usage Arguments Value Author(s) References Examples
View source: R/local_adaptive_thresholding.R
Local Adaptive Thresholding
1 | ThresholdAdaptive(im, k, windowsize = 17, range = c(0, 255))
|
im |
a grayscale image of class cimg |
k |
a numeric in the range [0,1]. when k is high, local threshold values tend to be lower. when k is low, local threshold value tend to be higher. |
windowsize |
windowsize controls the number of local neighborhood |
range |
this function assumes that the range of pixel values of of input image is [0,255] by default. you may prefer [0,1]. Note that range determines the max standard deviation. The max standard deviation plays an important role in this function. |
a pixel set
Shota Ochi
Faisal Shafait, Daniel Keysers, Thomas M. Breuel, "Efficient implementation of local adaptive thresholding techniques using integral images", Proc. SPIE 6815, Document Recognition and Retrieval XV, 681510 (28 January 2008)
1 2 3 4 5 |
Loading required package: imager
Loading required package: magrittr
Attaching package: ‘imager’
The following object is masked from ‘package:magrittr’:
add
The following objects are masked from ‘package:stats’:
convolve, spectrum
The following object is masked from ‘package:graphics’:
frame
The following object is masked from ‘package:base’:
save.image
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.