Bird
0
0

Why does the median filter preserve edges better than the uniform filter?

hard📝 Conceptual Q10 of 15
SciPy - Image Processing (scipy.ndimage)
Why does the median filter preserve edges better than the uniform filter?
ABecause uniform filter ignores edge pixels during filtering
BBecause median filter averages all values, smoothing edges
CBecause uniform filter replaces values with median, preserving edges
DBecause median filter selects the middle value, avoiding smoothing across edges
Step-by-Step Solution
Solution:
  1. Step 1: Understand median filter behavior

    The median filter replaces each value with the median of neighbors, which avoids averaging across edges and preserves sharp transitions.
  2. Step 2: Contrast with uniform filter

    Uniform filter averages values, which smooths edges and blurs transitions.
  3. Final Answer:

    Because median filter selects the middle value, avoiding smoothing across edges -> Option D
  4. Quick Check:

    Median filter preserves edges by median selection [OK]
Quick Trick: Median filter picks median, avoids blurring edges [OK]
Common Mistakes:
  • Confusing median with average
  • Thinking uniform filter preserves edges
  • Assuming uniform filter ignores edges

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SciPy Quizzes