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
8fa1e756
Commit
8fa1e756
authored
Jun 13, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Jun 13, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #993 from ivan-korolev:fix_videostab_bug_3023
parents
533d4fe0
de4c3f01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
global_motion.cpp
modules/videostab/src/global_motion.cpp
+5
-0
No files found.
modules/videostab/src/global_motion.cpp
View file @
8fa1e756
...
...
@@ -205,6 +205,9 @@ Mat estimateGlobalMotionRobust(
estimateGlobMotionLeastSquaresAffine
};
const
int
npoints
=
static_cast
<
int
>
(
points0
.
size
());
if
(
npoints
<
params
.
size
)
return
Mat
::
eye
(
3
,
3
,
CV_32F
);
const
int
niters
=
static_cast
<
int
>
(
ceil
(
log
(
1
-
params
.
prob
)
/
log
(
1
-
pow
(
1
-
params
.
eps
,
params
.
size
))));
...
...
@@ -300,6 +303,8 @@ PyrLkRobustMotionEstimator::PyrLkRobustMotionEstimator()
Mat
PyrLkRobustMotionEstimator
::
estimate
(
const
Mat
&
frame0
,
const
Mat
&
frame1
)
{
detector_
->
detect
(
frame0
,
keypointsPrev_
);
if
(
keypointsPrev_
.
empty
())
return
Mat
::
eye
(
3
,
3
,
CV_32F
);
pointsPrev_
.
resize
(
keypointsPrev_
.
size
());
for
(
size_t
i
=
0
;
i
<
keypointsPrev_
.
size
();
++
i
)
...
...
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