Results 1 to 3 of 3

Thread: What is the advantage of using image object ?

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    27

    What is the advantage of using image object ?

    Hello.

    I wonder why we need image object for image processing. It looks like the image object is not much different from the memory object.. and we can do the same job with memory objects without image objects.

    What is the exact advantage of using image object in a kernel for image processing ?

    Is the image object faster in accessing pixels or does it have any special features for image processing ?

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: What is the advantage of using image object ?

    and we can do the same job with memory objects without image objects.
    Not really, unless you are willing to type a lot of code. I assume that so far you have only been accessing pixels individually using integers to index inside an array.

    With image objects, in addition to using unnormalized integer coordinates, you can also use normalized floats to access the pixels. This means that a texture coordinate of 0.0 maps to the "left" of the image and 1.0 maps to the "right" of the image, with values in between returning the intermediate pixels.

    Image objects also support bilinear filtering of pixel values (useful only for normalized coordinates).

    What is the exact advantage of using image object in a kernel for image processing ?
    Hardware acceleration when using a GPU. GPUs do all the operations described above (and more) in a dedicated hardware block.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3
    Junior Member
    Join Date
    Feb 2011
    Location
    USA
    Posts
    4

    Re: What is the advantage of using image object ?

    Image object is necessary for image processing.
    It creates a impressive image to users. And best for users interest .

Similar Threads

  1. render cl_mem(image object) to window
    By opencl_beginner in forum OpenCL
    Replies: 4
    Last Post: 12-10-2010, 05:55 AM
  2. Replies: 3
    Last Post: 10-11-2010, 06:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •