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
76ee8380
Commit
76ee8380
authored
May 20, 2016
by
Vladislav Samsonov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Boosted accuracy
parent
65d01574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
pcaflow.cpp
modules/optflow/src/pcaflow.cpp
+5
-5
No files found.
modules/optflow/src/pcaflow.cpp
View file @
76ee8380
...
@@ -261,7 +261,7 @@ void OpticalFlowPCAFlow::getSystem( OutputArray AOut, OutputArray b1Out, OutputA
...
@@ -261,7 +261,7 @@ void OpticalFlowPCAFlow::getSystem( OutputArray AOut, OutputArray b1Out, OutputA
static
void
applyCLAHE
(
Mat
&
img
)
static
void
applyCLAHE
(
Mat
&
img
)
{
{
Ptr
<
CLAHE
>
clahe
=
createCLAHE
();
Ptr
<
CLAHE
>
clahe
=
createCLAHE
();
clahe
->
setClipLimit
(
8
);
clahe
->
setClipLimit
(
14
);
clahe
->
apply
(
img
,
img
);
clahe
->
apply
(
img
,
img
);
}
}
...
@@ -325,8 +325,8 @@ void OpticalFlowPCAFlow::calc( InputArray I0, InputArray I1, InputOutputArray fl
...
@@ -325,8 +325,8 @@ void OpticalFlowPCAFlow::calc( InputArray I0, InputArray I1, InputOutputArray fl
CV_Assert
(
from
.
channels
()
==
1
);
CV_Assert
(
from
.
channels
()
==
1
);
CV_Assert
(
to
.
channels
()
==
1
);
CV_Assert
(
to
.
channels
()
==
1
);
//
applyCLAHE(from);
applyCLAHE
(
from
);
//
applyCLAHE(to);
applyCLAHE
(
to
);
std
::
vector
<
Point2f
>
features
,
predictedFeatures
;
std
::
vector
<
Point2f
>
features
,
predictedFeatures
;
findSparseFeatures
(
from
,
to
,
features
,
predictedFeatures
);
findSparseFeatures
(
from
,
to
,
features
,
predictedFeatures
);
...
@@ -345,8 +345,8 @@ void OpticalFlowPCAFlow::calc( InputArray I0, InputArray I1, InputOutputArray fl
...
@@ -345,8 +345,8 @@ void OpticalFlowPCAFlow::calc( InputArray I0, InputArray I1, InputOutputArray fl
getSystem
(
A
,
b1
,
b2
,
features
,
predictedFeatures
,
size
);
getSystem
(
A
,
b1
,
b2
,
features
,
predictedFeatures
,
size
);
// solve( A1, b1, w1, DECOMP_CHOLESKY | DECOMP_NORMAL );
// solve( A1, b1, w1, DECOMP_CHOLESKY | DECOMP_NORMAL );
// solve( A2, b2, w2, DECOMP_CHOLESKY | DECOMP_NORMAL );
// solve( A2, b2, w2, DECOMP_CHOLESKY | DECOMP_NORMAL );
solveLSQR
(
A
,
b1
,
w1
,
2
);
solveLSQR
(
A
,
b1
,
w1
,
0.00002
*
size
.
area
()
);
solveLSQR
(
A
,
b2
,
w2
,
2
);
solveLSQR
(
A
,
b2
,
w2
,
0.00002
*
size
.
area
()
);
Mat
flowSmall
(
basisSize
*
16
,
CV_32FC2
);
Mat
flowSmall
(
basisSize
*
16
,
CV_32FC2
);
reduceToFlow
(
w1
,
w2
,
flowSmall
,
basisSize
);
reduceToFlow
(
w1
,
w2
,
flowSmall
,
basisSize
);
resize
(
flowSmall
,
flow
,
size
,
0
,
0
,
INTER_LINEAR
);
resize
(
flowSmall
,
flow
,
size
,
0
,
0
,
INTER_LINEAR
);
...
...
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