Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想改进一些通过文档扫描获得的图像,是否有人有任何用于动态阈值的 VB 示例代码以实现类似于页面底部显示的图像的结果;
http://www.datastor-ltd.co.uk/component/content/article/39-microfilm-scanning/104-the-benefits-of-scanning-in-greyscale
看看大津的方法。它非常简单且易于实现——您应该能够立即将 Wikipedia 的伪代码转换为 VB。
Otsu 的方法将为您提供一个阈值(单个值)——然后您可以使用该阈值对图像进行二值化。阈值代码也很简单。