O'Reilly logo

OpenCL Programming by Example by Koushik Bhattacharyya, Ravishekhar Banger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing image filters

An image filter is a mathematical operation on the original image that transforms it to the filtered image. The goal of the mathematical operation is to perform a mathematical computation for a pixel, based on the values of the neighboring pixels. A precisely defined image filter is a function that transforms each pixel of the original image to pixels of the filtered image. Consider a simple example—what would one do if he or she wants to decrease the brightness of an image?

In an image with gray scale representation, each pixel would contain one integer representing intensity. Deduct some positive integer say VALUE from all the pixels and if some integer becomes negative then truncate the result to zero. This is referred ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required