Ask Your Question
1

optical flow state of art in version 2.4.2

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

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
1

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

AlexanderShishkov gravatar image

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

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

edit flag offensive delete link more

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 ( 2012-07-17 19:01:00 -0600 )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 ( 2012-07-17 19:08:14 -0600 )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 -0600 )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 ( 2012-07-18 05:37:23 -0600 )edit

Question Tools

Stats

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

Seen: 795 times

Last updated: Jul 17 '12