matlab - 清除图像中的噪声

标签 matlab image-processing

我需要知道如何使用 Matlab 清除图像中的噪声。

让我们看这个例子:

enter image description here enter image description here

如您所见,数字看起来不是很清楚。

那么如何清除噪声和不是数字的像素,以便更容易识别。

谢谢。

最佳答案

让我们在 Mathematica 中逐步完成:

(*first separate the image in HSB channels*)
i1 = ColorSeparate[ColorNegate@yourColorImage, "HSB"]

enter image description here

(*Let's keep the B Channel*)
i2 = i1[[3]]

enter image description here

(*And Binarize it *)
i3 = Binarize[i2, 0.92]

enter image description here

(*Perform a Thinning to get the skeleton*)
i4 = Thinning[i3]

enter image description here

(*Now we cut those hairs*)
i5 = Pruning[i4, 10]

enter image description here

(*Remove the small lines*)
i6 = DeleteSmallComponents[i5, 30]

enter image description here

(*And finally dilate*)
i7 = Dilation[i6, 3]

enter image description here

(*Now we can perform an OCR*)
TextRecognize@i7
-->"93 269 23"  

完成!

关于matlab - 清除图像中的噪声,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5312514/

相关文章:

opencv - opencv中边缘的特征检测

matlab - 如何在 Matlab GUI 中使用 vim 作为编辑器

image - 在图片中创建一个钻石

matlab - 在 matlab 中使用 find()

python - 在计算机视觉中调整图像大小和重新缩放图像之间有区别吗?

c++ - 逐像素比较 2 张图像(第一张图像存储在数据库中)

image-processing - 使用 Hadoop MapReduce 进行图像处理

matlab - 在 MATLAB 中修复图像中缺失的边界

arrays - 函数类似于Matlab中的head()

image-processing - 图像处理-PSNR和SSIM指标是否显示平滑(降噪)质量?