cvCalcOpticalFlowPyrLK in OpenCV 2.3 (Bug #1629)


Added by Qingsong Wu about 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-02-28
Priority:Normal Due date:
Assignee:Marina Kolpakova % Done:

0%

Category:core
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

In file modules/video/src/lkpyramid.cpp, line 1072, inside function cvCalcOpticalFlowPyrLK(), its C++ version is called with a wrong input parameter.

The declaration of cv::calcOpticalFLowPyrLK() is

1void cv::calcOpticalFlowPyrLK( InputArray _prevImg, InputArray _nextImg,
2                           InputArray _prevPts, InputOutputArray _nextPts,
3                           OutputArray _status, OutputArray _err,
4                           Size winSize, int maxLevel,
5                           TermCriteria criteria,
6                           double derivLambda,
7                           int flags, double minEigThreshold )

while inside cvCalcOpticalFlowPyrLK(), it is called:
1cv::calcOpticalFlowPyrLK( A, B, ptA, ptB, status ? cv::_OutputArray(st) : cv::_OutputArray(),
2                              error ? cv::_OutputArray(err) : cv::_OutputArray(),
3                              winSize, level, criteria, flags);

The 10th parameter is replaced by "int flags", which is actually "double derivLamba".


Associated revisions

Revision e50c0ed4
Added by Marina Kolpakova almost 13 years ago

Fixed bug #1629

Revision 33429208
Added by Roman Donchenko over 11 years ago

Merge pull request #1629 from lluisgomez:er_tree_clean_bug_fix

History

Updated by Aniket Handa almost 13 years ago

Please look at patch at http://code.opencv.org/issues/1696

Updated by Marina Kolpakova almost 13 years ago

  • Description changed from In file modules/video/src/lkpyramid.cpp, line 1072, inside function cvCalcOpt... to In file modules/video/src/lkpyramid.cpp, line 1072, inside function cvCalcOpt... More

Updated by Marina Kolpakova almost 13 years ago

Thanks for reporting!

  • Status changed from Open to Done
  • Target version set to 2.4.0
  • Assignee set to Marina Kolpakova

Also available in: Atom PDF