opticalFlowRAFT
説明
opticalFlowRAFT オブジェクトを使用して、recurrent all-pairs field transforms (RAFT) アルゴリズムにより、前のビデオ フレームと現在のビデオ フレームの間で動きの方向と速度を推定します。このアルゴリズムは、Kubric [3] データセットで学習させた深層学習ネットワークを使用します。RAFT オプティカル フロー推定アルゴリズムは、特にテクスチャが乏しい領域や、動きによるブレがある領域、カメラの複雑な動きがある領域で高い精度を実現するもので、Farneback などのアプローチよりも優れています。高密度 (ピクセル単位) かつ高精度な推定値を提供しますが、より多くの時間とメモリが必要になります。精度を落としてより高速に高密度オプティカル フロー推定を行う場合は、深層学習に依存しない従来のビジョン アルゴリズムである opticalFlowFarneback を選択します。
メモ
この機能には、Deep Learning Toolbox™ と Computer Vision Toolbox™ Model for RAFT Optical Flow Estimation が必要です。Computer Vision Toolbox Model for RAFT Optical Flow Estimation はアドオン エクスプローラーからインストールできます。アドオンのインストールの詳細については、アドオンの入手と管理を参照してください。
作成
説明
flowModel = opticalFlowRAFT は、前のビデオ フレームと現在のビデオ フレームの間で動きの方向と速度を推定するオプティカル フロー オブジェクトを返します。
オブジェクト関数
estimateFlow | Estimate optical flow between two frames |
reset | Reset the internal state of the optical flow estimation object |
例
参照
[1] Teed, Zachary, and Jia Deng. RAFT: Recurrent All-Pairs Field Transforms for Optical Flow. Proceedings of the 16th European Conference on Computer Vision. 2020.
[2] Shah, Neelay, Prajnan Goswami, and Huaizu Jiang. EzFlow: A modular PyTorch library for optical flow estimation using neural networks. 2021. Web. https://github.com/neu-vi/ezflow.
[3] Greff, Klaus, Francois Belletti, Lucas Beyer, Carl Doersch, Yilun Du, Daniel Duckworth, David J. Fleet et al. Kubric: A scalable dataset generator. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 3749-3761. 2022.
バージョン履歴
R2024b で導入
