Chapter 6. Image processing

 

This chapter covers
  • Understanding the data types used in OpenCL image processing
  • Invoking functions that read, write, and access image data
  • Interpolating between pixel colors using samplers

 

Memory objects package data sent between a host and a device, and as discussed in chapter 3, they come in two types: buffer objects and image objects. Buffer objects transfer general-purpose data, and so far, all of the example code in this book has relied exclusively on buffer objects.

Now we’re going to switch gears and focus on image objects. In theory, you could store an image’s data in a buffer object and access its pixels as regular buffer data. But there are four important reasons to use image objects instead: ...

Get OpenCL in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.