04_Chapter 03 - Image Processing and Acquisition using Python_Part4
04_Chapter 03 - Image Processing and Acquisition using Python_Part4
The usefulness of this section will be more apparent with the dis-
cussion of convolution in Chapter 7, “Fourier Transform.” During the
convolution operation, a mask or kernel is placed on top of an image
pixel. The final value of the output image pixel is determined using a
linear combination of the value in the mask and the pixel value in the
image. The linear combination can be calculated for either 4-connected
pixels or 8-connected pixels. In the case of 4-connected pixels shown in
Figure 3.6, the process is performed on the top, bottom, left and right
pixels. In the case of 8-connected pixels, the process is performed in
addition on the top-left, top-right, bottom-left and bottom-right pixels.
44 Image Processing and Acquisition using Python
3.3.1 JPEG