Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
cb3b2095
Commit
cb3b2095
authored
Jul 13, 2016
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #722 from sbokov:deepflow_acceleration
parents
a996bcff
659efc58
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
deepflow.cpp
modules/optflow/src/deepflow.cpp
+0
-0
variational_refinement.cpp
modules/optflow/src/variational_refinement.cpp
+6
-4
No files found.
modules/optflow/src/deepflow.cpp
View file @
cb3b2095
This diff is collapsed.
Click to expand it.
modules/optflow/src/variational_refinement.cpp
View file @
cb3b2095
...
...
@@ -1074,9 +1074,10 @@ void VariationalRefinementImpl::RedBlackSOR_ParBody::operator()(const Range &ran
void
VariationalRefinementImpl
::
calc
(
InputArray
I0
,
InputArray
I1
,
InputOutputArray
flow
)
{
CV_Assert
(
!
I0
.
empty
()
&&
I0
.
depth
()
==
CV_8U
&&
I0
.
channels
()
==
1
);
CV_Assert
(
!
I1
.
empty
()
&&
I1
.
depth
()
==
CV_8U
&&
I1
.
channels
()
==
1
);
CV_Assert
(
!
I0
.
empty
()
&&
I0
.
channels
()
==
1
);
CV_Assert
(
!
I1
.
empty
()
&&
I1
.
channels
()
==
1
);
CV_Assert
(
I0
.
sameSize
(
I1
));
CV_Assert
((
I0
.
depth
()
==
CV_8U
&&
I1
.
depth
()
==
CV_8U
)
||
(
I0
.
depth
()
==
CV_32F
&&
I1
.
depth
()
==
CV_32F
));
CV_Assert
(
!
flow
.
empty
()
&&
flow
.
depth
()
==
CV_32F
&&
flow
.
channels
()
==
2
);
CV_Assert
(
I0
.
sameSize
(
flow
));
...
...
@@ -1089,9 +1090,10 @@ void VariationalRefinementImpl::calc(InputArray I0, InputArray I1, InputOutputAr
void
VariationalRefinementImpl
::
calcUV
(
InputArray
I0
,
InputArray
I1
,
InputOutputArray
flow_u
,
InputOutputArray
flow_v
)
{
CV_Assert
(
!
I0
.
empty
()
&&
I0
.
depth
()
==
CV_8U
&&
I0
.
channels
()
==
1
);
CV_Assert
(
!
I1
.
empty
()
&&
I1
.
depth
()
==
CV_8U
&&
I1
.
channels
()
==
1
);
CV_Assert
(
!
I0
.
empty
()
&&
I0
.
channels
()
==
1
);
CV_Assert
(
!
I1
.
empty
()
&&
I1
.
channels
()
==
1
);
CV_Assert
(
I0
.
sameSize
(
I1
));
CV_Assert
((
I0
.
depth
()
==
CV_8U
&&
I1
.
depth
()
==
CV_8U
)
||
(
I0
.
depth
()
==
CV_32F
&&
I1
.
depth
()
==
CV_32F
));
CV_Assert
(
!
flow_u
.
empty
()
&&
flow_u
.
depth
()
==
CV_32F
&&
flow_u
.
channels
()
==
1
);
CV_Assert
(
!
flow_v
.
empty
()
&&
flow_v
.
depth
()
==
CV_32F
&&
flow_v
.
channels
()
==
1
);
CV_Assert
(
I0
.
sameSize
(
flow_u
));
...
...
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