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は,任意階数の配列と2Dおよび3Dの画像に使うことができる.
- 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 Language. 2012. "Downsample." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/Downsample.html.
APA
Wolfram Language. (2012). Downsample. Wolfram Language & System Documentation Center. Retrieved from 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: 07-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: 07-September-2026]}