Beginner level · Module 4 of 6 · 8 guided hours
Image Filtering and Edge Detection
Convolution and filtering: kernels, blurring for noise reduction, sharpening, gradients with Sobel, and the Canny edge detector, with applications to inspection photographs.
Learning objectives
- Explain convolution and apply custom kernels
- Reduce noise with blurring filters
- Detect edges with Sobel and Canny and tune their parameters
Topics
- kernels and convolution
- box, Gaussian and median blur
- sharpening
- image gradients with Sobel
- the Canny edge detector
- edges for inspection images
Lessons
-
Lesson 1 Convolution and Blurring Filters
Learners compute a convolution by hand, then apply box, Gaussian and median filters to reduce different kinds of noise.
kernelconvolution / correlationcv2.filter2DGaussianBlurmedianBlur
-
Lesson 2 Gradients and the Sobel Operator
Learners compute horizontal and vertical gradients with Sobel kernels on a small array and on photographs, and combine them into an edge-strength map.
gradientSobel x and y kernelsgradient magnitudecv2.Sobel with CV_64Fedge direction
-
Lesson 3 The Canny Edge Detector
Learners apply Canny edge detection, tune its two thresholds and use edges to support simple visual inspection of infrastructure photos.
Canny stepsnon-maximum suppressionhysteresis thresholdscv2.Cannyparameter tuning
Practical activity
Build an inspection helper that blurs, computes gradients and runs Canny on photos of walls, roads or boreholes, with tuned settings and a responsible-use statement.
Expected outcomes
- Understanding of convolution and filters
- Practical edge detection
Assessment
Hand-calculation test on convolution and Sobel (40%) and the inspection helper (60%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.