peng xiao
124ede611b
Update with apavlenko's suggestions.
11 years ago
peng xiao
892c088e1b
Some modifications to sortByKey API.
...
Add documentation.
12 years ago
peng xiao
e1f43e3b03
Add sort_by_key for oclMat.
...
Most codes are ported from AMD's Bolt library.
Four methods are implemented:
SORT_BITONIC, // only support power-of-2 buffer size
SORT_SELECTION, // cannot sort duplicate keys
SORT_MERGE,
SORT_RADIX // only support signed int/float keys
12 years ago
yao
88ed74a7ec
fix the function name
12 years ago
Jin Ma
97e620b8f3
Fix oclMat constructor when roi is provided.
12 years ago
yao
8d8dc29ced
add kmeans
12 years ago
peng xiao
a5383b8627
Move function definition from header to cpp.
12 years ago
peng xiao
fc64faa22e
Remove empty cv::ocl::CLAHE class.
12 years ago
peng xiao
132b885b24
Add opencl implementation of Farnback optical flow.
12 years ago
peng xiao
cc3fb3d182
Let CLAHE_OCL reuse cv::CLAHE abstract class.
12 years ago
peng xiao
290c8db0a8
Revise naming for getOclMat function.
12 years ago
peng xiao
e129638263
Add a workaround to interpolate between oclMat and Input/OutputArray.
12 years ago
Roman Donchenko
1ed5fb937d
Give cv::ocl::CLAHE a virtual destructor, for the usual reasons.
12 years ago
peng xiao
e6b18fc492
Fix a bug caused by NDEBUG macro; it is now removed.
...
Revise some descriptions of the enums.
12 years ago
peng xiao
5fd724b54a
Add a function to query if global OpenCL context is initialized.
12 years ago
Peng Xiao
c8398c9fdc
Use anonymous enumerations instead of constants
12 years ago
Peng Xiao
1d8cd3a717
Add ocl CLACH implementation.
...
Test cases (accuracy and performance) are provided.
12 years ago
Peng Xiao
e77abeef16
Add a new global function to control ocl binary storage
...
Previously the feature is controlled by setBinpath implicitly.
We add the function to cope with setBinpath and setBinpath is only
useful when setBinaryDiskCache is set.
Refer to the header to see more info.
12 years ago
peng xiao
b1c248fcc9
Fix ocl::filter2D.
...
In current implementation, this function only works when anchor point is
in the kernel center and kernel size supported is either 3x3 or 5x5.
12 years ago
peng xiao
fd7ba355ee
Add non-stump based ocl Haar cascade classifier support.
...
For example, haarcascade_frontalface_alt2.xml is now supported.
Note that classifier's pattern of a cascade file must be consistent,
i.e., all trees must either have two nodes or one node, otherwise
unexpected results will occur.
Other fixes:
Test cases are updated.
Some unused codes are removed.
Fix some problems of haar when using OclCascadeClassifierBuf.
12 years ago
Jan Machacek
46b770f255
Fixed include name in OpenCL on OS X
12 years ago
peng xiao
b4a4a05bdc
Add ocl's good features to track implementation.
...
Additional notes with this commit:
1. Add cornerHarris_dxdy and cornerMinEigenVal_dxdy to get
the interim dx and dy output of Sobel operator;
2. Add minMax_buf to allow user to reuse buffers in minMax;
3. Fix an error when either min or max pointer fed into minMax is NULL;
4. Corner sorter temporarily uses C++ STL's quick sort. A parallel
selection sort in OpneCL is contained in the implementation but disabled
due to poor performance at the moment.
5. Accuracy test for ocl gfft.
12 years ago
yao
4162ebfad3
add OpticalFlowDual_TVL1_OCL function
12 years ago
peng xiao
d053f2165d
Add BFMatcher_OCL class alias for BruteForceMatcher_OCL.
...
This adds a similar interface with pure-cpp and gpu versions.
12 years ago
peng xiao
3f93c3cc4e
Clean up spaces in ocl.hpp
12 years ago
peng xiao
ac21cabda2
Copy ocl::queryDeviceInfo interface from master to 2.4.
...
Affected functions surf.ocl, pyrlk.ocl and hog.ocl are updated with the change.
12 years ago
peng xiao
355bc691fc
Add OpenCL version 1.2 query into ocl::Context::supportsFeature().
...
Add backwards portability for OpenCL 1.1 when OpenCV executables
are compiled with OpenCL 1.2 profile support.
12 years ago
Peng Xiao
7b08d5ec69
Add OpenCL stereo CSBP implementation
12 years ago
yao
69a0b5dde5
Add OclCascadeClassifierBuf interface
12 years ago
yao
5022bc8c25
move the "cpu device checking" from supportsFeatures() to queryDeviceInfo()
12 years ago
peng xiao
7758322fd3
Fix some build errors.
12 years ago
peng xiao
ecea583afd
Add ocl::stereobp function.
...
OpenCL StereoBeliefPropagation, ported from GPU implementation.
12 years ago
yao
fd4a6f0af0
make the sparse method give correct results on CPU ocl
...
Add CL_CPU to supportsFeature check
simplify the logic of pyrlk
12 years ago
yao
f3254b28f2
use clflush replaces clfinish
12 years ago
peng xiao
0c19a07bf4
Add a function to query ocl device info
...
Currently the function only supports wavefront size query
12 years ago
Andrey Kamaev
4bd721ad3b
Fix build errors
12 years ago
Andrey Kamaev
7b8ad4cb04
Refactor OpenCL initialization and allow to use ocl module witout explicit setup
12 years ago
Andrey Kamaev
6846f881a2
Move OpenCL SURF to nonfree module
12 years ago
yao
0f0a4c3099
add stereoBM function
12 years ago
yao
9ccf27c7f5
add interfaces enable custom oclMat device memory type
12 years ago
yao
6df23428af
Add moments function
12 years ago
Andrey Kamaev
c17e9ef7ba
Repair binary compatibility of ocl module
12 years ago
yao
429ae44ae3
add openCLExecuteKernelInterop method
12 years ago
yao
9613135e8d
fix compiling errors on Linux
...
more operators use oclMatExpr
12 years ago
yao
69fd2d8273
add oclMatExpr class to prevent extra allocations
12 years ago
yao
0b365f6aa5
add +-*/ operators to oclMat
12 years ago
yao
a639a1ae5c
add setDeviceEx interface
...
simplify the logic of save binary
12 years ago
Andrey Kamaev
f489eb9a5d
Fix build warnings in OpenCL samples
12 years ago
Andrey Kamaev
9509dfd1de
Fix OpenCL build warnings
12 years ago
yao
f6d82773f9
fix bug #2674
12 years ago