<?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 Help with Image processing in OpenCL in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-with-Image-processing-in-OpenCL/m-p/788638#M544</link>
    <description>The first part of your question is not really OpenCL related. There are many libraries available that let you read/write jpeg files that give you a way to get the image dimensions.&lt;BR /&gt;&lt;BR /&gt;The host_ptr argument that clCreateImage2D() requires is the address in the host memory that points tothe image data.&lt;BR /&gt;&lt;BR /&gt;Also, note that on CPU images are very slow. It is recommended to use buffers. You are fine on GPU.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghu</description>
    <pubDate>Fri, 06 Jul 2012 04:32:57 GMT</pubDate>
    <dc:creator>Raghupathi_M_Intel</dc:creator>
    <dc:date>2012-07-06T04:32:57Z</dc:date>
    <item>
      <title>Help with Image processing in OpenCL</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-with-Image-processing-in-OpenCL/m-p/788637#M543</link>
      <description>Hi,&lt;BR /&gt;I am pretty much new to OpenCL. &lt;BR /&gt;I wantto read a jpeg image file into the kernel, do some processing, get the results back to the host and output the image file into some other location. I am facing somedifficulties doing this.&lt;BR /&gt;&lt;BR /&gt;When using the clCreateImage2D,I need to specify the size of the image manually. Is there a way that I can get the size of the image from some routines and pass them tothis function.?&lt;BR /&gt;&lt;BR /&gt;AlsoI need to understandwhatthe "host ptr" arguement(last but second arguement) exactly meansthat theclCreateImage2D routinetakes. Isit like we can specify thelocation of the image directly ?</description>
      <pubDate>Thu, 05 Jul 2012 22:29:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-with-Image-processing-in-OpenCL/m-p/788637#M543</guid>
      <dc:creator>nikey1</dc:creator>
      <dc:date>2012-07-05T22:29:34Z</dc:date>
    </item>
    <item>
      <title>Help with Image processing in OpenCL</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-with-Image-processing-in-OpenCL/m-p/788638#M544</link>
      <description>The first part of your question is not really OpenCL related. There are many libraries available that let you read/write jpeg files that give you a way to get the image dimensions.&lt;BR /&gt;&lt;BR /&gt;The host_ptr argument that clCreateImage2D() requires is the address in the host memory that points tothe image data.&lt;BR /&gt;&lt;BR /&gt;Also, note that on CPU images are very slow. It is recommended to use buffers. You are fine on GPU.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghu</description>
      <pubDate>Fri, 06 Jul 2012 04:32:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-with-Image-processing-in-OpenCL/m-p/788638#M544</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2012-07-06T04:32:57Z</dc:date>
    </item>
    <item>
      <title>Help with Image processing in OpenCL</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Help-with-Image-processing-in-OpenCL/m-p/788639#M545</link>
      <description>Thanks Raghupati.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I found that I can directly use the C++ library routines to get the image dimensions and not depend on opencl for that. So now can I do this..&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I will convert the jpeg image into some array and convert that to a float array. Can I create a buffer and put this float array into the buffer. Then do some processing on the GPU kernel.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I hope this should be fine. can the clEnqueueWriteBuffer() be used for this purpose?&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Jul 2012 05:33:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Help-with-Image-processing-in-OpenCL/m-p/788639#M545</guid>
      <dc:creator>nikey1</dc:creator>
      <dc:date>2012-07-06T05:33:05Z</dc:date>
    </item>
  </channel>
</rss>

