<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to compile a OpenCL host code which also includes OpenCV functions for reading an image ? in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/How-to-compile-a-OpenCL-host-code-which-also-includes-OpenCV/m-p/700387#M23</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add OpenCV code for reading my image in an OpenCL application which is supposed to run on DE10 Nano Board by Terasic Thus, I am using the INTEL FPGA SDK for OpenCL . &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have OpenCV installed on my P.C. The same snippet of OpenCV code for image reading works fine alone (i.e. without OpenCL code =&amp;gt; just reading an image and displaying it). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I include it with the OpenCL code it is giving errors while compiling. I have slightly modified the  Makefile provided by Intel in their vector add example (for x64)&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/programmable/support/support-resources/design-examples/design-software/opencl/vector-addition.html"&gt;https://www.intel.com/content/www/us/en/programmable/support/support-resources/design-examples/design-software/opencl/vector-addition.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The modifications done include addition of variables OCV_INCLUDES, OCV_LIBS, OCV_LIBDIRS which specify the library path where OpenCV is installed. The final makefile that I am using is attached below. Also, the screen shot of the error which is displayed after running make command is attached (error).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how to compile both OpenCL and OpenCV together. Also, note that I am just using OpenCV to read images from the camera and then I want to pass the image pixels to the OpenCL code to perform convolution operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help in this regard is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards &lt;/P&gt;&lt;P&gt;Hrishikesh Kale&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2019 16:03:55 GMT</pubDate>
    <dc:creator>HKale1</dc:creator>
    <dc:date>2019-03-28T16:03:55Z</dc:date>
    <item>
      <title>How to compile a OpenCL host code which also includes OpenCV functions for reading an image ?</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/How-to-compile-a-OpenCL-host-code-which-also-includes-OpenCV/m-p/700387#M23</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add OpenCV code for reading my image in an OpenCL application which is supposed to run on DE10 Nano Board by Terasic Thus, I am using the INTEL FPGA SDK for OpenCL . &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have OpenCV installed on my P.C. The same snippet of OpenCV code for image reading works fine alone (i.e. without OpenCL code =&amp;gt; just reading an image and displaying it). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I include it with the OpenCL code it is giving errors while compiling. I have slightly modified the  Makefile provided by Intel in their vector add example (for x64)&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/programmable/support/support-resources/design-examples/design-software/opencl/vector-addition.html"&gt;https://www.intel.com/content/www/us/en/programmable/support/support-resources/design-examples/design-software/opencl/vector-addition.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The modifications done include addition of variables OCV_INCLUDES, OCV_LIBS, OCV_LIBDIRS which specify the library path where OpenCV is installed. The final makefile that I am using is attached below. Also, the screen shot of the error which is displayed after running make command is attached (error).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how to compile both OpenCL and OpenCV together. Also, note that I am just using OpenCV to read images from the camera and then I want to pass the image pixels to the OpenCL code to perform convolution operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help in this regard is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards &lt;/P&gt;&lt;P&gt;Hrishikesh Kale&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 16:03:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/How-to-compile-a-OpenCL-host-code-which-also-includes-OpenCV/m-p/700387#M23</guid>
      <dc:creator>HKale1</dc:creator>
      <dc:date>2019-03-28T16:03:55Z</dc:date>
    </item>
  </channel>
</rss>

