A Titit effect of image processing on imitation oil painting oilpaint oil painting filter Watercolor cartoon filter v2
1.1. Specific source code reference 1
2. , watercolor painting has several obvious characteristics as follows:1
2.1.   also 5 level is sufficient for 1
2.2. Color Universal use of a single color, generally no more than 7 colors, Unlike real photos, With a rich variety of colors;2
3. the Watercolor filter algorithm is as follows:2
3.1. This is actually the process of reducing the dimension at the grayscale level. 3
3.2. radius of the template radius is used to adjust the watercolor level of watercolor. that is, the process of reducing the dimensions of the color 3
3.3. You can find a lot by searching a little bit. However, many of the online claims to be the oil painting algorithm, in fact, just frosted glass (that is, randomly in the vicinity to find a pixel to replace the current position), feel the actual effect is not as good as using open and close operation. 3
1.1.
specific source code reference
Atitit atitit image processing oilpaint oil Painting Filter Watercolor Source Realization
2.
,oil painting Watercolor
There are several notable features as follows:2.1.
The level of light and Shade (grayscale) is less than 5 levels are sufficient
a lot of pictures really color, more than one . the more layers, the more detail. Ordinary oil painting generally bright level of less than, a contrast is 5 levels of gray level and The contrast of the ten. Probably the average person also has the 5 level to be sufficient.
2.2.
Color Universal use of a single color, generally no more than 7 colors, Unlike real photographs, they have a rich variety of colors;
2, Strong edge All things have a relatively obvious black edge, giving a distinct and prominent sense of division
For color universal, in the image algorithm, in fact, is to reduce the type of color, the color of the type of dimensionality, which we can use color clustering algorithm, bilateral filtering algorithm and so on, wherein the bilateral filter in the color flat, but also to retain the edge information
3.
The Watercolor filter algorithm is as follows:
Grayscale, discretization (clustering).
Grayscale Level N is the color of the most used in watercolor painting level, general 7 species for good
1, assuming that the original image is F (x, Y), Gray to get g (x, y);
2, build a radius of the square template m, the edge length is 2*radius+1;
3, the M traverses each pixel in turn on F, for the current pixel p (x, y):
settings Gray level n, because the image has a gray value range of 0-255,
3.1 first divides the range of 0-255 by N to n Gray level for the corresponding pixel in the template, we put it into the corresponding Gray level
3.2 Statistics of n Grayscale Level number of pixels, the one that counts the most pixels level inside, the pixel's Individual Color Components The mean value Mean, which is the value of the template center pixel p (x, y).
3.1.
This is actually the process of reducing the dimension of the gray level.
Note: Number of paint barrels n can adjust image smoothness , gray level ,
3.2.
The radius radius of the template is used to adjust the watercolor level. which is the process of reducing the dimensions of the color
3.3.
you can find a lot of it by searching a little bit. However, many of the online claims to be the oil painting algorithm, in fact, just frosted glass (that is, randomly in the vicinity to find a pixel to replace the current position), feel the actual effect is not as good as using open and close operation.
Reference
image filter Art --- watercolor filter - Integrated programming class other synthesis - Red Black Alliance . HTML
Java Implementation Watercolor filter. html
author:: Nickname :Old Wow's claws( Full Name::AttilaxAkbar Al Rapanui Attilaksachanui)
Kanji Name: Etila ( Ayron) , email:[email protected]
reprint Please indicate source: http://www.cnblogs.com/attilax/
Atiend
Atitit image processing oil painting effect oilpaint oil painting Filter Watercolor Cartoon Filter v2