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
eb6c5986
Commit
eb6c5986
authored
Jul 07, 2014
by
Ernest Galbrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed nullptr to NULL to avoid c++11 (failed to build on linux)
replaces tabs with spaces
parent
062e1cbe
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
cudaoptflow.hpp
modules/cudaoptflow/include/opencv2/cudaoptflow.hpp
+0
-0
tvl1flow.cpp
modules/cudaoptflow/src/tvl1flow.cpp
+0
-0
motion_analysis_and_object_tracking.rst
modules/video/doc/motion_analysis_and_object_tracking.rst
+1
-1
tvl1flow.cpp
modules/video/src/tvl1flow.cpp
+7
-7
No files found.
modules/cudaoptflow/include/opencv2/cudaoptflow.hpp
View file @
eb6c5986
modules/cudaoptflow/src/tvl1flow.cpp
View file @
eb6c5986
modules/video/doc/motion_analysis_and_object_tracking.rst
View file @
eb6c5986
...
...
@@ -1082,7 +1082,7 @@ createOptFlow_DualTVL1
.. ocv:member:: double gamma
parameter used for motion estimation. It adds a variable allowing for illumination variations
Set this parameter to 1
.
if you have varying illumination.
Set this parameter to 1 if you have varying illumination.
See: [Chambolle2011]_
...
...
modules/video/src/tvl1flow.cpp
View file @
eb6c5986
...
...
@@ -951,13 +951,13 @@ void EstimateVBody::operator() (const Range& range) const
const
float
*
I1wyRow
=
I1wy
[
y
];
const
float
*
u1Row
=
u1
[
y
];
const
float
*
u2Row
=
u2
[
y
];
const
float
*
u3Row
=
use_gamma
?
u3
[
y
]
:
nullptr
;
const
float
*
u3Row
=
use_gamma
?
u3
[
y
]
:
NULL
;
const
float
*
gradRow
=
grad
[
y
];
const
float
*
rhoRow
=
rho_c
[
y
];
float
*
v1Row
=
v1
[
y
];
float
*
v2Row
=
v2
[
y
];
float
*
v3Row
=
use_gamma
?
v3
[
y
]
:
nullptr
;
float
*
v3Row
=
use_gamma
?
v3
[
y
]
:
NULL
;
for
(
int
x
=
0
;
x
<
I1wx
.
cols
;
++
x
)
{
...
...
@@ -1041,14 +1041,14 @@ float estimateU(const Mat_<float>& v1, const Mat_<float>& v2, const Mat_<float>&
{
const
float
*
v1Row
=
v1
[
y
];
const
float
*
v2Row
=
v2
[
y
];
const
float
*
v3Row
=
use_gamma
?
v3
[
y
]
:
nullptr
;
const
float
*
v3Row
=
use_gamma
?
v3
[
y
]
:
NULL
;
const
float
*
divP1Row
=
div_p1
[
y
];
const
float
*
divP2Row
=
div_p2
[
y
];
const
float
*
divP3Row
=
use_gamma
?
div_p3
[
y
]
:
nullptr
;
const
float
*
divP3Row
=
use_gamma
?
div_p3
[
y
]
:
NULL
;
float
*
u1Row
=
u1
[
y
];
float
*
u2Row
=
u2
[
y
];
float
*
u3Row
=
use_gamma
?
u3
[
y
]
:
nullptr
;
float
*
u3Row
=
use_gamma
?
u3
[
y
]
:
NULL
;
for
(
int
x
=
0
;
x
<
v1
.
cols
;
++
x
)
...
...
@@ -1333,7 +1333,7 @@ void OpticalFlowDual_TVL1::procOneScale(const Mat_<float>& I0, const Mat_<float>
for
(
int
n_inner
=
0
;
error
>
scaledEpsilon
&&
n_inner
<
innerIterations
;
++
n_inner
)
{
// estimate the values of the variable (v1, v2) (thresholding operator TH)
estimateV
(
I1wx
,
I1wy
,
u1
,
u2
,
u3
,
grad
,
rho_c
,
v1
,
v2
,
v3
,
l_t
,
gamma
);
estimateV
(
I1wx
,
I1wy
,
u1
,
u2
,
u3
,
grad
,
rho_c
,
v1
,
v2
,
v3
,
l_t
,
static_cast
<
float
>
(
gamma
)
);
// compute the divergence of the dual variable (p1, p2, p3)
divergence
(
p11
,
p12
,
div_p1
);
...
...
@@ -1341,7 +1341,7 @@ void OpticalFlowDual_TVL1::procOneScale(const Mat_<float>& I0, const Mat_<float>
if
(
use_gamma
)
divergence
(
p31
,
p32
,
div_p3
);
// estimate the values of the optical flow (u1, u2)
error
=
estimateU
(
v1
,
v2
,
v3
,
div_p1
,
div_p2
,
div_p3
,
u1
,
u2
,
u3
,
static_cast
<
float
>
(
theta
),
gamma
);
error
=
estimateU
(
v1
,
v2
,
v3
,
div_p1
,
div_p2
,
div_p3
,
u1
,
u2
,
u3
,
static_cast
<
float
>
(
theta
),
static_cast
<
float
>
(
gamma
)
);
// compute the gradient of the optical flow (Du1, Du2)
forwardGradient
(
u1
,
u1x
,
u1y
);
...
...
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