In this chapter we discussed the OpenCL cl_mem
image objects. We also understood why image objects are required, and how they can be used to represent pixels of different formats or data types. We also solved the image histogram problem using the OpenCL image objects. The same problem was discussed using OpenCL buffers in the previous chapter. Sampling of an image pixel is an important topic and one should try the image_sampler example program to understand that completely.
In this and the previous chapter we discussed we discussed the two important forms of cl_mem
data objects. We created a program and kernel object in our histogram example in order to execute our kernels. In the next chapter we will understand the creation of program and kernel objects in detail. These kernel objects are the execution entities, which can run on any OpenCL capable device.