开发者

Adaptive thresholding for scanned images

开发者 https://www.devze.com 2023-01-28 14:27 出处:网络
I would like to improve a number of images accquired with documen开发者_开发问答t scanning, does anybody have any VB sample code for dynamic thresholding to achieve a result something similar to the i

I would like to improve a number of images accquired with documen开发者_开发问答t scanning, does anybody have any VB sample code for dynamic thresholding to achieve a result something similar to the images shown at the bottom of the page;

http://www.datastor-ltd.co.uk/component/content/article/39-microfilm-scanning/104-the-benefits-of-scanning-in-greyscale


Have a look at Otsu's method. It's quite simple an easy to implement -- you should be able to transform Wikipedia's pseudo-code into VB in no time.

Otsu's method will give you a threshold (single value) -- you can then use that threshold to binarize the image. The thresholding code is also trivial.

0

精彩评论

暂无评论...
验证码 换一张
取 消