lmb-freiburg / flownet2

FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks
https://lmb.informatik.uni-freiburg.de/Publications/2017/IMKDB17/
Other
1k stars 318 forks source link

How to get the optical flow value in .flow file? #163

Closed liangxi627 closed 6 years ago

liangxi627 commented 6 years ago

I have generated the .flo files of my dataset through the pre-trained model. How to get the value (u,v) in the .flo file at pixel location (x,y) in the original frame? Please help me~

nikolausmayer commented 6 years ago

C++: flowIO in http://vision.middlebury.edu/flow/code/flow-code/ Python: https://github.com/lmb-freiburg/flownet2/blob/master/scripts/run-flownet.py#L100-L115

The Python code produces NumPy arrays, that should be the easiest option.

nikolausmayer commented 6 years ago

(closed due to inactivity)