Image Filter art-neon, relief, wood carving filter, neon wood carving
Image effects can often present a refreshing effect on ordinary photos. There are many kinds of special effects, such as various popular
Filter effects. Today, we will introduce several simple filters: neon effect, relief effect, and wood carving effect.
1. Neon Filter
Neon is used to depict the contour of an image, outline the edge of a color change, strengthen its excessive effect, and make the image produce a contour luminous effect. The main principle is to calculate the gradient of the current pixel and its right and lower pixels, and then use the result value as the current pixel value, calculate the RGB component of the current pixel of the source image and its right and bottom pixels (the square root of the sum of the squared difference), and then use the gradient value as the RGB component of the processed pixel.
The algorithm process is as follows:
P (x, y) is the center position pixel of the 3X3 template.
2. Embossed Filter
The embossed filter is an embossed effect that converts an image to a gray one. The algorithm process is as follows:
3. Wood Carving Filter
The wooden filter is relatively simple. It is actually the result of binarization the image. set a threshold value. The value of the pixel value greater than the threshold value is 255. Otherwise, the value is 0, for details about the formula, see the introduction of binarization.
The above are the three simplest filter effects, and are finally placed as follows (the image is the source image in sequence, the neon filter, the embossed filter, and the wood carving filter ):
The above are three filter effects. I hope you will like them. In the future, we will introduce various novel filter effects and try to give you a fresh feel! Our goal is to achieve the most professional image filter effect!
Finally, download the full C # program DEMO:
Neon filter: http://www.zealpixel.com/forum.php? Mod = viewthread & tid = 47 & extra = page % 3D1
Embossed filter: http://www.zealpixel.com/forum.php? Mod = viewthread & tid = 48 & extra = page % 3D1
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.