Image filtering with gaussian_filter
📖 Scenario: You have a small grayscale image represented as a 2D list of pixel brightness values. You want to smooth the image to reduce noise and make it look softer, like when you blur a photo slightly.
🎯 Goal: Apply a Gaussian filter to the image data using scipy.ndimage.gaussian_filter to create a smooth version of the image.
📋 What You'll Learn
Create a 2D list called
image with exact pixel valuesCreate a variable called
sigma to set the blur strengthUse
scipy.ndimage.gaussian_filter with image and sigmaPrint the filtered image array
💡 Why This Matters
🌍 Real World
Image smoothing is used in photography and computer vision to reduce noise and improve image quality.
💼 Career
Understanding image filtering is important for roles in data science, machine learning, and computer vision engineering.
Progress0 / 4 steps