Pimple Removal / Image Softening / Replacing Image Pixels with Surrounding Pixels

http://beautifulapps.mobi/acne/

And another example here Other Example that has same functionality

I need to implement this kind of acne removal in my own application. I tried searching on Stack Overflow and came across a lot of questions, but they were related to simple image filters. i thought about applying blur, but then i gave a good one though, and i think blur would not be the solution here.

The Brad GPUImage library also exists .. it has a lot of effects. I went through them, did not help in my situation ... it is possible that I may have missed an important one ... if you know it can be achieved from this library..kindly point this .. Otherwise any information about what steps to take to achieve this effect?

+3


source to share


1 answer


The GPUImage framework will help you. Check out the filters described here: JH Labs . What do you need to do (not easy, a lot of work)



  • Figure out your facial appearance. Use the face detection algorithm to find a face and then a sample of flesh from the forehead and cheeks.
  • For each type of skin tone, you need to have a range of colors that you think of as skin tones.
  • In your filter, if the pixel in question falls within the range of skin tones, apply a minimum or medium filter (the required noise reduction filter, not a blur filter), which won't give you any space. You may need to apply multiple passes of the filter.
+3


source







All Articles