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
be4312ec
Commit
be4312ec
authored
Jan 27, 2016
by
alcinos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap DenseOptFlow class around Farneback optical flow computation
parent
347ffbb0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
2 deletions
+42
-2
farneback.cpp
modules/cudaoptflow/src/farneback.cpp
+2
-2
tracking.hpp
modules/video/include/opencv2/video/tracking.hpp
+40
-0
optflowgf.cpp
modules/video/src/optflowgf.cpp
+0
-0
No files found.
modules/cudaoptflow/src/farneback.cpp
View file @
be4312ec
...
...
@@ -93,7 +93,7 @@ namespace cv { namespace cuda { namespace device { namespace optflow_farneback
namespace
{
class
FarnebackOpticalFlowImpl
:
public
FarnebackOpticalFlow
class
FarnebackOpticalFlowImpl
:
public
cv
::
cuda
::
FarnebackOpticalFlow
{
public
:
FarnebackOpticalFlowImpl
(
int
numLevels
,
double
pyrScale
,
bool
fastPyramids
,
int
winSize
,
...
...
@@ -459,7 +459,7 @@ namespace
}
}
Ptr
<
FarnebackOpticalFlow
>
cv
::
cuda
::
FarnebackOpticalFlow
::
create
(
int
numLevels
,
double
pyrScale
,
bool
fastPyramids
,
int
winSize
,
Ptr
<
cv
::
cuda
::
FarnebackOpticalFlow
>
cv
::
cuda
::
FarnebackOpticalFlow
::
create
(
int
numLevels
,
double
pyrScale
,
bool
fastPyramids
,
int
winSize
,
int
numIters
,
int
polyN
,
double
polySigma
,
int
flags
)
{
return
makePtr
<
FarnebackOpticalFlowImpl
>
(
numLevels
,
pyrScale
,
fastPyramids
,
winSize
,
...
...
modules/video/include/opencv2/video/tracking.hpp
View file @
be4312ec
...
...
@@ -508,6 +508,46 @@ public:
*/
CV_EXPORTS_W
Ptr
<
DualTVL1OpticalFlow
>
createOptFlow_DualTVL1
();
/** @brief Class computing a dense optical flow using the Gunnar Farneback’s algorithm.
*/
class
CV_EXPORTS_W
FarnebackOpticalFlow
:
public
DenseOpticalFlow
{
public
:
virtual
int
getNumLevels
()
const
=
0
;
virtual
void
setNumLevels
(
int
numLevels
)
=
0
;
virtual
double
getPyrScale
()
const
=
0
;
virtual
void
setPyrScale
(
double
pyrScale
)
=
0
;
virtual
bool
getFastPyramids
()
const
=
0
;
virtual
void
setFastPyramids
(
bool
fastPyramids
)
=
0
;
virtual
int
getWinSize
()
const
=
0
;
virtual
void
setWinSize
(
int
winSize
)
=
0
;
virtual
int
getNumIters
()
const
=
0
;
virtual
void
setNumIters
(
int
numIters
)
=
0
;
virtual
int
getPolyN
()
const
=
0
;
virtual
void
setPolyN
(
int
polyN
)
=
0
;
virtual
double
getPolySigma
()
const
=
0
;
virtual
void
setPolySigma
(
double
polySigma
)
=
0
;
virtual
int
getFlags
()
const
=
0
;
virtual
void
setFlags
(
int
flags
)
=
0
;
static
Ptr
<
FarnebackOpticalFlow
>
create
(
int
numLevels
=
5
,
double
pyrScale
=
0.5
,
bool
fastPyramids
=
false
,
int
winSize
=
13
,
int
numIters
=
10
,
int
polyN
=
5
,
double
polySigma
=
1.1
,
int
flags
=
0
);
};
//! @} video_track
}
// cv
...
...
modules/video/src/optflowgf.cpp
View file @
be4312ec
This diff is collapsed.
Click to expand it.
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