-
Book Overview & Buying
-
Table Of Contents
GPU-Accelerated Computing with Python 3 and CUDA
By :
In this chapter, GPU programming techniques and specialized libraries were applied to practical image processing and computer vision tasks. The chapter covered how images are represented in memory, how they can be manipulated as N-dimensional arrays, and how color is modeled in different color spaces. A 2D convolutional filter was implemented from scratch with a CUDA kernel. This implementation was profiled and compared to optimized implementations in high-level libraries such as cuCIM and cupyx.scipy.ndimage.
The bulk of the chapter was spent on a practical computer vision task: detecting and classifying objects in a large image. Objects were segmented from a noisy background using classical image processing methods and classified using three different approaches: shape descriptors (Hu moments), template matching, and a convolutional neural network. This case study illustrated the key building blocks of an image processing pipeline.
The next chapter explores a scientific application...