Search code examples
iphoneimage-processingfilteringvideo-processing

Overlay "Structured Glas" Effect on iPhone Camera Feed - General Directions


I'm currently trying to write an app, that would be able to show the effects of glas, as seen through the iPhone Camera. I'm not talking about simple, uniform glas but glass like this: Glas Image

Now I already broke this into two problems:

1) Apply some Image Filter to the 2D-frames presented by the iPhone Camera. This has been done and seems possible, e.g. in the app: faceman

2) I need to get the individual lighting properties of a sheet of glas that my client supplies me with. Now basicly, there must be a way to read the information about how the glas distorts ands skews the image. I think It might be somehow possible to make a high-res picture of the plate of glasplate, laid on a checkerboard-image and somehow analyze this.

Now, I'm mostly searching for literature, weblinks on how you guys think I could start at 2. It doesn't need to be exact, in the end I just need something that looks approximately like the sheet of glass I want to show. And I'm don't even know where to search, Physics, Image Filtering or Comupational Photography books.

EDIT: I'm currently thinking, that one easy solution could be bump-mapping the texture on top of the camera-feed, I asked another question on this here.


Solution

  • Just wanted to add that I solved this old answer using the refraction example in the Khronos OpenGl ES SDK.

    Wrote a blog-entry with pictures about it :

    simulating windows with refraction

    refracted image clear image