Add calcOpticalFlowPyrLK() wrapper for 2.31 code support (Bug #1880)


Added by Joel Mckay almost 13 years ago. Updated over 12 years ago.


Status:Cancelled Start date:2012-05-02
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:imgproc, video
Target version:- Estimated time:0.10 hour
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

In OpenCV 2.4

calcOpticalFlowPyrLK(opticalFlowTrackerImgOldGrayMat, opticalFlowTrackerImgGrayMat,
    LKpoints[0], LKpoints[1], status, err, winSize, 3, termcrit, 0, LKSHIFT_TRACKER_ERROR_RATE );

In OpenCV 2.3.1

calcOpticalFlowPyrLK(opticalFlowTrackerImgOldGrayMat, opticalFlowTrackerImgGrayMat, 
    LKpoints[0], LKpoints[1], status, err, winSize, 3, termcrit, 0.5, 0, LKSHIFT_TRACKER_ERROR_RATE);

Please add compatibility wrapper to prevent passing of incorrect params in older program code.

Cheers,
J


Associated revisions

Revision d83094b4
Added by Andrey Pavlenko over 11 years ago

Merge pull request #1880 from ilya-lavrenov:tapi_cvtColor

History

Updated by Andrey Kamaev almost 13 years ago

  • Description changed from In OpenCV 2.4 calcOpticalFlowPyrLK(opticalFlowTrackerImgOldGrayMat, opt... to In OpenCV 2.4 <pre> calcOpticalFlowPyrLK(opticalFlowTrackerImgOldGrayM... More

Updated by Vadim Pisarevsky over 12 years ago

sorry, it was indeed a dangerous change, but I do not see an easy way to roll it back. Introducing a new function will not help either, because in most cases compiler won't be able to figure out which function you intend to use => a lot of new code will break too.

  • Status changed from Open to Cancelled

Also available in: Atom PDF