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
33f18dd6
Commit
33f18dd6
authored
Feb 26, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
parents
f65010ea
b6767ccc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
9 deletions
+15
-9
pcaflow.cpp
modules/optflow/src/pcaflow.cpp
+4
-2
berlof_invoker.hpp
modules/optflow/src/rlof/berlof_invoker.hpp
+6
-5
sparse_matching_gpc.cpp
modules/optflow/src/sparse_matching_gpc.cpp
+3
-1
CMakeLists.txt
modules/sfm/CMakeLists.txt
+1
-0
nRobustViewMatching.cc
...c/libmv_light/libmv/correspondence/nRobustViewMatching.cc
+1
-1
No files found.
modules/optflow/src/pcaflow.cpp
View file @
33f18dd6
...
...
@@ -328,7 +328,8 @@ void OpticalFlowPCAFlow::getSystem( OutputArray AOut, OutputArray b1Out, OutputA
Mat
b2
=
b2Out
.
getMat
();
ocl
::
Kernel
kernel
(
"fillDCTSampledPoints"
,
_ocl_fillDCTSampledPointsSource
);
size_t
globSize
[]
=
{
features
.
size
(),
basisSize
.
width
,
basisSize
.
height
};
CV_Assert
(
basisSize
.
width
>
0
&&
basisSize
.
height
>
0
);
size_t
globSize
[]
=
{
features
.
size
(),
(
size_t
)
basisSize
.
width
,
(
size_t
)
basisSize
.
height
};
kernel
.
args
(
cv
::
ocl
::
KernelArg
::
ReadOnlyNoSize
(
Mat
(
features
).
getUMat
(
ACCESS_READ
)
),
cv
::
ocl
::
KernelArg
::
WriteOnlyNoSize
(
A
),
(
int
)
features
.
size
(),
(
int
)
basisSize
.
width
,
...
...
@@ -376,7 +377,8 @@ void OpticalFlowPCAFlow::getSystem( OutputArray A1Out, OutputArray A2Out, Output
Mat
b2
=
b2Out
.
getMat
();
ocl
::
Kernel
kernel
(
"fillDCTSampledPoints"
,
_ocl_fillDCTSampledPointsSource
);
size_t
globSize
[]
=
{
features
.
size
(),
basisSize
.
width
,
basisSize
.
height
};
CV_Assert
(
basisSize
.
width
>
0
&&
basisSize
.
height
>
0
);
size_t
globSize
[]
=
{
features
.
size
(),
(
size_t
)
basisSize
.
width
,
(
size_t
)
basisSize
.
height
};
kernel
.
args
(
cv
::
ocl
::
KernelArg
::
ReadOnlyNoSize
(
Mat
(
features
).
getUMat
(
ACCESS_READ
)
),
cv
::
ocl
::
KernelArg
::
WriteOnlyNoSize
(
A
),
(
int
)
features
.
size
(),
(
int
)
basisSize
.
width
,
...
...
modules/optflow/src/rlof/berlof_invoker.hpp
View file @
33f18dd6
...
...
@@ -1941,11 +1941,12 @@ public:
{
if
(
dIptr
[
0
]
==
0
&&
dIptr
[
1
]
==
0
)
continue
;
short
It
[
4
]
=
{(
Jptr
[
x
]
<<
5
)
-
Iptr
[
x
],
(
Jptr
[
x
+
cn
]
<<
5
)
-
Iptr
[
x
],
(
Jptr1
[
x
]
<<
5
)
-
Iptr
[
x
],
(
Jptr1
[
x
+
cn
]
<<
5
)
-
Iptr
[
x
]};
short
It
[
4
]
=
{
(
short
)((
Jptr
[
x
]
<<
5
)
-
Iptr
[
x
]),
(
short
)((
Jptr
[
x
+
cn
]
<<
5
)
-
Iptr
[
x
]),
(
short
)((
Jptr1
[
x
]
<<
5
)
-
Iptr
[
x
]),
(
short
)((
Jptr1
[
x
+
cn
]
<<
5
)
-
Iptr
[
x
])
};
_b1
[
0
]
+=
(
float
)(
It
[
0
]
*
dIptr
[
0
]);
_b1
[
1
]
+=
(
float
)(
It
[
1
]
*
dIptr
[
0
]);
_b1
[
2
]
+=
(
float
)(
It
[
2
]
*
dIptr
[
0
]);
...
...
modules/optflow/src/sparse_matching_gpc.cpp
View file @
33f18dd6
...
...
@@ -267,7 +267,9 @@ bool ocl_getAllDCTDescriptorsForImage( const Mat *imgCh, std::vector< GPCPatchDe
const
Size
sz
=
imgCh
[
0
].
size
();
ocl
::
Kernel
kernel
(
"getPatchDescriptor"
,
ocl
::
optflow
::
sparse_matching_gpc_oclsrc
,
format
(
"-DPATCH_RADIUS_DOUBLED=%d -DCV_PI=%f -DSQRT2_INV=%f"
,
PATCH_RADIUS_DOUBLED
,
CV_PI
,
SQRT2_INV
)
);
size_t
globSize
[]
=
{
sz
.
height
-
2
*
patchRadius
,
sz
.
width
-
2
*
patchRadius
};
CV_Assert
(
sz
.
height
-
2
*
patchRadius
>
0
);
CV_Assert
(
sz
.
width
-
2
*
patchRadius
>
0
);
size_t
globSize
[]
=
{(
size_t
)(
sz
.
height
-
2
*
patchRadius
),
(
size_t
)(
sz
.
width
-
2
*
patchRadius
)};
UMat
out
(
globSize
[
0
]
*
globSize
[
1
],
GPCPatchDescriptor
::
nFeatures
,
CV_64F
);
if
(
kernel
...
...
modules/sfm/CMakeLists.txt
View file @
33f18dd6
...
...
@@ -81,6 +81,7 @@ ocv_add_module(sfm
opencv_calib3d
opencv_features2d
opencv_xfeatures2d
opencv_imgcodecs
WRAP python
)
...
...
modules/sfm/src/libmv_light/libmv/correspondence/nRobustViewMatching.cc
View file @
33f18dd6
...
...
@@ -18,7 +18,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
#include <opencv2/
highgui
.hpp>
#include <opencv2/
imgcodecs
.hpp>
#include "libmv/base/vector_utils.h"
#include "libmv/correspondence/feature.h"
...
...
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