Otsu's method大津法/最大类间方差(Otsu)
2016-06-22 14:36
381 查看
原文地址:Otsu's
method大津法/最大类间方差(Otsu)作者:intrepid
大津法由大津(otsu)于1979年提出,对图像Image,记t为前景与背景的分割阈值,前景点数占图像比例为w0,平均灰度为u0;背景点数占图像比例为w1,平均灰度为u1。图像的总平均灰度为:u=w0*u0+w1*u1。从最小灰度值到最大灰度值遍历t,当t使得值g=w0*(u0-u)2+w1*(u1-u)2
最大时t即为分割的最佳阈值。对大津法可作如下理解:该式实际上就是类间方差值,阈值t分割出的前景和背景两部分构成了整幅图像,而前景取值u0,概率为
w0,背景取值u1,概率为w1,总均值为u,根据方差的定义即得该式。因方差是灰度分布均匀性的一种度量,方差值越大,说明构成图像的两部分差别越大, 当部分目标错分为背景或部分背景错分为目标都会导致两部分差别变小,因此使类间方差最大的分割意味着错分概率最小。
亦称:最大类间方差(Otsu)
直接应用大津法计算量较大,因此我们在实现时采用了等价的公式g=w0*w1*(u0-u1)2。
In Otsu's method we exhaustively search for the threshold
that minimizes the intra-class variance, defined as a weighted sum of variances of the two classes:
![](http://upload.wikimedia.org/math/9/4/e/94e2b3a2c1f1b469f17a71014ea77587.png)
Weights ωi
are the probabilities of the two classes separated by a threshold t
and
![](http://upload.wikimedia.org/math/8/5/8/858533c45c5df12a7e743e031638f296.png)
variances of these classes.
Otsu shows that minimizing the intra-class variance is the same as maximizing inter-class variance:[2]
![](http://upload.wikimedia.org/math/8/9/4/894892ba54d00a159aaebfb515c6643d.png)
which is expressed in terms of class probabilities
ωi
and class means μi
which in turn can be updated iteratively. This idea yields an effective algorithm.
![](http://s13.sinaimg.cn/bmiddle/48e12297072a4a609979c&690)
Nobuyuki Otsu (1979). "A threshold selection method from gray-level histograms".
IEEE Trans. Sys., Man., Cyber. 9: 62–66
method大津法/最大类间方差(Otsu)作者:intrepid
大津法由大津(otsu)于1979年提出,对图像Image,记t为前景与背景的分割阈值,前景点数占图像比例为w0,平均灰度为u0;背景点数占图像比例为w1,平均灰度为u1。图像的总平均灰度为:u=w0*u0+w1*u1。从最小灰度值到最大灰度值遍历t,当t使得值g=w0*(u0-u)2+w1*(u1-u)2
最大时t即为分割的最佳阈值。对大津法可作如下理解:该式实际上就是类间方差值,阈值t分割出的前景和背景两部分构成了整幅图像,而前景取值u0,概率为
w0,背景取值u1,概率为w1,总均值为u,根据方差的定义即得该式。因方差是灰度分布均匀性的一种度量,方差值越大,说明构成图像的两部分差别越大, 当部分目标错分为背景或部分背景错分为目标都会导致两部分差别变小,因此使类间方差最大的分割意味着错分概率最小。
亦称:最大类间方差(Otsu)
直接应用大津法计算量较大,因此我们在实现时采用了等价的公式g=w0*w1*(u0-u1)2。
In Otsu's method we exhaustively search for the threshold
that minimizes the intra-class variance, defined as a weighted sum of variances of the two classes:
![](http://upload.wikimedia.org/math/9/4/e/94e2b3a2c1f1b469f17a71014ea77587.png)
Weights ωi
are the probabilities of the two classes separated by a threshold t
and
![](http://upload.wikimedia.org/math/8/5/8/858533c45c5df12a7e743e031638f296.png)
variances of these classes.
Otsu shows that minimizing the intra-class variance is the same as maximizing inter-class variance:[2]
![](http://upload.wikimedia.org/math/8/9/4/894892ba54d00a159aaebfb515c6643d.png)
which is expressed in terms of class probabilities
ωi
and class means μi
which in turn can be updated iteratively. This idea yields an effective algorithm.
Nobuyuki Otsu (1979). "A threshold selection method from gray-level histograms".
IEEE Trans. Sys., Man., Cyber. 9: 62–66
相关文章推荐
- Otsu Thresholding
- opencv+vs2013实现 最大类间二值化(附源代码)
- 基于otsu的图像二值化
- Otsu的全局阈值处理实现
- 图像分割
- OpenCV二值化cvThreshold和自适应二值化cvAdaptiveThreshold及Otsu
- OpenCV OTSU大津法
- Otsu阈值化
- 图像二值化----otsu(最大类间方差法、大津算法)
- 图像基本处理算法的简单实现(一) 推荐
- OpenCV实现验证otsu算法
- 最大类间方差法----Otsu
- 最大类间方差法(大津法OTSU)
- OTSU 阈值计算在OpenCV中的实现
- 手写数字识别系统之数字提取
- 带有 mask 的 OTSU 自适应阈值
- 图像二值化方法--OTSU(最大类间方差法)
- 自动选择阈值--最大类间方差法(OTSU)原理及matlab实现
- 图像的阈值化-OTSU、固定阈值法、基于局部的阈值化
- 五个主流以太网技术比较