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
4bd55c6f
Commit
4bd55c6f
authored
Jul 04, 2014
by
Ernest Galbrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added comments and reference for Chambolle paper
parent
693c4e57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
cudaoptflow.hpp
modules/cudaoptflow/include/opencv2/cudaoptflow.hpp
+4
-1
tvl1flow.cpp
modules/video/src/tvl1flow.cpp
+3
-3
No files found.
modules/cudaoptflow/include/opencv2/cudaoptflow.hpp
View file @
4bd55c6f
...
...
@@ -213,7 +213,10 @@ public:
double
gamma
;
/**
* parameter for robustness
* parameter used for motion estimation. It adds a variable allowing for illumination variations
* Set this parameter to 1. if you have varying illumination.
* See: Chambolle et al, A First-Order Primal-Dual Algorithm for Convex Problems with Applications to Imaging
* Journal of Mathematical imaging and vision, may 2011 Vol 40 issue 1, pp 120-145
*/
double
theta
;
...
...
modules/video/src/tvl1flow.cpp
View file @
4bd55c6f
...
...
@@ -100,7 +100,7 @@ protected:
double
tau
;
double
lambda
;
double
theta
;
double
gamma
;
double
gamma
;
int
nscales
;
int
warps
;
double
epsilon
;
...
...
@@ -1320,7 +1320,7 @@ void OpticalFlowDual_TVL1::procOneScale(const Mat_<float>& I0, const Mat_<float>
remap
(
I1
,
I1w
,
flowMap1
,
flowMap2
,
INTER_CUBIC
);
remap
(
I1x
,
I1wx
,
flowMap1
,
flowMap2
,
INTER_CUBIC
);
remap
(
I1y
,
I1wy
,
flowMap1
,
flowMap2
,
INTER_CUBIC
);
//calculate I1(x+u0) and its gradient
//calculate I1(x+u0) and its gradient
calcGradRho
(
I0
,
I1w
,
I1wx
,
I1wy
,
u1
,
u2
,
grad
,
rho_c
);
float
error
=
std
::
numeric_limits
<
float
>::
max
();
...
...
@@ -1440,7 +1440,7 @@ CV_INIT_ALGORITHM(OpticalFlowDual_TVL1, "DenseOpticalFlow.DualTVL1",
obj
.
info
()
->
addParam
(
obj
,
"outerIterations"
,
obj
.
outerIterations
,
false
,
0
,
0
,
"outer iterations (number of inner loops) used in the numerical scheme"
);
obj
.
info
()
->
addParam
(
obj
,
"gamma"
,
obj
.
gamma
,
false
,
0
,
0
,
"coefficient for additional
Ali
term"
);
"coefficient for additional
illumination variation
term"
);
obj
.
info
()
->
addParam
(
obj
,
"useInitialFlow"
,
obj
.
useInitialFlow
))
}
// namespace
...
...
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