opticalFlowRAFT
설명
opticalFlowRAFT 객체를 사용하여 RAFT(Recurrent All-pairs Field Transforms) 알고리즘으로 이전 및 현재 비디오 프레임 간의 모션 방향과 속도를 추정합니다. 이 알고리즘은 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는 이전 및 현재 비디오 프레임 간의 모션 방향과 속도를 추정하는 optical flow 객체를 반환합니다.
객체 함수
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에 개발됨
