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
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
peng xiao
0c19a07bf4
Add a function to query ocl device info
...
Currently the function only supports wavefront size query
12 years ago
Andrey Kamaev
be7bbe3aa9
Drop cv:: prefix from cv::String used inside the cv namespace
12 years ago
Andrey Kamaev
2ad7b97f1c
All modules (except ocl and gpu) compiles and pass tests
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
Andrey Kamaev
a42a0f5fca
Added compatibility headers
12 years ago
Andrey Kamaev
ad5cddc007
Main module headers are moved 1 level up
...
e.g. <opencv2/core/core.hpp> become <opencv2/core.hpp>
Also renamed <opencv2/core/opengl_interop.hpp> to <opencv2/core/opengl.hpp>
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
2a6fb2867e
Remove all using directives for STL namespace and members
...
Made all STL usages explicit to be able automatically find all usages of
particular class or 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
Andrey Kamaev
b401c6a0c3
Fix discrepancies between function signatures in headers and documentation
12 years ago
Suenghoon Park
e1c6564d5e
fixed a typo in ocl.hpp
12 years ago