ImageData
✖
ImageData
詳細とオプション

- ImageData[image]はデフォルトで,要素が各チャンネルの値のリストである2Dまたは3Dの配列を与える.単一チャンネルの画像に対しては,値のリストではなく1つの値のみが返される.
- 2Dの場合,ImageData[image]によって生成された配列は,画像が表示されるのと同じ方法で並べられ,第1行が画像中の一番上の画素行に当たる.
- 3Dの場合,ImageData[image]によって生成される配列は,最初の部分がトップスライスに相当し,行は背景から前景へ,列は左から右へとなるように配置される.
- バイナリ画像の場合,ImageData[image]は0か1の整数値を返す."Byte"型あるいは"Bit16"型の画像については,ImageData[image]は,値が常に0から1までの間になるようにこれを正規化する.実数型の画像については,ImageData[image]は画像に使われている実数値を,それがなんであれ返す.
- ImageData[image,"type"]が指定する可能なタイプ
-
"Bit" 0か1の整数 "Byte" 0から255までの整数 "Bit16" 0から65535までの整数 "Real32" 単精度実数(32ビット) "Real64" 倍精度実数(64ビット) - ImageData[image,Automatic]はImageData[image,ImageType[image]]に等しい.
- ImageDataはオプションInterleavingを有する.
- デフォルト設定のInterleaving->Trueのとき,ImageDataはチャンネル値のリストの2Dまたは3Dの配列を返す.
- Interleaving->Falseとすると,ImageDataは各チャンネルの値の2Dまたは3Dの配列を返す.
- Interleaving->Automaticは画像を保存するネイティブな形式で返す.
- ImageDataにはDataReversedオプションを与えることができる.DataReversed->Trueとすると,行の順が逆になる.
例題
すべて開くすべて閉じる例 (3)基本的な使用例
In[1]:=1

✖
https://wolfram.com/xid/0bdpj8f2q-6hvtuj
Out[1]=1

In[1]:=1

✖
https://wolfram.com/xid/0bdpj8f2q-7lclkw
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bdpj8f2q-53sjcj
Out[2]=2

In[3]:=3

✖
https://wolfram.com/xid/0bdpj8f2q-5iovbf
Out[3]=3

In[1]:=1

✖
https://wolfram.com/xid/0bdpj8f2q-e65o1r

オプション (3)各オプションの一般的な値と機能
DataReversed (1)
Interleaving (2)
デフォルトで多チャンネル画像のデータはインターリーブ形式で返される:
In[1]:=1

✖
https://wolfram.com/xid/0bdpj8f2q-pzhm0t
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bdpj8f2q-x31mx8
Out[2]=2

In[1]:=1

✖
https://wolfram.com/xid/0bdpj8f2q-iimsnf
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bdpj8f2q-fjl93k

In[3]:=3

✖
https://wolfram.com/xid/0bdpj8f2q-d50nn5
Out[3]=3

Wolfram Research (2008), ImageData, Wolfram言語関数, https://reference.wolfram.com/language/ref/ImageData.html (2012年に更新).
✖
Wolfram Research (2008), ImageData, Wolfram言語関数, https://reference.wolfram.com/language/ref/ImageData.html (2012年に更新).
テキスト
Wolfram Research (2008), ImageData, Wolfram言語関数, https://reference.wolfram.com/language/ref/ImageData.html (2012年に更新).
✖
Wolfram Research (2008), ImageData, Wolfram言語関数, https://reference.wolfram.com/language/ref/ImageData.html (2012年に更新).
CMS
Wolfram Language. 2008. "ImageData." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/ImageData.html.
✖
Wolfram Language. 2008. "ImageData." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/ImageData.html.
APA
Wolfram Language. (2008). ImageData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageData.html
✖
Wolfram Language. (2008). ImageData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageData.html
BibTeX
✖
@misc{reference.wolfram_2025_imagedata, author="Wolfram Research", title="{ImageData}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/ImageData.html}", note=[Accessed: 30-March-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_imagedata, organization={Wolfram Research}, title={ImageData}, year={2012}, url={https://reference.wolfram.com/language/ref/ImageData.html}, note=[Accessed: 30-March-2025
]}