Also try simple skin whitening (machine vision)

Source: Internet
Author: User

Two blog posts a day are also drunk.

This time also study a fun thing about whitening skin Beauty

Achieve the goal: close to the United States 美图秀秀 and other software processing effect, with whitening, peeling and other effects

So there may be some of the following implementation methods

1. Direct the original image smooth skin, and then directly whitening. The possible process is as follows

From left to right is the original-"peeling effect-" whitening effect

Then this process can be easily divided into 1. Peel the original, 2 skin whitening

So what do you do with the skin? We grind the skin is for what--remove small print small pits and so on but hope looks like we are still that contour, the eye or the outline of the eye, summed up is to go to the edge of the noise, the idea of the edge of the noise side of the filter is a bit like, so you can use the bilateral filter to try.

First introduce the bilateral filter directly to see the picture, see the effect of the floating can see the character of the flaw, such as the edge can see the contour of the task, the result is the defect to smooth, edge or almost unchanged retention, so can achieve the results we want (middle)

After finishing the skin, it is necessary to do whitening, whitening is actually a color balance. First of all to clear our goal is whitening, whitening means brightness will be bright, but we hope that the color as far as possible, we know that the color picture has three channels RGB, so adjust the RGB each channel increment should be the same, otherwise it may cause chromatic aberration.

After determining the rules, we are actually simplifying the problem, the color can not change, then actually is in the brightness, we can of course directly add an offset brightness, but that effect will be very blunt very strange, this piece can refer to some image processing software, Theoretically, the block should be designed as a non-linear mapping relationship with a 128-centric reduction. Can see after whitening, neighboring pixels due to changes in brightness, gradient has weakened, has enhanced a little beauty skin effect.

Although the above looks like the advertising cover is beautiful and exciting, but sometimes we encounter the following situation

Beauty is very beautiful, but give people feel very fake, you call those in social networking site girls How to use these pictures to cheat eat cheat drink ah, to deceive the hearts of otaku, processed pictures must be real point. In other words, the picture after processing

Even a pore can not see, you say I believe, also plainly is the lack of some of the original image of the texture, then we have some of the following practices to make the finished picture more realistic and textured

Probably go through the following steps the original-"Grind the skin-" the texture of the template by the grinding data calculation-"Adjust the texture of the proportions added to the original or matte chart-" with a textured figure for whitening.

Some of the above steps do not repeat, focus on the steps that are not

1. Calculate the texture template

We know that after the skin of the image is not textured, and our original picture is to preserve the original texture, so the direct difference between the two is the texture we want, corresponding to the 3 figure.

2. Adjust the proportions of the textures

Get the texture template, with no texture of the picture slightly dot we get the texture template can be obtained and smooth due to the texture of the picture, of course, the result may be a bit stiff, you can do a blur of the texture template (1) so that the entire fusion process will not be too stiff.

Summed up: The basic can meet the requirements, the article will not be specific to relate to the relevant formulas or related code, such as the comparison of fun to understand the principles and ideas are more important. Although meet the requirements, but in fact, a lot of process can adjust the parameters a bit more, the degree of grinding may be too much or not enough, to really get a more perfect system also need to consider more things.

Also try simple skin whitening (machine vision)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.