Ask Your Question

optical flow state of art in version 2.4.2

asked 2012-07-17 18:36:03 -0500

nkint gravatar image

hi, I've just update my opencv at 2.4.2 version.

In documentation i don't see anymore Horn and Schunck algorithm and i'm asking why (i have some snippet that use it).

Then i've read about an excellent method called "Combining Local and Global" that mixes Lucas Kanade and Horn Schnuck and i'm wondering where to find some code of it compatible with opencv, or if it is planned to be released in the next versions.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-07-17 18:41:26 -0500

AlexanderShishkov gravatar image

updated 2012-07-17 18:47:49 -0500

This method is still availabale in legacy module:

edit flag offensive delete link more


sorry i don't accept as right answer 'cause this answer is not properly an answer, i asked why, and also the CLG method..

nkint gravatar imagenkint ( 2012-07-17 19:01:00 -0500 )edit

This method is not so popular as LK, also it doesn't give stable results for some data. About CLG, you should create feature enhacement on our developer site: If it pick up many votes, we will implement it. But now we are not planning to implement it.

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-07-17 19:08:14 -0500 )edit

there isn't a way to use legacy c function with new cv::Mat object, is it?

nkint gravatar imagenkint ( 2012-07-18 05:06:48 -0500 )edit

You can use old functions with converting cv::Mat to IplImage:

//converting IplImage->Mat and Mat->IplImage

IplImage* oldC0 = cvCreateImage(cvSize(320,240),16,1); Mat newC = cvarrToMat(oldC0); IplImage oldC1 = newC

See some examples on C++ cheat-sheet:

AlexanderShishkov gravatar imageAlexanderShishkov ( 2012-07-18 05:37:23 -0500 )edit

Question Tools


Asked: 2012-07-17 18:36:03 -0500

Seen: 694 times

Last updated: Jul 17 '12