Non-local means explained
Non-local means is an algorithm in image processing for image denoising. Unlike "local mean" filters, which take the mean value of a group of pixels surrounding a target pixel to smooth the image, non-local means filtering takes a mean of all pixels in the image, weighted by how similar these pixels are to the target pixel. This results in much greater post-filtering clarity, and less loss of detail in the image compared with local mean algorithms.[1]
If compared with other well-known denoising techniques, non-local means adds "method noise" (i.e. error in the denoising process) which looks more like white noise, which is desirable because it is typically less disturbing in the denoised product.[2] Recently non-local means has been extended to other image processing applications such as deinterlacing,[3] view interpolation,[4] and depth maps regularization.[5]
Definition
Suppose
is the area of an image, and
and
are two points within the image. Then, the algorithm is:
[6] u(p)={1\overC(p)}\int\Omegav(q)f(p,q)dq.
where
is the filtered value of the image at point
,
is the unfiltered value of the image at point
,
is the weighting function, and the integral is evaluated
.
is a normalizing factor, given by
Common weighting functions
The purpose of the weighting function,
, is to determine how closely related the image at the point
is to the image at the point
. It can take many forms.
Gaussian
The Gaussian weighting function sets up a normal distribution with a mean,
and a variable standard deviation:
[7] f(p,q)=
| -{{\left\vertB(q)-B(p)\right\vert2 |
e | |
\overh2}}
where
is the filtering parameter (i.e., standard deviation) and
is the local mean value of the image point values surrounding
.
Discrete algorithm
For an image,
, with discrete pixels, a discrete algorithm is required.
u(p)={1\overC(p)}\sumqv(q)f(p,q)
where, once again,
is the unfiltered value of the image at point
.
is given by:
Then, for a Gaussian weighting function,
f(p,q)=
| -{{\left\vertB(q)2-B(p)2\right\vert |
e | |
\overh2}}
where
is given by:
B(p)={1\over|R(p)|}\sumiv(i)
where
and is a square region of pixels surrounding
and
is the number of pixels in the region
.
Efficient implementation
The computational complexity of the non-local means algorithm is quadratic in the number of pixels in the image, making it particularly expensive to apply directly. Several techniques were proposed to speed up execution. One simple variant consists of restricting the computation of the mean for each pixel to a search window centred on the pixel itself, instead of the whole image. Another approximation uses summed-area tables and fast Fourier transform to calculate the similarity window between two pixels, speeding up the algorithm by a factor of 50 while preserving comparable quality of the result.[8]
See also
External links
Notes and References
- Book: Buades. Antoni. 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05) . A non-local algorithm for image denoising. Computer Vision and Pattern Recognition, 2005. 20–25 June 2005. 2. 60–65. 10.1109/CVPR.2005.38. 978-0-7695-2372-9. 10.1.1.103.9157. 11206708 .
- Web site: Buades. Antoni. On image denoising methods. 123 Seminars Only.
- Book: Dehghannasiri. R.. 2012 Conference Record of the Forty Sixth Asilomar Conference on Signals, Systems and Computers (ASILOMAR). 1708–1712. Shirani. S.. A novel de-interlacing method based on locally-adaptive Nonlocal-means. 2012. 10.1109/ACSSC.2012.6489324. 978-1-4673-5051-8. 20709950 .
- Book: Dehghannasiri. R.. 2013 IEEE International Conference on Multimedia and Expo Workshops (ICMEW). 1–4. Shirani. S.. A view interpolation method without explicit disparity estimation . 2013. 10.1109/ICMEW.2013.6618274. 978-1-4799-1604-7. 32025000 .
- Web site: Martinello . Manuel . Favaro . Paolo . Depth Estimation From a Video Sequence with Moving and Deformable Objects . IET Image Processing Conference.
- Buades. Antoni. Non-Local Means Denoising. Image Processing on Line. 2011 . 1 . 208–212 . 10.5201/ipol.2011.bcm_nlm . 34599104 . free.
- Web site: Buades. Antoni. On image denoising methods (page 10). 123 Seminars Only.
- Fast non-local algorithm for image denoising. International Conference on Image Processing. 2006. Wang. Jin. Guo. Yanwen. Ying. Yiting. Liu. Yanli. Peng. Qunsheng. 1429–1432.