How do I take the advantage of OpenCL in an Emgu CV project

不问归期 提交于 2019-12-12 16:11:02

问题


I'm newbie in using Emgu CV and started to create small sample projects, for example face detection, eye detection,..etc. It would be good if I could take the advantage of OpenCL to accelerate the process using gpu. Otherwise, it causes massive cpu utilization when I decrease the scaleFactor. How can I do that? Thanks.


回答1:


As far as I know (from the official page of Emgu look at the bootom of the page) the UMat image format uses automatically the OpenCL Engine. First you have to set the OpenCL to true by CvInvoke.UseOpenCL = true, then you need to create a UMat image format and then try to process that image.

At least that's what the official page of Emgu telling.

I tried this and work, it increased the perfomance quite a lot.



来源:https://stackoverflow.com/questions/28505252/how-do-i-take-the-advantage-of-opencl-in-an-emgu-cv-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!