What is the main purpose of image smoothing using Gaussian blur?
Image smoothing with Gaussian blur reduces noise and detail in an image, making it look softer and less sharp.
Click to reveal answer
beginner
How does the Gaussian blur filter work on an image?
It applies a weighted average to each pixel using a Gaussian function, giving more weight to nearby pixels and less to distant ones.
Click to reveal answer
intermediate
What effect does increasing the standard deviation (sigma) in Gaussian blur have?
Increasing sigma makes the blur stronger, spreading the smoothing effect over a larger area and making the image more blurred.
Click to reveal answer
intermediate
Why is Gaussian blur preferred over a simple average blur for smoothing images?
Because Gaussian blur weights pixels based on distance, it preserves edges better and creates a more natural smoothing effect than a simple average.
Click to reveal answer
beginner
What is a real-life example where Gaussian blur is useful?
It is used in photo editing apps to reduce noise or soften backgrounds, making the main subject stand out more clearly.
Click to reveal answer
What does Gaussian blur primarily do to an image?
AReduces noise and smooths details
BSharpens edges
CIncreases contrast
DChanges image colors
✗ Incorrect
Gaussian blur reduces noise and smooths details by averaging pixel values with a Gaussian weight.
Which parameter controls the amount of blur in Gaussian smoothing?
AKernel size
BImage brightness
CPixel intensity
DStandard deviation (sigma)
✗ Incorrect
The standard deviation (sigma) controls how much the blur spreads over neighboring pixels.
Why does Gaussian blur weight nearby pixels more than distant ones?
ATo preserve image edges better
BTo increase image brightness
CTo reduce file size
DTo change colors
✗ Incorrect
Weighting nearby pixels more helps preserve edges and creates a natural smoothing effect.
What happens if you use a very large sigma in Gaussian blur?
AImage becomes sharper
BImage becomes more blurred
CImage colors invert
DImage resolution increases
✗ Incorrect
A large sigma spreads the blur over a wider area, making the image more blurred.
In which scenario is Gaussian blur commonly used?
ATo add noise to images
BTo sharpen text in images
CTo reduce noise and soften backgrounds
DTo increase image contrast
✗ Incorrect
Gaussian blur is often used to reduce noise and soften backgrounds in photos.
Explain how Gaussian blur smooths an image and why it is effective for noise reduction.
Think about how the filter uses nearby pixels differently.
You got /5 concepts.
Describe the role of the sigma parameter in Gaussian blur and its effect on the image.
Consider how changing sigma changes the blur size.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of applying a Gaussian blur to an image?
easy
A. To smooth the image by averaging pixels with a weighted filter
B. To increase the image resolution
C. To convert the image to grayscale
D. To detect edges in the image
Solution
Step 1: Understand Gaussian blur function
Gaussian blur smooths images by averaging pixels using a weighted filter based on a Gaussian function.
Step 2: Identify the main effect on the image
This process reduces noise and smooths details, not increasing resolution or changing color or detecting edges.
Final Answer:
To smooth the image by averaging pixels with a weighted filter -> Option A
Quick Check:
Gaussian blur = smoothing with weighted average [OK]
Hint: Gaussian blur smooths images by weighted averaging [OK]
Common Mistakes:
Confusing blur with edge detection
Thinking blur increases resolution
Assuming blur changes image color
2. Which of the following is the correct Python syntax to apply a Gaussian blur using OpenCV with kernel size 5x5 and sigma 1.0 on image img?
easy
A. cv2.GaussianBlur(img, (5), 1.0)
B. cv2.gaussian_blur(img, 5, 1.0)
C. cv2.GaussianBlur(img, 5, 1.0)
D. cv2.GaussianBlur(img, (5, 5), 1.0)
Solution
Step 1: Recall OpenCV GaussianBlur syntax
The function requires the image, kernel size as a tuple (width, height), and sigma value.
Step 2: Check each option's syntax
cv2.GaussianBlur(img, (5, 5), 1.0) uses correct function name and parameters: cv2.GaussianBlur(img, (5, 5), 1.0). Others have wrong function names or kernel size format.
Final Answer:
cv2.GaussianBlur(img, (5, 5), 1.0) -> Option D
Quick Check:
Correct syntax uses tuple kernel size [OK]
Hint: Kernel size must be a tuple like (5, 5) in OpenCV [OK]
Common Mistakes:
Using kernel size as single integer instead of tuple
Wrong function name capitalization
Passing kernel size without parentheses
3. Given the following Python code using OpenCV, what will be the shape of the output image after applying Gaussian blur?
A. cv2.imshow requires image path, not image array
B. Kernel size should be a tuple, not an integer
C. Sigma value must be an integer, not float
D. cv2.waitKey needs a parameter greater than 1000
Solution
Step 1: Check GaussianBlur parameters
The kernel size must be a tuple like (5, 5), not a single integer.
Step 2: Verify other function calls
Sigma can be float, cv2.imshow accepts image arrays, and cv2.waitKey(0) is valid for waiting indefinitely.
Final Answer:
Kernel size should be a tuple, not an integer -> Option B
Quick Check:
Kernel size = tuple (width, height) [OK]
Hint: Kernel size must be tuple like (5, 5) in GaussianBlur [OK]
Common Mistakes:
Passing kernel size as single integer
Misunderstanding cv2.imshow input
Incorrect sigma type assumptions
5. You want to reduce noise in a grayscale image but keep edges sharp. Which Gaussian blur parameters should you choose to balance smoothing and edge preservation?
hard
A. Small kernel size (3x3) and low sigma (0.5)
B. Large kernel size (15x15) and high sigma (5.0)
C. Kernel size (7x7) and sigma 0 (automatic calculation)
D. Kernel size (1x1) and sigma 10
Solution
Step 1: Understand effect of kernel size and sigma
Small kernel and low sigma cause mild smoothing, preserving edges better.
Step 2: Analyze options for noise reduction and edge preservation
Large kernel and high sigma cause heavy blur, losing edges. Sigma 0 lets OpenCV choose, which may be too strong. Kernel 1x1 means no blur.
Final Answer:
Small kernel size (3x3) and low sigma (0.5) -> Option A