pyflow icon indicating copy to clipboard operation
pyflow copied to clipboard

Warping different image using OpticalFlow

Open CJHFUTURE opened this issue 7 years ago • 2 comments

Hi, I'm just wondering if you think I could modify this to calculate the optical flow for 2 images(As it currently does) but warp a third image of my choosing, instead of the first image(as it currently does)?

Thanks in advance.

CJHFUTURE avatar Mar 04 '18 13:03 CJHFUTURE

I have the same question, and this seems like a very common use case. Could you please share what can be done?

juliohm avatar Mar 09 '18 17:03 juliohm

Nevermind, I found this example in opencv, the function warp_flow should do the job: https://github.com/opencv/opencv/blob/master/samples/python/opt_flow.py#L50-L56

Will try it later, may also switch to the Farneback method implemented therein.

juliohm avatar Mar 09 '18 18:03 juliohm