dense optical flow
-
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow 돌려보기영상처리/3D computer vision 2023. 10. 30. 20:56
RAFT를 이용해 dense optical flow를 계산해보고자 한다. 아래와 같이, torchvision.models.optical_flow로부터 이미 train된 raft 모델을 가져와, image와 optical flow를 overlay 해보 았다. import numpy as np import torch import matplotlib.pyplot as plt import torchvision.transforms.functional as F import torchvision.transforms as T import cv2 from torchvision.models.optical_flow import raft_small from torchvision.models.optical_flow import..
-
Dense Optical Flow algorithm 비교 (open cv)영상처리/3D computer vision 2023. 10. 15. 01:08
dense optical flow algorithm 중, opencv에서 사용 가능한 것들끼리 비교하고자 하였다. *비교 코드는 아래 사이트를 참조하였다. https://gist.github.com/FingerRec/eba088d6d7a50e17c875d74684ec2849 opencv optical_flow> opencv optical_flow>. GitHub Gist: instantly share code, notes, and snippets. gist.github.com 실험에 아래의 두 이미지를 사용하였다. 위의 결과에서, Deep Flow가 가장 합리적인 결과를 보여주었다. # coding: utf-8 import numpy as np import cv2 import time import mat..