Skip to content

RishabhS66/Image-Filtering-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Processing Filters

Coded By: Rishabh Srivastava

This repository contains code for 2 filters that are predominantly used for smmothening image features and reducing the noise content of an image.

Bilateral Filter

A bilateral filter is a non-linear, edge-preserving, and noise-reducing smoothing filter for images. It replaces the intensity of each pixel with a weighted average of intensity values from nearby pixels. The basic idea underlying bilateral filtering is to do in the range of an image what traditional filters do in its domain. Two pixels can be close to one another, that is, occupy nearby spatial location, or they can be similar to one another, that is, have nearby values, possibly in a perceptually meaningful fashion.

The bilateral filter can be formulated as :


As the range parameter increases, the bilateral filter gradually approaches Gaussian convolution more closely because the range Gaussian widens and flattens, which means that it becomes nearly constant over the intensity interval of the image. Thus, as increases, the image gets more blurred.

As the spatial parameter increases, the larger features get smoothened.

This repository includes code that applies a bilateral filter on the image MinaretLake.jpg.

The results are displayed below:

Non-Local Means Filter

Non-Local Means is an algorithm in image processing for image denoising. The method is based on a simple principle: replacing the color of a pixel with an average of the colors of similar pixels. Non-Local Means filtering takes a mean of all pixels in the image, weighted by how similar these pixels are to the target pixel.

To speed up execution of the algorithm, one can restrict the computation of the mean for each pixel to a search window centred on the pixel itself, instead of the whole image.

This repository includes codes for implementing the Non-Local Means filter on the image lenna.noise.jpg.

The results are displayed below:

Releases

No releases published

Packages

No packages published

Languages