ilya-lavrenov
968c095403
gpu -> ocl
11 years ago
Roman Donchenko
9b92545ce6
War on Whitespace, master edition: trailing spaces.
11 years ago
Roman Donchenko
f55740da70
Deleted all trailing whitespace.
11 years ago
peng xiao
124ede611b
Update with apavlenko's suggestions.
11 years ago
peng xiao
892c088e1b
Some modifications to sortByKey API.
...
Add documentation.
12 years ago
yao
3d3e9ab635
Fix the problem of haar caused by merge
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
yao
960a0eacf3
merge openCLMallocPitch and openCLMallocPitchEx into one interface
12 years ago
Malcolm Reynolds
229ff632b6
update util.hpp to fix OpenCL import on case sensitive mac FS
...
On a Mac with a case sensitive filesystem <OpenCL/OpenCL.h> does not exist but <OpenCL/opencl.h> does. I presume (!), but have no way to test, that on a Mac with case insensitive FS this change will make no difference.
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
e5ea018185
Let surf.ocl use the new queryDeviceInfo interface.
12 years ago
peng xiao
bfa0f02303
Rewrite queryDeviceInfo interface.
...
Previously the function may cause some unsafe issue. It is fixed now by introducing a template parameter.
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
bb4b410512
Add ocl::PlatformName to ocl::Info.
12 years ago
Peng Xiao
7b08d5ec69
Add OpenCL stereo CSBP implementation
12 years ago
yao
69a0b5dde5
Add OclCascadeClassifierBuf interface
12 years ago
yao
40d0e0eda0
use host data when DEVICE_MEM_UHP is set (the risk of vary align size is owned by users)
12 years ago
Andrey Kamaev
8406312571
Remove C API from OpenCL module
12 years ago
peng xiao
aec7a67d0f
Fix a bug of ocl::Canny when src/dst using the same buffer.
12 years ago
peng xiao
242955ce22
Format ocl::Canny header
12 years ago
Andrey Kamaev
288a0634c2
Make imgproc.hpp independent from C API
12 years ago
peng xiao
77501f3ed0
ocl: Add dft based convolve implementation.
...
Match template in ocl module now can be utilized with dft based
convolve. Note this feature needs OpenCV to be built with clAmdFft
library.
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
Andrey Kamaev
49f6dad13f
Move cv::KeyPoint and cv::DMatch to core
12 years ago