Challenge - 5 Problems
Blur Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
Output of Gaussian Blur on a simple image array
Given the following 3x3 grayscale image array and applying a Gaussian blur with kernel size 3 and sigma 1, what is the center pixel value after blurring?
Computer Vision
import cv2 import numpy as np image = np.array([[10, 20, 30], [20, 30, 40], [30, 40, 50]], dtype=np.uint8) blurred = cv2.GaussianBlur(image, (3, 3), 1) center_pixel = blurred[1, 1] print(center_pixel)
Attempts:
2 left
💡 Hint
Gaussian blur smooths pixels weighted by a Gaussian kernel; center pixel is a weighted average.
✗ Incorrect
The Gaussian blur with kernel size 3 and sigma 1 computes a weighted average around the center pixel. The exact value is 29.
🧠 Conceptual
intermediate1:30remaining
Effect of median blur on salt-and-pepper noise
Which statement best describes the effect of applying a median blur filter on an image corrupted with salt-and-pepper noise?
Attempts:
2 left
💡 Hint
Think about how median values handle extreme pixel values.
✗ Incorrect
Median blur replaces each pixel with the median of its neighbors, which removes isolated extreme values like salt-and-pepper noise effectively.
❓ Model Choice
advanced1:30remaining
Choosing the best smoothing filter for edge preservation
You want to smooth an image to reduce noise but keep edges sharp and clear. Which filter is the best choice?
Attempts:
2 left
💡 Hint
Consider which filter uses both spatial and intensity information.
✗ Incorrect
Bilateral filter smooths while preserving edges by considering both pixel distance and intensity differences.
❓ Hyperparameter
advanced1:30remaining
Effect of increasing sigma in Gaussian blur
What happens to the image when you increase the sigma value in a Gaussian blur filter while keeping the kernel size constant?
Attempts:
2 left
💡 Hint
Sigma controls the spread of the Gaussian kernel.
✗ Incorrect
Increasing sigma makes the Gaussian kernel wider, causing more smoothing and blur.
🔧 Debug
expert2:00remaining
Identifying error in bilateral filter usage
What error will this code produce when applying bilateral filter with the given parameters?
import cv2
import numpy as np
image = np.ones((5,5), dtype=np.uint8)*100
blurred = cv2.bilateralFilter(image, d=0, sigmaColor=75, sigmaSpace=75)
print(blurred)
Computer Vision
import cv2 import numpy as np image = np.ones((5,5), dtype=np.uint8)*100 blurred = cv2.bilateralFilter(image, d=0, sigmaColor=75, sigmaSpace=75) print(blurred)
Attempts:
2 left
💡 Hint
Check the meaning of parameter d in bilateralFilter.
✗ Incorrect
No error occurs because when d is non-positive (including 0), it is automatically computed from sigmaSpace.