ImageApplyIndexed[f,image]
各画素の行指標と列指標を関数 f の第2引数として,f を image の各画素のチャンネル値のリストに適用する.
ImageApplyIndexed[f,{image1,image2,…}]
f を,各 imageiから取られた一連の対応する画素値に適用する.対応する画素の行および列の指標は f の最終引数として与える.
ImageApplyIndexed
ImageApplyIndexed[f,image]
各画素の行指標と列指標を関数 f の第2引数として,f を image の各画素のチャンネル値のリストに適用する.
ImageApplyIndexed[f,{image1,image2,…}]
f を,各 imageiから取られた一連の対応する画素値に適用する.対応する画素の行および列の指標は f の最終引数として与える.
詳細とオプション
- ImageApplyIndexed[f,image]は,各画素についてのチャンネル値のリストを,関数 f をリストに適用した結果で置換する.
- 2Dでは,各画素の部分指定は{row,column}として f に渡される.
- 3Dでは,部分指定は{slice,row,column}で指定される.
- ImageApplyIndexedは任意のチャンネル数の画像に使うことができる.
- ImageApplyIndexed[f,image]は,image と同じタイプの画像を返す.
- ImageApplyIndexed[f,image]では,関数 f は,数あるいは任意の長さのリストを返すことができる.
- f に渡されるチャンネル値は,一般に,Imageオブジェクトで使われるもとになっているタイプに関係なく,0から1までである.関数 f は,通常0から1までの範囲にあるチャンネル値を返すと想定される.
- ImageApplyIndexed[f,{image1,image2,…,imagen}]で,f には n+1個の引数が与えられる.
- ImageApplyIndexed[f,{image1,image2,…}]は,任意数の同一基準の画像に使うことができる.
- ImageApplyIndexed[f,{image1,image2,…}]は,必要な場合は値を切り取ったり切断したりして,imageiの最大タイプの画像を与える.
- ImageApplyIndexedはImage3Dオブジェクトに使うことができる.
- 次は,使用可能なオプションである.
-
Interleaving True チャンネルがインターリーブされていると仮定するかどうか Masking All 処理する関心領域 - InterleavingTrueの場合,関数 f は指定された画素についてのチャンネル値の完全なリストに適用される.それ以外の場合,f は個々のチャンネル値に適用される.
例題
すべて開く すべて閉じるオプション (3)
Interleaving (2)
関数がカラーチャンネルに別々に適用されるべきであるときは,Interleaving->Falseを使う:
関数が別々のチャンネル値を期待している場合は,Interleaving->Falseおよび画像のリストを使う:
アプリケーション (6)
考えられる問題 (1)
関連するガイド
テキスト
Wolfram Research (2014), ImageApplyIndexed, Wolfram言語関数, https://reference.wolfram.com/language/ref/ImageApplyIndexed.html.
CMS
Wolfram Language. 2014. "ImageApplyIndexed." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ImageApplyIndexed.html.
APA
Wolfram Language. (2014). ImageApplyIndexed. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageApplyIndexed.html
BibTeX
@misc{reference.wolfram_2025_imageapplyindexed, author="Wolfram Research", title="{ImageApplyIndexed}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ImageApplyIndexed.html}", note=[Accessed: 23-October-2025]}
BibLaTeX
@online{reference.wolfram_2025_imageapplyindexed, organization={Wolfram Research}, title={ImageApplyIndexed}, year={2014}, url={https://reference.wolfram.com/language/ref/ImageApplyIndexed.html}, note=[Accessed: 23-October-2025]}