Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
e50c0ed4
Commit
e50c0ed4
authored
Mar 19, 2012
by
Marina Kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #1629
parent
3228599a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
tracking.hpp
modules/video/include/opencv2/video/tracking.hpp
+0
-1
lkpyramid.cpp
modules/video/src/lkpyramid.cpp
+1
-4
No files found.
modules/video/include/opencv2/video/tracking.hpp
View file @
e50c0ed4
...
...
@@ -322,7 +322,6 @@ CV_EXPORTS_W void calcOpticalFlowPyrLK( InputArray prevImg, InputArray nextImg,
TermCriteria
criteria
=
TermCriteria
(
TermCriteria
::
COUNT
+
TermCriteria
::
EPS
,
30
,
0.01
),
double
derivLambda
=
0.5
,
int
flags
=
0
,
double
minEigThreshold
=
1e-4
);
...
...
modules/video/src/lkpyramid.cpp
View file @
e50c0ed4
...
...
@@ -498,18 +498,15 @@ void cv::calcOpticalFlowPyrLK( InputArray _prevImg, InputArray _nextImg,
OutputArray
_status
,
OutputArray
_err
,
Size
winSize
,
int
maxLevel
,
TermCriteria
criteria
,
double
derivLambda
,
int
flags
,
double
minEigThreshold
)
{
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
tegra
::
calcOpticalFlowPyrLK
(
_prevImg
,
_nextImg
,
_prevPts
,
_nextPts
,
_status
,
_err
,
winSize
,
maxLevel
,
criteria
,
derivLambda
,
flags
,
minEigThreshold
))
if
(
tegra
::
calcOpticalFlowPyrLK
(
_prevImg
,
_nextImg
,
_prevPts
,
_nextPts
,
_status
,
_err
,
winSize
,
maxLevel
,
criteria
,
flags
,
minEigThreshold
))
return
;
#endif
Mat
prevImg
=
_prevImg
.
getMat
(),
nextImg
=
_nextImg
.
getMat
(),
prevPtsMat
=
_prevPts
.
getMat
();
derivLambda
=
std
::
min
(
std
::
max
(
derivLambda
,
0.
),
1.
);
const
int
derivDepth
=
DataType
<
deriv_type
>::
depth
;
CV_Assert
(
derivLambda
>=
0
);
CV_Assert
(
maxLevel
>=
0
&&
winSize
.
width
>
2
&&
winSize
.
height
>
2
);
CV_Assert
(
prevImg
.
size
()
==
nextImg
.
size
()
&&
prevImg
.
type
()
==
nextImg
.
type
()
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment