Block 115: Blurring & Filtering
Apply smoothing and sharpening filters.
Concepts
- cv2.GaussianBlur() with kernel size and sigma
- cv2.medianBlur() for noise reduction
- cv2.filter2D() with custom kernels
- Sharpening with a kernel
Code Examples
See exercise below.
Exercise
Apply Gaussian blur with 3 different kernel sizes. Show side by side. Write a sharpening filter kernel and apply it to an image.
Homework
Why is Gaussian blur used before edge detection? What happens if you skip it?