Chapter 7. Performing Image Processing Techniques

In this chapter, we will use compute shaders (or DirectCompute) for the following image processing techniques:

  • Running a compute shader – desaturation (grayscale)
  • Adjusting the contrast and brightness
  • Implementing box blur using separable convolution filters
  • Implementing a Gaussian blur filter
  • Detecting edges with the Sobel edge-detection filter
  • Calculating an image's luminance histogram

Introduction

Image processing is the process of applying a signal-processing technique against an input image. The input image is generally a two-dimensional signal with the output being either another image or any properties derived from the input signal.

During this chapter, we will implement a number of filtering techniques ...

Get Direct3D Rendering Cookbook 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.