Recall & Review
beginner
What is the purpose of a median filter in data processing?
A median filter replaces each data point with the median value of its neighbors. It helps remove noise while keeping edges sharp, like smoothing a photo without blurring important details.
Click to reveal answer
beginner
How does a uniform filter work?
A uniform filter replaces each data point with the average of its neighbors. It smooths data by averaging values, which can blur edges but reduces random noise.
Click to reveal answer
beginner
Which scipy function applies a median filter to data?
The function is scipy.ndimage.median_filter. You give it your data and the size of the neighborhood to calculate medians.
Click to reveal answer
beginner
What parameter controls the size of the neighborhood in median and uniform filters?
The 'size' parameter sets how many neighbors around each point are considered when calculating the median or average.
Click to reveal answer
intermediate
Why might you choose a median filter over a uniform filter?
Median filters are better at removing 'salt and pepper' noise without blurring edges, while uniform filters smooth data but can blur edges.
Click to reveal answer
What does a median filter replace each data point with?
✗ Incorrect
A median filter replaces each point with the median value of its neighborhood.
Which scipy function applies a uniform filter?
✗ Incorrect
scipy.ndimage.uniform_filter smooths data by averaging neighbors.
What effect does increasing the 'size' parameter have in these filters?
✗ Incorrect
A larger 'size' means more neighbors are included in the calculation.
Which filter is better at preserving edges while removing noise?
✗ Incorrect
Median filters preserve edges better by using median values.
What kind of noise is a median filter especially good at removing?
✗ Incorrect
Median filters effectively remove salt and pepper noise.
Explain how median and uniform filters work and when you might use each.
Think about noise types and edge preservation.
You got /6 concepts.
Describe the role of the 'size' parameter in median and uniform filters.
Consider how neighborhood size changes filter effect.
You got /4 concepts.