What are the equivalent functions of cv::ocl in 3.0?
For whatever reason I cannot access some functions of cv::ocl, such as cv::ocl::convertfromimage. The compiler is telling me it is not a function of cv::ocl, and when I look at ocl.cpp it isn't there, but I've seen it in the online repositories for ocl.cpp... why would it not show up in my local installation? Is there something I need to do when I build 3.0? an option I missed, or is there an equivalent function that does the same thing? Thanks!
I noticed in the build info that OpenCL is using a 1.2 folder from within OpenCV 3.0, I could not find a way to specify another location... does that need to be changed?
Here is the build information:videoio: Removing WinRT API headers by default
General configuration for OpenCV 3.0.0 ===================================== Version control: unknown
Platform: Host: Linux 3.19.0-25-generic x86_64
CMake: 2.8.12.2
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: Release
C/C++:
Built as dynamic libs?: YES
C++ Compiler: /usr/bin/c++ (ver 4.8.4)
Linker flags (Debug):
Precompiled headers: YES
OpenCV modules: To be built: hal core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab Disabled: world Disabled by dependency: - Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz
Other third-party libraries: Use OpenCL: YES
OpenCL:
Version: dynamic
Include path: /home/xxxxx/opencv-3.0.0/3rdparty/include/opencl/1.2
Use AMDFFT: NO
Use AMDBLAS: NO
Tests and samples:
Tests: YES
Performance tests: YES
C/C++ Examples: YES
Install path: /usr/local
can you give your version using opencv function getBuildInformation
almost all ocl handling is done via TAPI / UMat in 3.0.
have a look at the opencl section here , also the opencl and tapi samples
Thanks... I've looked through those, but I still see that the functions are available at least in some versions of ocl.cpp on-line, so I'm wondering why those functions did not make it in to my installed ocl.cpp. Thanks, I will look through those pages again and see if there is something I missed, Thanks!
The one interop example in fact calls cv::ocl::convertFromImage(image, u); directly, so there has to be something that I am doing wrong to prohibit it from be there. I'm using this call:
and it is finding that ocl.hpp at /usr/local/include/opencv2
I receive this error:
can you make a git pull?
I can try, I built it using just the downloaded files... I sense that is not the best way to build it.
Just to say I think that this function was added 19 jun 2015
You were right... how many hours I spent on that!! now of course I'm getting a segmentation fault with that function anyway... the work never ends! Thanks!