Downsample[array,n]
通过对每第 n
个元素采样,返回数组的一个降低采样的版本.
Downsample[array,n,offset]
开始从位置 offset 处的元素采样.
Downsample[image,…]
对图像降采样.
Downsample
Downsample[array,n]
通过对每第 n
个元素采样,返回数组的一个降低采样的版本.
Downsample[array,n,offset]
开始从位置 offset 处的元素采样.
Downsample[image,…]
对图像降采样.
更多信息
- 在 Downsample[array,…] 中,array 可以是任意阶数的数组.
- Downsample 可用于任意阶数的数组,和二维及三维图像.
- Downsample[array,{n1,n2,…}] 在第 i 维对每第 ni 个元素采样.
- Downsample[array,n] 等价于 Downsample[array,n,1].
- 在 Downsample[array,n,offset] 中,offset 必须是一个位于 1 和 n 之间的整数.
范例
打开所有单元 关闭所有单元基本范例 (4)
Downsample[Range[10], 2]Downsample[(| | | |
| - | - | - |
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |), 2]//MatrixFormDownsample[[image], 2]i = Image3D[ExampleData[{"TestImage3D", "CTengine"}], ImageSize -> All]Downsample[i, 2]范围 (4)
Downsample[Range[10], 3]Downsample[Range[10], 3, 2]Downsample[(| | | |
| - | - | - |
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |), {1, 2}]//MatrixFormDownsample[{a, b, c, d, e, f}, 2]Downsample[[image], 2]Downsample[[image], 2, 2]应用 (2)
i = [image];NestList[Downsample[Blur[#, 1], 2]&, i, 4]q = {(1/4), (1/4), (1/4), (1/4)};list = RandomReal[1, 16];res1 = Downsample[ListConvolve[q, list], 2]res2 = ListConvolve[Downsample[q, 2], Downsample[list, 2]]res3 = ListConvolve[Downsample[q, 2, 2], Downsample[list, 2, 2]]res4 = res2 + res3res1 - res4文本
Wolfram Research (2012),Downsample,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Downsample.html (更新于 2016 年).
CMS
Wolfram 语言. 2012. "Downsample." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2016. https://reference.wolfram.com/language/ref/Downsample.html.
APA
Wolfram 语言. (2012). Downsample. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Downsample.html 年
BibTeX
@misc{reference.wolfram_2026_downsample, author="Wolfram Research", title="{Downsample}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/Downsample.html}", note=[Accessed: 14-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_downsample, organization={Wolfram Research}, title={Downsample}, year={2016}, url={https://reference.wolfram.com/language/ref/Downsample.html}, note=[Accessed: 14-September-2026]}