PS has a surface blur function, this function can be preserved at the edge of the image of the flat area of the fuzzy filtering, this function can achieve a good effect of grinding skin, its algorithm is as follows:
This algorithm is very simple, set the radius r, to get a side length (2r+1) of the Square window, then the pixel value of the center pixel of the window is X, of course, for the pixel RGB three components, it is necessary to calculate separately, so the time consumption of the algorithm is relatively large.
Similar algorithms also have bilateral filtering, but this kind of filtering is generally more time-consuming, although the bilateral filter can be in real-time on the PC, but there are still large problems in the mobile phone side.
Some comparisons are given below:
Original chart Face Blur (r=20,y=28)
Bilateral filtering (R=20)
It can be seen that the effect of the surface blur is better than the bilateral filter effect!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Image algorithm---surface fuzzy algorithm