vt-vl-lab / FGVC

[ECCV 2020] Flow-edge Guided Video Completion
Other
1.55k stars 263 forks source link

Can we use the cv2.remap to replace get_flowNN color propagation function? #51

Closed JialinKang closed 2 years ago

JialinKang commented 3 years ago

just like this link

JialinKang commented 3 years ago

I just want to use the adjacent frames' optical flow to propagate

gaochen315 commented 2 years ago

Sorry for the late reply.

If a video only contains two frames, then our code is identical to flow warping. However, if a video has more than two frames, you have to CHAIN the flow vectors first, and then pull the color from the known region. In other words, the flow neighbor does not necessarily locate in adjacent frames.

Hope this helps.

If you only have two frames, then If your want to