- It helps in removing noise. As noise is considered as a high-pass signal, so when applying a low-pass filter kernel we limit the noise.
- This helps in smoothing the image.
- Low intensity edges are removed.
- This helps to hide details when needed. For example, in many cases the police intentionally want to hide the victim’s face, in such cases blurring is required.
Important types of blur:
- Gaussian Blur: Gaussian Blur is the result of blurring an image using the Gaussian function. It is a widely used effect in graphics software, usually to reduce image noise and detail. It is also used as a preprocessing stage before applying our machine learning or deep learning models.
For example, Gaussian kernel (3 × 3)
- Blur on median: Median filter — it is a nonlinear digital filtering technique often used to remove noise from an image or signal. Median filtering is very widely used in digital image processing because, under certain conditions, it preserves edges while removing noise. It is one of the best algorithms for removing salt and pepper.
- Two-sided blur: Two-sided filter — it is a non-linear, edge-preserving and noise-reducing anti-aliasing filter for images. It replaces the intensity of each pixel with a weighted average of the intensity from neighboring pixels. This weight can be based on a Gaussian distribution. This way, sharp edges are preserved while discarding weak ones.
Below is the Python code: