mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
37 lines
935 B
C++
37 lines
935 B
C++
#pragma once
|
|
|
|
namespace cv
|
|
{
|
|
namespace detail
|
|
{
|
|
|
|
typedef short deriv_type;
|
|
|
|
struct LKTrackerInvoker : ParallelLoopBody
|
|
{
|
|
LKTrackerInvoker( const Mat& _prevImg, const Mat& _prevDeriv, const Mat& _nextImg,
|
|
const Point2f* _prevPts, Point2f* _nextPts,
|
|
uchar* _status, float* _err,
|
|
Size _winSize, TermCriteria _criteria,
|
|
int _level, int _maxLevel, int _flags, float _minEigThreshold );
|
|
|
|
void operator()(const Range& range) const;
|
|
|
|
const Mat* prevImg;
|
|
const Mat* nextImg;
|
|
const Mat* prevDeriv;
|
|
const Point2f* prevPts;
|
|
Point2f* nextPts;
|
|
uchar* status;
|
|
float* err;
|
|
Size winSize;
|
|
TermCriteria criteria;
|
|
int level;
|
|
int maxLevel;
|
|
int flags;
|
|
float minEigThreshold;
|
|
};
|
|
|
|
}// namespace detail
|
|
}// namespace cv
|