-
Book Overview & Buying
-
Table Of Contents
Hands-On Image Processing and Computer Vision with Python - Second Edition
By :
(2D) Convolution is an operation that operates on two images, one being an input image and the other one being a mask (also called the kernel) as a filter on the input image, producing an output image. Convolution filtering is used to modify the spatial frequency characteristics of an image. It works by determining the value of a central pixel by adding the weighted values of all of its neighbors together to compute the new value of the pixel in the output image. The pixel values in the output image are computed by traversing the kernel window through the input image, as shown in the following screenshot (for convolution with the valid mode; we’ll see convolution modes later in this chapter):

Figure 5.1 – Convolution of an image with a kernel with valid mode
As you can see, the kernel window, marked by an arrow in the input image, traverses through the image and obtains values that are mapped on the output image after convolving...
Change the font size
Change margin width
Change background colour