It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center




9年前关闭。




我正在尝试为文档图像找到有效的二值化技术。我目前已经实现了 niblack 和 sauvola 阈值算法,并尝试了基于直方图评估的二值化。有人可以建议其他已被证明有效的二值化方法吗?
这是我一直在使用的降级图像示例:

http://spie.org/Images/Graphics/Newsroom/Imported/0681/0681_fig1.jpg

任何建议将不胜感激。

最佳答案

从简单地根据本地邻域调整阈值开始怎么样?

im = rgb2gray(im);
im = im2double(im);
f_makebw = @(I) im2bw(I.data, double(median(I.data(:)))/1.45);
bw = ~blockproc(im, [128 128], f_makebw);

结果:

关于matlab - 文档图像二值化,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9937316/

10-09 09:10