文档图像二值化

时间:2012-03-30 05:13:04

标签: matlab image-processing threshold

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

enter image description here

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

任何建议都将不胜感激。

1 个答案:

答案 0 :(得分:10)

如何从简单地根据当地社区调整阈值开始?

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);

结果:

enter image description here

相关问题