Non-local means Filter
1. Bilateral Filter
Bilateral filter is an algorithm that consider spatial information and pixel value informaiton in the same time. That is why it is so-called "Bi"-lateral.
-
In natural image, the variation in spatial domain is low which means there are high correlation between the central pixel and its neighborhoods.
-
However, this assumption will greatly blur the results in the edge boundary which lost the edge features. Therefore, we compensate the flawness via the value of the pixels. In the boundary, bilateral give greatly different weights to two regions which makes the central pixel based more on the pixels that belong to its region.
Below are the formula of Bilateral filter:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
where
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
The above formula is derived from
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
which is clear that the weight is based on space factor and pixel value factor.
2. NL-means filter
NL-means filter is an extension of bilateral filter, where instead of averaging values of pixels with similar values, the values of pixels centered on similar patches are averaged.
The formula for NL-means can be derived from
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
There is only a slightly difference between bilateral filter and NL-means filter. The formula can be written as below:
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
where
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
In this program, it improves the computation time via image shift.
(similar to how we improve convolution)