找到合适的阈值来转换二进制图像 [英] Find an appropriate threshold value to convert binary image

查看:141
本文介绍了找到合适的阈值来转换二进制图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难找到合适的阈值来转换二进制图像

我已经尝试使用graythresh()函数来找到它,但这不是一个好的答案。

即使我使用平滑去除了几乎噪音,它也存在噪音。所以我认为这个问题的原因是噪音



有没有办法找到合适的门槛值?任何建议?

help。

I have a trouble to find an appropriate threshold value to convert binary image
I've already tried to use graythresh() function to find it, but it was not good answer.
Even though I removed almost noise using smoothing, it exists noise. So i think the cause of this problem is noise

Is there any way to find an appropriate threshold value ? any recommendation?
help.

推荐答案

没有。选择阈值没有一种常用方法。 0和最大像素值之间的任何值都将起作用并给出不同的结果。你选择的只取决于你的标准和输入图像,但你没有告诉我们你期望得到什么。至于噪音,这个问题并没有直接关系。转换为B& W只能在视觉上夸大噪声(并且很明显,通过将噪声饱和来消除部分噪声)。噪音在理论上是不可避免的。



-SA
No. There is no one common way to choose a threshold. Any value between 0 and maximum pixel value will work and give different results. What you chose solely depends on your criteria and input image, but you did not tell us what do you expect to get. As to the noise, this problem is not directly related. Transformation to B&W can only visually exaggerate noise (and, quite apparently, eliminate part of the noise by saturating it out). The noise is theoretically unavoidable.

—SA


这篇关于找到合适的阈值来转换二进制图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆