Chapter 10: Histograms, Contours, and Morphological Transformations

In the previous chapter, we learned about and demonstrated the basic- and intermediate-level concepts surrounding the areas of image processing and computer vision.

From this chapter onward, we will learn about and demonstrate advanced concepts that will prepare us for writing programs for applications in real life. First, we will look at the theoretical foundations of computing histograms with an ndarray. Then, we will learn how to compute it for grayscale and color image channels. We will also learn how to compute and visualize contours. Finally, we will learn about various mathematical morphological operations in detail and demonstrate how to use them with various structuring ...

Get Raspberry Pi Computer Vision Programming - Second Edition 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.