FindThreshold
✖
FindThreshold
FindThreshold[image]
求把 image 中的亮度值划分为两个区间的全局阈值.
更多信息和选项

- 阈值是二元聚类或分割最常用的技术之一.
- FindThreshold 可用于二维和三维图像,以及任意阶数的数据数组. 它将多通道和彩色图像转化为灰度级图像,然后找到一个全局阈值.
- FindThreshold[image,Method->method] 指定用来决定阈值的方法.
- Method 选项的可能设置包括:
-
{"BlackFraction",b} 使得所有像素中的一定比例 b 变成黑色 "Cluster" 聚类方差最大化(Otsu 算法) "Entropy" 直方图熵最大化(Kapur 方法) "Mean" 将平均像素级作为阈值使用 "Median" 将中位数像素级作为阈值使用 "MinimumError" Kittler–Illingworth 最小误差阈值方法 - 默认设置为 Method->"Cluster".

范例
打开所有单元关闭所有单元基本范例 (1)常见实例总结
范围 (3)标准用法实例范围调查
选项 (5)各选项的常用值和功能
Method (5)
默认情况下使用最大化两个簇之间的方差的 "Cluster" 方法:
In[11]:=11

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-jceh7p
In[13]:=13

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-pt806v
用 "MinimumError" 方法对从两个高斯分布抽取的数据进行分类:
In[1]:=1

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-e3xju7
In[2]:=2

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-9r64vj
使用 "BlackFraction" 方法指定多少数据应该位于阈值以下:
In[1]:=1

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-560vst
In[2]:=2

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-sfao87
In[1]:=1

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-q75nx7
In[2]:=2

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-7rqv61
In[1]:=1

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-bg41m3
In[2]:=2

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-es3rtl
In[3]:=3

✖
https://wolfram.com/xid/0bc55zpopmtcqqp-qhl9a8
Wolfram Research (2010),FindThreshold,Wolfram 语言函数,https://reference.wolfram.com/language/ref/FindThreshold.html (更新于 2012 年).
文本
Wolfram Research (2010),FindThreshold,Wolfram 语言函数,https://reference.wolfram.com/language/ref/FindThreshold.html (更新于 2012 年).
CMS
Wolfram 语言. 2010. "FindThreshold." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2012. https://reference.wolfram.com/language/ref/FindThreshold.html.
APA
Wolfram 语言. (2010). FindThreshold. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/FindThreshold.html 年