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
a877ecdc
Commit
a877ecdc
authored
May 16, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added option to pass pre-computed pyramid to piramidal LK optical flow #1321
parent
f620f1ce
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
utils.cpp
modules/imgproc/src/utils.cpp
+10
-3
perf_optflowpyrlk.cpp
modules/video/perf/perf_optflowpyrlk.cpp
+2
-2
lkpyramid.cpp
modules/video/src/lkpyramid.cpp
+0
-0
No files found.
modules/imgproc/src/utils.cpp
View file @
a877ecdc
...
...
@@ -203,9 +203,6 @@ void cv::copyMakeBorder( InputArray _src, OutputArray _dst, int top, int bottom,
Mat
src
=
_src
.
getMat
();
CV_Assert
(
top
>=
0
&&
bottom
>=
0
&&
left
>=
0
&&
right
>=
0
);
_dst
.
create
(
src
.
rows
+
top
+
bottom
,
src
.
cols
+
left
+
right
,
src
.
type
()
);
Mat
dst
=
_dst
.
getMat
();
if
(
src
.
isSubmatrix
()
&&
(
borderType
&
BORDER_ISOLATED
)
==
0
)
{
Size
wholeSize
;
...
...
@@ -221,6 +218,16 @@ void cv::copyMakeBorder( InputArray _src, OutputArray _dst, int top, int bottom,
bottom
-=
dbottom
;
right
-=
dright
;
}
_dst
.
create
(
src
.
rows
+
top
+
bottom
,
src
.
cols
+
left
+
right
,
src
.
type
()
);
Mat
dst
=
_dst
.
getMat
();
if
(
top
==
0
&&
left
==
0
&&
bottom
==
0
&&
right
==
0
)
{
if
(
src
.
data
!=
dst
.
data
)
src
.
copyTo
(
dst
);
return
;
}
borderType
&=
~
BORDER_ISOLATED
;
...
...
modules/video/perf/perf_optflowpyrlk.cpp
View file @
a877ecdc
...
...
@@ -33,7 +33,7 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize, OpticalFlowPyrLK, testing::Combine(
testing
::
Range
(
0
,
3
),
testing
::
Values
(
1
,
3
,
4
),
testing
::
Values
(
make_tuple
(
9
,
9
),
make_tuple
(
15
,
15
)),
testing
::
Values
(
11
,
21
,
25
)
testing
::
Values
(
7
,
11
,
21
,
25
)
)
)
{
...
...
@@ -49,7 +49,7 @@ PERF_TEST_P(Path_Idx_Cn_NPoints_WSize, OpticalFlowPyrLK, testing::Combine(
int
nPointsY
=
min
(
get
<
1
>
(
get
<
3
>
(
GetParam
())),
img1
.
rows
);
int
winSize
=
get
<
4
>
(
GetParam
());
int
maxLevel
=
2
;
TermCriteria
criteria
(
CV_TERMCRIT_ITER
|
CV_TERMCRIT_EPS
,
5
,
0.
01
);
TermCriteria
criteria
(
CV_TERMCRIT_ITER
|
CV_TERMCRIT_EPS
,
7
,
0.0
01
);
int
flags
=
0
;
double
minEigThreshold
=
1e-4
;
...
...
modules/video/src/lkpyramid.cpp
View file @
a877ecdc
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