ImageRotate[image]
image を
-
平面上の中心の周りで90°回転させる.
ImageRotate[image,θ]
image を θ ラジアン回転させる.
ImageRotate[image,{θ,w}]
3D画像を,3Dベクトル w の周りで回転させる.
ImageRotate[image,…,size]
指定された大きさの画像を与える.
ImageRotate[video,…]
video のフレームを回転させる.
ImageRotate
ImageRotate[image]
image を
-
平面上の中心の周りで90°回転させる.
ImageRotate[image,θ]
image を θ ラジアン回転させる.
ImageRotate[image,{θ,w}]
3D画像を,3Dベクトル w の周りで回転させる.
ImageRotate[image,…,size]
指定された大きさの画像を与える.
ImageRotate[video,…]
video のフレームを回転させる.
詳細とオプション
- ImageRotateは,画像をその中心または任意の点を中心として回転させる.これは,一般に,画像の方向を固定したり画像を水平線と揃えたりするために使われる.
- ImageRotate[image,…]は image をその中心の周りで回転させる.
- 動画入力についての回転指定は,すべてのフレームについて固定することも時間の関数(開始時点からの秒数)にすることもできる.
- 2D画像および動画の場合,ImageRotate[input,side]は,画像の天辺が指定された side になるように input を回転させる.ImageRotate[input,side1->side2]は,side1が side2になるように input を回転させる.使用可能な側指定には,Top,Bottom,Left,Rightがある.
- ImageRotate[image,side]はImageRotate[image,Top->side]に等しい.
- size の指定可能な値
-
width widthまで切り取る {width,height} {width,height}まで切り取る {width,depth,height} 3D画像を{width,depth,height}まで切り取る Automatic 回転されたすべての画像を囲む最小の長方形 All 任意の回転角で回転された画像を含むスペースがある最小の正方形 Full 入力画像の寸法を使う "MaxAreaCropping" 面積を最大にしつつ入力画素のみを含むように切り取る "SameRatioCropping" 縦横比を保存しつつ入力画素のみを含むようにする - サポートされるオプション
-
Background 0 使用する背景色 Masking All 回転させる関心領域 Padding 0 もとの画像への充填 Resampling Automatic リサンプリング法 - Maskingオプションは,以下の一つでよい.
-
All 入力画像のみ Full 入力画像と充填 mask 任意のマスク画像
例題
すべて開く すべて閉じる例 (2)
スコープ (8)
データ (4)
ImageRotate[[image]]ImageRotate[[image]]ImageRotate[\!\(\*VideoBox[""]\)]ImageRotate[[image]]回転角 (3)
ImageRotate[[image], Right]ImageRotate[[image], Top -> Bottom]ImageRotate[[image], π / 4]ImageRotate[[image], 45°]ImageRotate[\!\(\*VideoBox[""]\), t 2t, Full]i = [image];
ImageRotate[i, π / 2]ImageRotate[i, {π / 5, {1, 0, 0}}]ImageRotate[i, {π / 5, {1, 1, 1}}]出力サイズ (1)
デフォルトで,回転された画像全体が含まれる長方形を表示するような充填が行われる:
i = [image];ImageRotate[i, 15 °]ImageRotate[i, 15 °, Full]ImageRotate[i, 15 °, 150]ImageRotate[i, 15 °, "SameRatioCropping"]ImageRotate[i, 15 °, "MaxAreaCropping"]ImageRotate[i, #, All]& /@ {5 °, 45°}オプション (5)
Background (1)
Masking (1)
デフォルトでMaskingAllが使われ,もとの画像の外側の画素には背景の値が使われる:
i = [image];ImageRotate[i, 20 °, Masking -> All]MaskingFullを使って,もとの画像の外側の画素に使われる充填値を見る:
ImageRotate[i, 20 °, Masking -> Full]ImageRotate[i, 20 °, Masking -> Graphics[{White, Disk[]}, Background -> Black]]Padding (1)
i = [image];ImageRotate[i, 20 °, Masking -> Full]ImageRotate[i, 20 °, Masking -> Full, Padding -> "Reversed"]ImageRotate[i, 20 °, Masking -> Full, Padding -> Gray]アプリケーション (2)
ImageRotate[[image], 90 °]上下が反転しているテキストが正しく見えるように画像を回転させる:
ImageRotate[[image], Top -> Bottom]rotation = t Piecewise[{{Left -> Right, t < 1}, {3*t, t >= 1}}];ImageRotate[\!\(\*VideoBox[""]\), rotation, Full]特性と関係 (2)
ImageRotateは,中心の周りで回転を行う:
i = [image];ImageRotate[i, 20 °, ImageDimensions[i]]ImageTransformationおよびRotationTransformを使って画像を回転させる:
ImageTransformation[i, RotationTransform[-20 °, {0.5, 0.5}]]ImageTransformationを使って,別の中心の周りで回転させる:
ImageTransformation[i, RotationTransform[-20 °, {0, 0}]]i = [image];ImageRotate[i, {π / 5, {1, 0, 0}}, Full]ImageTransformationおよびRotationTransformを使って画像を回転させる:
ImageTransformation[i, RotationTransform[-π / 5, {1, 0, 0}, {0.5, 0.5, 0.5}]]テクニカルノート
-
▪
- 画像処理
テキスト
Wolfram Research (2008), ImageRotate, Wolfram言語関数, https://reference.wolfram.com/language/ref/ImageRotate.html (2021年に更新).
CMS
Wolfram Language. 2008. "ImageRotate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/ImageRotate.html.
APA
Wolfram Language. (2008). ImageRotate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageRotate.html
BibTeX
@misc{reference.wolfram_2026_imagerotate, author="Wolfram Research", title="{ImageRotate}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ImageRotate.html}", note=[Accessed: 15-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_imagerotate, organization={Wolfram Research}, title={ImageRotate}, year={2021}, url={https://reference.wolfram.com/language/ref/ImageRotate.html}, note=[Accessed: 15-November-2026]}