sudheerachary / Mesh-Flow-Video-Stabilization

Online video stabilization using a novel MeshFlow motion model
312 stars 65 forks source link

Camera path #6

Open NatalyaSlepkova opened 5 years ago

NatalyaSlepkova commented 5 years ago

Thank you for your code. In your README you demonstrate plot of path's original video and stabilized. How do you get this paths? I thought that it's path of frame's center - x. So x' = H*x, where H is matrix homography and (x'[0] / x'[2], x'[1] / x'[2]) is new coordinates (x, y) of center next frame. But I get very strange plot. Could you explain me my mistake, please?

sudheerachary commented 5 years ago

Thanks for your interest, As in the paper, not just a single camera path is computed for the whole frame, it is computed for each mesh in a frame. Motion vectors are computed for each mesh in a frame and are accumulated temporally, then using optimization module it smoothens camera path.

NatalyaSlepkova commented 5 years ago

https://github.com/sudheerachary/Mesh-Flow-Video-Stabilization/raw/master/results/paths/0_30.png Yes, I understand. But how do you get this plot?