Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Image Processing with Python

You're reading from  Hands-On Image Processing with Python

Product type Book
Published in Nov 2018
Publisher Packt
ISBN-13 9781789343731
Pages 492 pages
Edition 1st Edition
Languages
Author (1):
Sandipan Dey Sandipan Dey
Profile icon Sandipan Dey

Table of Contents (20) Chapters

Title Page
Copyright and Credits
Dedication
About Packt
Contributors
Preface
Getting Started with Image Processing Sampling, Fourier Transform, and Convolution Convolution and Frequency Domain Filtering Image Enhancement Image Enhancement Using Derivatives Morphological Image Processing Extracting Image Features and Descriptors Image Segmentation Classical Machine Learning Methods in Image Processing Deep Learning in Image Processing - Image Classification Deep Learning in Image Processing - Object Detection, and more Additional Problems in Image Processing Other Books You May Enjoy Index

Understanding convolution


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 next screenshot (for convolution with the valid mode; we'll see convolution modes later in this chapter):

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.

Why convolve an image?

Convolution applies a general-purpose filter effect on the input image. This is done in order...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}