扫描图像的自适应阈值处理 [英] Adaptive thresholding for scanned images

查看:141
本文介绍了扫描图像的自适应阈值处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想改进一些文档扫描所需的图像,是否有人使用任何VB示例代码进行动态阈值处理,以获得类似于页面底部显示的图像的结果;

I would like to improve a number of images accquired with document 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

推荐答案

看看 Otsu的方法。它非常简单易于实现 - 您应该能够立即将维基百科的伪代码转换为VB。

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的方法将为您提供一个阈值(单值) ) - 然后您可以使用该阈值对图像进行二值化。阈值代码也很简单。

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.

这篇关于扫描图像的自适应阈值处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆