Search code examples
iphoneiosobjective-cios6core-image

Mac PhotoBooth dent effect in iOS


I'm trying to implement various distortion effects on UIImage. I found GPUImage framework which work like charm for Swirl, Bulge, Pinch, Stretch, Sphere, GlassSphere etc. But now I want to apply dent effect which we can see it in macbook Photo booth application. How we can achieve such effect any idea ?


Solution

  • The Photo Booth dent effect is merely a bulge distortion with a negative scale. Photo Booth:

    Photo Booth dent filter

    GPUImageBulgeDistortionFilter with a negative scale:

    Bulge distortion

    I'm surprised that you wouldn't have seen this when trying out the various filters.