So far we have covered the basics of Python and its scientific modules. In this chapter, we begin our journey of learning image processing. The first concept we will master is filtering, which is at the heart of image enhancement. Filters are used to remove noise or undesirable impurities. The first derivative and second derivative filters are used to determine edges in an image.
There are two types of filters: linear filters and non-linear filters. Linear filters include mean, Laplacian and Laplacian of Gaussian. Nonlinear filters include median, maximum, minimum, Sobel, Prewitt and Canny filters.
Image enhancement can be accomplished in two domains: spatial and frequency. The spatial domain constitutes ...