Neon filter effect of Android image processing
Neon is used to depict the outline of the image, outline the edge of color change, strengthen its excessive effect, and make the image produce the effect of contour luminescence. The main steps are
1. According to the gradient operation of the current pixel and its right and lower pixels; 2. Then, the result value is taken as the current pixel value, that is, the RGB component of the current lower pixel of the original image is gradient calculated with its right and lower pixels (the square root of the sum of squares of the difference); 3. Then, the gradient value is taken as the RGB three components of the processed pixel;
The code is as follows:
The corresponding renderings are as follows:
The original drawing is as follows:
It's quite magical.
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.