Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.9 KB

README.md

File metadata and controls

22 lines (14 loc) · 1.9 KB

ChromaKick

Make videos where "ChromaKey-Green" areas get twirled

Click the thumbnail below to watch a demo of the result

A video showing the result

What I did here:

I Took GSChromaKeyFilter from Apple's "AVGreenScreenPlayer" sample code, made it compile for iOS and put it inside Apple`s RossyWriter sample code (instead of the "Rosy" CIFilter). I then changed the "Checkerboard Image Generator" background to the input image with the CITwirlDistortion applied to it

Click the thumbnail below to watch another demo

A video showing the result

What I did here:

I took the code from before. Also this time I took each input image frame coming in from the video camera and made two copies of it. But now, on one copy I applied a filter called CICircularWrap which caused the entire image content to wrap itself around a black filled circle in the middle. On the other copy I used a ChromaKey (green) filter where every green pixel was replaced with its corresponding pixel from the first (Circular) copy. The result is that green areas are replaced by texture of their circular surrounding. So I took a round green object (a soft ball from Ikea) and recorded it with the App. It looked like the ball is made out of a reflective material.