简体   繁体   中英

Image Stabilization optical flow

I'm working on a image stabilization by using optical flow. The algorithm that I've used is like this; first of all I have found good features to track in OpenCv "cvGoodFeaturesToTrack" and then I've estimated the optical flow by using this function for OpenCv as well "cvCalcOpticalFlowPyrLK". Now I want to stabilize the video sequence, which I think I need to take the average of the optical flow vectors. I'm working on a real time application so I can't use either SIFT or SURF. The problem that I don't know how take the average. Can anyone show me what to do?

Regards

You don't need to average anything. Optical flow will return the position of the "good features to track" in the second image. Transform the second image so that these features coincide with the features on the first image (use GetPerspectiveTransform).

I'll probably write an article on this soon on my website http://aishack.in/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM