TourVideo
詳細とオプション
- TourVideoはグラフィックスの周りを巡ることで動画を生成する.グラフィックスの周りでズームイン,ズームアウト,パンすることで,関心領域が探検できる.
- 次は,input の可能な設定である.
-
graphics Graphicsオブジェクト image Imageオブジェクト geographics GeoGraphicsオブジェクト video Videoオブジェクト - 位置指定 stepiは以下のいずれかでよい.
-
{x,y} グラフィックスの座標系における絶対位置 Scaled[{x,y}] 各方向で0から1にスケールされた座標 Rectangle[…] 明示的な長方形 Rectangle[Scaled[…],Scaled[…]] スケールされた座標系での長方形 Rotate[Rectangle[…],…] 回転された長方形 <|prop1val1,…|> 連想の刻み幅特性 - 刻み幅が特性の連想として与えられた場合は,以下のキーを指定することができる.
-
"Position" {x,y}で与えられる関心領域の中心位置 "DwellTime" 秒(またはその他の時間量)で与えられた滞留時間 "Rotation" 場所の周りボックスの回転 "Width" 関心領域の幅 - 次は,フレーム作成を制御するオプションである.
-
AspectRatio 9/16 使用する縦横比 DefaultDuration Automatic 推奨時間(単位:秒) InterpolationOrder 1 使用する補間次数 - パネル内にフレームを生成したければParallelize[TourVideo[…]]を使うとよい.
- デフォルトで,TourVideoは新規動画を$WolframDocumentsDirectoryの"Video"ディレクトリに置く.
- 次は,動画の出力の特性を制御するオプションである.
-
BitRate Automatic 使用するおおよそのビットレート CompressionLevel Automatic 使用する圧縮レベル FrameRate Automatic 使用するフレームレート GeneratedAssetFormat Automatic 結果の形式 GeneratedAssetLocation $GeneratedAssetLocation 結果の場所 OverwriteTarget False 既存ファイルに上書きするかどうか RasterSize Automatic 出力動画のラスターサイズ VideoEncoding Automatic 使用する動画の符号化 VideoTransparency False 出力動画が透明度チャンネルを持つべきかどうか
例題
すべて開く すべて閉じる例 (2)
i = ExampleData[{"TestImage", "Volubilis"}]TourVideo[i, {Rectangle[Scaled[{.1, .4}], Scaled[{.2, .5}]], Rectangle[Scaled[{.8, .4}], Scaled[{.9, .5}]]}]TourVideo[i, {<|"Position" -> {2700, 1800}, "Width" -> 1500|>, <|"Position" -> {2700, 1800}, "Width" -> 200|>}]TourVideo[i, {<|"Position" -> {2700, 1800}, "Width" -> 200|>, <|"Position" -> {2700, 1800}, "Width" -> 1500|>}]TourVideo[i, {<|"Position" -> {5000, 2000}, "Width" -> 3000|>, <|"Position" -> {2700, 1800}, "Width" -> 200|>}]TourVideo[GeoGraphics[], {Entity["City", {"Munich", "Bavaria", "Germany"}], Entity["City", {"Wurzburg", "Bavaria", "Germany"}]}]スコープ (6)
データ (4)
TourVideo[[image], {{8, 41}, {10, 43}, {14, 41}, {13, 46}, {8, 41}}]TourVideo[[image], Table[<|"Position" -> Scaled[{.5, 1 - 1 / (i + 1)}], "Width" -> Scaled[1 / i]|>, {i, 1, 5}], AspectRatio -> 1]GeoGraphicsオブジェクトを調査する:
TourVideo[GeoGraphics[], {Entity["City", {"Paris", "IleDeFrance", "France"}], Entity["City", {"Rome", "Lazio", "Italy"}]}]GeoGraphicsオブジェクトをカスタムスタイリングで使う:
TourVideo[GeoGraphics[{GeoStyling[{"Image", SetAlphaChannel[CountryData[#, "Flag"], .3]}], Polygon[Entity["Country", #]]}& /@ {"France", "Germany", "Italy", "Spain"}],
{Entity["City", {"Rome", "Lazio", "Italy"}], Entity["City", {"Paris", "IleDeFrance", "France"}]}]v = Video["ExampleData/bullfinch.mkv"];TourVideo[v, {Full, <|"Position" -> Scaled[{.5, .5}], "Width" -> Scaled[.2]|>}]ステップ指定 (2)
i = [image];TourVideo[i, {{243, 650}, {760, 460}, {1170, 640}}]TourVideo[i, {{1, {243, 650}}, {3, {760, 460}}, {6, {1170, 640}}}]TourVideo[i, {<|"Position" -> {243, 650}, "Width" -> 100|>, <|"Position" -> {760, 460}, "Width" -> 300|>, <|"Position" -> {1170, 640}, "Width" -> 200|>}]TourVideo[i, {{0, <|"Position" -> {243, 650}, "Width" -> 100|>}, {2, <|"Position" -> {760, 460}, "Width" -> 300|>}, {6, <|"Position" -> {1170, 640}, "Width" -> 200|>}}]TourVideo[i, {Rectangle[{200, 600}, {400, 700}], Rectangle[{700, 400}, {900, 500}], Rectangle[{1000, 600}, {1200, 700}]}]TourVideo[i, {{0, Rectangle[{200, 600}, {400, 700}]}, {1, Rectangle[{700, 400}, {900, 500}]}, {5, Rectangle[{1000, 600}, {1200, 700}]}}]path[time_] := 400 + {time * 100, 100 * Sin[2 * time]}TourVideo[i, path]pathAssoc[time_] :=
<|"Position" -> 400 + {time * 100, 100 * Sin[2 * time]}, "Width" -> 200 + 100Cos[time]|>TourVideo[i, pathAssoc]pathRectangle[time_] := With[{pos = 400 + {time * 100, 100 * Sin[2 * time]}},
Rectangle[pos - {100, 50}, pos + {100, 50}]]TourVideo[i, pathRectangle]GeoDiskを使ってツアーを指定する:
TourVideo[GeoGraphics[], {GeoDisk[Entity["City", {"Munich", "Bavaria", "Germany"}], Quantity[100, "Kilometers"]], GeoDisk[Entity["City", {"Wurzburg", "Bavaria", "Germany"}], Quantity[200, "Kilometers"]]}]TourVideo[GeoGraphics[], {<|"Position" -> Entity["City", {"Munich", "Bavaria", "Germany"}], "Width" -> Quantity[100, "Kilometers"]|>, <|"Position" -> Entity["City", {"Wurzburg", "Bavaria", "Germany"}], "Width" -> Quantity[200, "Kilometers"]|>}]TourVideo[GeoGraphics[Entity["Country", "Italy"]], GeoPosition[{41.9 + #, 12.5}]&]アプリケーション (5)
TourVideo[
ExampleData[{"TestImage", "Volubilis"}],
{
<|"Position" -> {480, 1750}, "Time" -> 1, "Width" -> 600|>,
<|"Position" -> {2700, 1830}, "Time" -> 2, "Width" -> 400|>,
<|"Position" -> {2700, 1830}, "Time" -> 3, "Width" -> 400|>,
<|"Position" -> {8130, 2200}, "Time" -> 5, "Width" -> 800|>,
<|"Position" -> {8130, 2200}, "Time" -> 7, "Width" -> 800|>
}]image = [image];faces = FindFaces[image, {"Position", "BoundingBox"}, PaddingSize -> 20];
faces = faces[[Last@FindShortestTour[faces[[All, "Position"]]]]];HighlightImage[image, faces[[All, "BoundingBox"]]]TourVideo[image, faces[[All, "BoundingBox"]], DefaultDuration -> Length@faces]Graphics[italy = Entity["Country", "Italy"][EntityProperty["Country", "Polygon"]]]pts = ArrayResample[italy[[1, 1, 1]], 50, Resampling -> "Nearest"];
Short[pts]TourVideo[Graphics[italy], Table[<|"Position" -> p, "Width" -> 7|>, {p, Reverse /@ pts}], FrameRate -> 10, RasterSize -> 250]ImageBoundingBoxes[[image], Entity["Concept", "Elephant::72b52"] | Entity["Concept", "Zebra::nx5qr"]]TourVideo[[image], ArrayPad[%, 1, Full]]path = time |-> With[{t = 10 - 2time}, <|"Position" -> {400, 210} + {18, 10} t {Cos[t], Sin[t]}, "Width" -> 60 + 25t|>];ParametricPlot[path[t]["Position"], {t, 0, 5}]i = [image];
HighlightImage[i, ParametricPlot[path[t]["Position"], {t, 0, 5}, {PlotStyle -> Directive[Thick, Yellow]}]]TourVideo[i, path]関連するガイド
-
▪
- 動画作成 ▪
- 動画計算機能の更新履歴 ▪
- 動画処理
テキスト
Wolfram Research (2021), TourVideo, Wolfram言語関数, https://reference.wolfram.com/language/ref/TourVideo.html (2025年に更新).
CMS
Wolfram Language. 2021. "TourVideo." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/TourVideo.html.
APA
Wolfram Language. (2021). TourVideo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TourVideo.html
BibTeX
@misc{reference.wolfram_2026_tourvideo, author="Wolfram Research", title="{TourVideo}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/TourVideo.html}", note=[Accessed: 27-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_tourvideo, organization={Wolfram Research}, title={TourVideo}, year={2025}, url={https://reference.wolfram.com/language/ref/TourVideo.html}, note=[Accessed: 27-September-2026]}