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 elements. We will learn about and demonstrate the following topics:
- Computing and visualizing histograms
- Visualizing image contours
- Applying morphological transformations to images
After completing this chapter, you...