EntropyFilter[data,r]
通过用熵值替换范围为 r 的邻域以内的值对 data 进行滤波.
EntropyFilter[data,{r1,r2,…}]
对数据中的第
维用 ri 进行滤波.
EntropyFilter
EntropyFilter[data,r]
通过用熵值替换范围为 r 的邻域以内的值对 data 进行滤波.
EntropyFilter[data,{r1,r2,…}]
对数据中的第
维用 ri 进行滤波.
更多信息
- EntropyFilter 返回信号的局部随机值,常用来测量图像的纹理. 领域的大小取决于 r 的值.
- 应用于每个范围为 r 的邻域的函数是 Entropy.
- data 可以为以下任意形式:
-
list 任意维度的数值数组 tseries 时态数据,如 TimeSeries、TemporalData、 … image 任意 Image 或 Image3D 对象 audio 一个 Audio 对象 - EntropyFilter[data,{r1,r2,…}] 计算以每个样本为中心的、大小为
的区域内的熵值. - MeanFilter 假定列表和图像采用索引坐标系统.
- 在数据的边界处,EntropyFilter 使用较小的邻域.
范例
打开所有单元 关闭所有单元基本范例 (3)
EntropyFilter[{0, 0, 0, 1, 1, 1, 1, 0, 0, 0}, 1] // N对 TimeSeries 进行滤波:
ts = TemporalData[TimeSeries, {{{-5.284299554283819, 2.5633277538370023, 6.579100030714124,
-1.968961681799072, -0.4139386346612976, -1.9026234920486018, -0.6119551311215429,
6.658489816525363, -1.1389707331791818, 2.125399040092273, -2.100657 ... -1.0208703378550394, 4.53291764229072, 0.8063886166734048, -0.556998456633081,
5.892989731928727}}, {{0, 100, 1}}, 1, {"Continuous", 1}, {"Discrete", 1}, 1,
{ResamplingMethod -> {"Interpolation", InterpolationOrder -> 1}}}, False, 11.1];filter = EntropyFilter[ts, 5]ListLinePlot[{ts, filter}, PlotLegends -> {"original data", "filter"}]EntropyFilter[[image], 1]范围 (11)
数据 (7)
EntropyFilter[{1, 2, 3, 3, 3, 3, 3}, 1]EntropyFilter[(| | | | |
| - | - | - | - |
| 1 | 1 | 1 | 0 |
| 1 | 1 | 1 | 0 |
| 1 | 1 | 0 | 0 |
| 0 | 0 | 0 | 0 |), 1]//N//MatrixFormdata = {Quantity[2, "Meters"], Quantity[1, "Meters"], Quantity[0, "Meters"], Quantity[3, "Meters"], Quantity[0, "Meters"], Quantity[1, "Meters"], Quantity[3, "Meters"], Quantity[1, "Meters"], Quantity[1, "Meters"], Quantity[3, "Meters"], Quantity[3, "Meters"], Quantity[1, "Meters"]};filtered = EntropyFilter[data, 1]//N对 Audio 信号进行滤波:
a = Import["ExampleData/rule30.wav"];b = EntropyFilter[a, 15]AudioPlot[{a, b}]EntropyFilter[[image], 3]//ImageAdjustEntropyFilter[[image], 1]EntropyFilter[{a, a, a, b, b, b}, 1]参数 (4)
EntropyFilter[[image], 5]Table[Labeled[EntropyFilter[[image], r], Text["*r* = " <> ToString@r]], {r, {1, 3, 5}}]EntropyFilter[[image], {5, 0}]EntropyFilter[[image], {0, 5}]EntropyFilter[[image], {1, 0, 0}]EntropyFilter[[image], {0, 1, 1}]应用 (3)
属性和关系 (2)
熵滤波与使用函数 Entropy 的 ArrayFilter 一样:
r = 1;
x = {1, 2, -1, 1, 2, 3, 1, -1, 3, 1};
ArrayFilter[Entropy[Flatten[#]]&, x, r, Padding -> None] == EntropyFilter[x, r][[r + 1 ;; -r - 1]]熵滤波与使用函数 Entropy 的 ImageFilter 一样:
ImageCrop[EntropyFilter[[image], 1], 3] == ImageCrop[ImageFilter[Entropy[Flatten[#]]&, [image], 1], 3]可能存在的问题 (1)
不能对实值图像进行离散熵测量,因为不同的像素值不太可能出现两次:
EntropyFilter[[image], 3]//ImageAdjust用 ColorQuantize 来限制可能的像素值的数量:
EntropyFilter[ColorQuantize[[image], 16], 3]//ImageAdjust文本
Wolfram Research (2008),EntropyFilter,Wolfram 语言函数,https://reference.wolfram.com/language/ref/EntropyFilter.html (更新于 2016 年).
CMS
Wolfram 语言. 2008. "EntropyFilter." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2016. https://reference.wolfram.com/language/ref/EntropyFilter.html.
APA
Wolfram 语言. (2008). EntropyFilter. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/EntropyFilter.html 年
BibTeX
@misc{reference.wolfram_2026_entropyfilter, author="Wolfram Research", title="{EntropyFilter}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/EntropyFilter.html}", note=[Accessed: 11-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_entropyfilter, organization={Wolfram Research}, title={EntropyFilter}, year={2016}, url={https://reference.wolfram.com/language/ref/EntropyFilter.html}, note=[Accessed: 11-September-2026]}