开发者

warping images and problem with the matrix of Homography opencv

I have a problem when I'm getting the results of using the function cvFindHomograhpy().

The results it gives negative coordinates, I will explain now what I'm doing.

I'm working on video stabilization by using optical flow method. I have estimated the location of the features in the first and second frame. Now, my aim is to warp the images in order to stabilize the images. Before this step I should calculate the homography matrix between the frames which I used the function m开发者_运维技巧entioned above but the problem that I'm getting this results which it doesn't seem to be realistic because it has negative values and these values can be changed to more weird results.

0.482982            53.5034         -0.100254              
-0.000865877        63.6554         -0.000213824 
-0.0901095            0.301558        1

After obtaining these results I get a problem to apply for image Warping by using CvWarpPerspective(). The error shows that there is a problem with using the matrices. Incorrect transforming from "cvarrTomat"?

So where is the problem? Can you give me another suggestion if it's available?

Notice: if you can help me about implementing the warping in c++ it would be great.

Thank you


A poor homography estimation can generate warping error inside CvWarpPerspective(). The homography values you have posted show that you have a full projective transformation that move points at infinity to points in 2d euclidean plane and it could be wrong. In video stabilization to compute a good homography model usually other features are used such as harris corner, hessian affine or SIFT/SURF combined with a robust model estimator such as RANSAC or LMEDS.

Check out this link for a matlab example on video stabilization...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜