In the previous chapter, we saw important programming concepts related to PyCUDA. We also learned how to develop some programs in PyCUDA using these programming concepts. This chapter will build on this knowledge and we will use PyCUDA for developing basic image processing and computer vision applications. The parallel programming concepts of atomic operations and shared memory will also be explained in detail. The histogram of an image conveys important information related to the contrast of an image and it can also be used as an image feature for computer vision tasks. The program to calculate the histogram using PyCUDA will be explained in detail in this chapter. Other basic computer vision applications, such as the conversion of color spaces, image addition, and image inversion using PyCUDA, will also be described.
The following...