扫描图像的自适应阈值处理

发布于 2024-10-06 02:21:52 字数 345 浏览 0 评论 0原文

我想改进通过文档扫描获取的一些图像,是否有人有用于动态阈值处理的 VB 示例代码,以实现与页面底部显示的图像类似的结果;

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黑寡妇 2024-10-13 02:21:52

看看大津的方法。它非常简单且易于实现——您应该能够立即将 Wikipedia 的伪代码转换为 VB。

Otsu 的方法将为您提供一个阈值(单个值)——然后您可以使用该阈值对图像进行二值化。阈值代码也很简单。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文