Ask Your Question
1

optical flow state of art in version 2.4.2

asked Jul 18 '12

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Jul 18 '12

AlexanderShishkov gravatar image

updated Jul 18 '12

This method is still availabale in legacy module: http://docs.opencv.org/modules/legacy/doc/motion_analysis.html

Preview: (hide)

Comments

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 (Jul 18 '12)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: code.opencv.org. If it pick up many votes, we will implement it. But now we are not planning to implement it.

AlexanderShishkov gravatar imageAlexanderShishkov (Jul 18 '12)edit

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

nkint gravatar imagenkint (Jul 18 '12)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: http://docs.opencv.org/opencv_cheatsheet.pdf

AlexanderShishkov gravatar imageAlexanderShishkov (Jul 18 '12)edit

Question Tools

Stats

Asked: Jul 18 '12

Seen: 862 times

Last updated: Jul 17 '12