1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-17 15:26:00 +08:00
Commit Graph

88 Commits

Author SHA1 Message Date
Vadim Pisarevsky
53986aaa7d Merge pull request #996 from mshabunin:cmakeex 2017-12-15 10:47:38 +00:00
Vadim Pisarevsky
e53977f64b Merge pull request #1482 from terfendail:bitexact_resize 2017-12-14 20:48:10 +00:00
Vitaly Tuzov
8c394a4f2e Updated internal calls to linear resize to use bit-exact version 2017-12-14 13:00:09 +03:00
Alexander Alekhin
57ff363389 python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 16:14:46 +03:00
Maksim Shabunin
18a5391672 Fixed exports and removed contrib_world 2017-12-04 14:12:23 +03:00
Alexander Alekhin
b556c2a7c3 build: migrate to traits::Type / traits::Depth 2017-08-25 19:07:05 +03:00
Alexander Alekhin
b1408e33b0 Merge pull request #1292 from VladX:gpc_fix 2017-07-24 16:43:34 +00:00
Vladislav Samsonov
3442a8deee Handle incorrect flow vectors in gpc_evaluate; fixes opencv/opencv#9183 2017-07-24 19:05:45 +03:00
Vladislav Samsonov
617db6c4fe Fixed bug inside GPCDetails::dropOutliers(); fixes opencv/opencv#9220 2017-07-24 18:42:41 +03:00
Diego
fbbda575de Fixed loop in buildPyramid in deepflow.cpp
The while loop in member function buildPyramid in deepflow.cpp terminated as a result of the break statement and never as a result of the termination criteria because the "i" variable in the while loop was never incremented.

Changed the while loop into a for loop

Changed the while loop into a for loop in the member function buildPyramid in deepFlow.cpp

removed trailing whitespace
2017-06-13 20:53:17 -07:00
Yuriy Obukh
41559d7481 Some changes to make VS2010 compiler happy. 2017-06-02 23:47:04 +03:00
LaurentBerger
64b3bbb620 solve issue 1165 2017-05-18 15:59:40 +02:00
Alexander Alekhin
3a43af8131 Merge pull request #1080 from pengli:dis_optflow 2017-03-27 19:35:07 +00:00
Li Peng
6f907c3347 add dis optical flow sample app
it takes a video file as input and shows colored optical flow.

Signed-off-by: Li Peng <peng.li@intel.com>
2017-03-24 10:40:31 +08:00
Maksim Shabunin
f8807f18cd Reduced modules dependencies:
- made some of dependencies explicit
- removed dependencies to highgui and some other modules where possible
- modified some samples to build without modules
2017-03-15 18:00:21 +03:00
Li Peng
7ed6f77840 OCL implementation of DIS optical flow
This patch adds ocl kernels to accelerate Dense Inverse Search
based optical flow algorithm, it acclerates 3 parts in the algorithm,
including 1) Structure tensor elements compute, 2) Patch inverse search,
3) Densification compute.

Perf and accuracy test are also added. The perf test shows it is 30%
faster than the current implementation.

Signed-off-by: Li Peng <peng.li@intel.com>
2017-03-15 10:02:02 +08:00
berak
3f7e74db85 fix misplaced break statement 2017-02-28 08:43:13 +01:00
Alexander Alekhin
eae4d78748 misc: minor fix in license header 2016-12-16 17:12:18 +03:00
Alexander Alekhin
c47b0ea23c Merge pull request #828 from alalek:fix_optflow
optflow: fix test failure

MSVS2013:
- DenseOpticalFlow_GlobalPatchColliderDCT.ReferenceAccuracy
- DenseOpticalFlow_GlobalPatchColliderWHT.ReferenceAccuracy
2016-10-21 21:18:54 +03:00
Alexander Alekhin
efc560010e Merge pull request #820 from mshabunin:dis-flow-cite 2016-10-20 15:24:06 +00:00
Vladislav Samsonov
ac62d70f97 [GSoC] Implementation of the Global Patch Collider and demo for PCAFlow (#752)
* Minor fixes

* Start adding correspondence finding

* Added finding of correspondences using GPC

* New evaluation tool for GPC

* Changed default parameters

* Display ground truth in the evaluation tool

* Added training tool for MPI Sintel dataset

* Added the training tool for Middlebury dataset

* Added some OpenCL optimization

* Added explanatory notes

* Minor improvements: time measurements + little ocl optimization

* Added demos

* Fixed warnings

* Make parameter struct assignable

* Fix warning

* Proper command line argument usage

* Prettified training tool, added parameters

* Fixed VS warning

* Fixed VS warning

* Using of compressed forest.yml.gz files by default to save space

* Added OpenCL flag to the evaluation tool

* Updated documentation

* Major speed and memory improvements:
1) Added new (optional) type of patch descriptors which are much faster. Retraining with option --descriptor-type=1 is required.
2) Got rid of hash table for descriptors, less memory usage.

* Fixed various floating point errors related to precision.
SIMD for dot product, forest traversing is a little bit faster now.

* Tolerant floating point comparison

* Triplets

* Added comment

* Choosing negative sample among nearest neighbors

* Fix warning

* Usage of parallel_for_() in critical places. Performance improvments.

* Simulated annealing heuristic

* Moved OpenCL kernel to separate file

* Moved implementation to source file

* Added basic accuracy tests for GPC and PCAFlow

* Fixing warnings

* Test accuracy constraints were too strict

* Test accuracy constraints were too strict

* Make tests more lightweight
2016-10-17 18:15:22 +03:00
mshabunin
b17852fe30 Updated BIB reference to DISFlow paper 2016-10-13 15:37:16 +03:00
Alexander Alekhin
8b71f7e265 fix build 2016-10-08 15:02:29 +03:00
berak
ba2aae5664 optflow: updated motempl.py sample 2016-09-12 13:27:13 +02:00
Bleach
918645d119 fix vs2010 build error 2016-08-25 17:05:52 +03:00
Maksim Shabunin
73459049a3 Merge pull request #745 from sbokov:DISflow_improvement 2016-08-10 22:17:08 +00:00
sbokov
406d944ec7 Temporal propagation in DISOpticalFlow
Added an option to pass an initial approximation of optical flow in
DISOpticalFlow. Added a python sample that demonstrates the use of this
feature for temporal propagation of flow vectors.
2016-08-10 00:26:24 +03:00
Vladislav Samsonov
1764f9247a Fixed OpenCL check behavior 2016-07-27 01:28:42 +03:00
Vladislav Samsonov
55f093a45b Fixing signed vs unsigned warning 2016-07-25 13:00:18 +03:00
Vladislav Samsonov
ab130c76b9 Fixing VS warning 2016-07-25 03:57:23 +03:00
Vladislav Samsonov
2016e90c7d Fixing GCC warning 2016-07-25 03:31:20 +03:00
Vladislav Samsonov
5146e0d2e4 Merge https://github.com/Itseez/opencv_contrib into optflow 2016-07-25 03:24:12 +03:00
Vladislav Samsonov
17831add02 Added new method for training forest 2016-07-25 03:22:31 +03:00
Vladislav Samsonov
7f93d951d3 Added training part of the Global Patch Collider 2016-07-25 02:28:23 +03:00
vbystricky
5a1fd4c873 Add methods for get/set weights of variational refiment part of DISFlow method 2016-07-15 11:43:30 +03:00
Vladislav Samsonov
3dbbad123a Added a note about key differences 2016-07-08 22:20:03 +03:00
Vladislav Samsonov
1d90d67016 Merge upstream 2016-07-08 13:49:03 +03:00
Vladislav Samsonov
eb9b5080c1 Fixed binary file reading on Windows, math constants and OpenCL kernel 2016-07-08 13:33:43 +03:00
Alexander Bokov
659efc5829 DeepFlow acceleration
Replaced internal variational refinement implementation inside DeepFlow
with a new optimized one, which provides about the same quality while
being 4-6 times faster.
2016-07-04 16:32:37 +03:00
Alexander Bokov
b96a5f5963 Complete DIS optical flow implementation
Added variational refinement as a separate class (based on implementation
inside DeepFlow, but significantly accelerated, about 4-6 times faster),
accelerated the main dense inverse search algorithm. Added several new
features including patch mean normalization for increased robustness to
illumination changes and spatial propagation, which often helps to recover
from errors introduced by the coarse-to-fine scheme. Expanded the
documentation, added new accuracy and perf tests. Refactored some of
the already existing optical flow accuracy tests.
2016-07-01 18:50:10 +03:00
Vladislav Samsonov
75b3ea9f72 Fixing some compiler warnings 2016-06-22 13:53:03 +03:00
Vladislav Samsonov
805a0c4b97 Fixed build on VS 2016-06-21 14:35:52 +03:00
Vladislav Samsonov
e57df756a6 PR fixes 2016-06-20 03:26:54 +03:00
Vladislav Samsonov
2d68b30528 Minor fixes 2016-06-19 17:57:43 +03:00
Vladislav Samsonov
329f49e92a Passing of the prior file to the evaluation tool 2016-06-13 19:25:51 +03:00
Vladislav Samsonov
f9ef5d456e Added some explanatory comments 2016-06-13 17:23:12 +03:00
Vladislav Samsonov
8ebe182f80 Merge recent changes 2016-06-13 02:32:27 +03:00
Vladislav Samsonov
7a18e78865 Post-review fixes 2016-06-13 02:11:38 +03:00
Vladislav Samsonov
54e746bebd Added OpenCL support 2016-06-12 23:04:38 +03:00
Alexander Bokov
d4c3765e4f Partial DIS implementation and OF benchmark
Basic interfaces and a partial implementation of the Dense Inverse
Search (DIS) optical flow algorithm without variational refinement. Also
added a python benchmarking script that can evaluate different optical
flow algorithms on the MPI Sintel and Middlebury datasets and build
overall comparative charts.
2016-06-10 13:00:36 +03:00