• Click here for a list of all my projects.
  • Click here for Touchlib info. Source code here.
  • Click here for our multitouch community site.

Wednesday, June 06, 2007

Diffused Illumination


I've started taking a look at what would be necessary to start implementing support in touchlib for what I am hereby naming the 'diffused illumination' approach. Someone else proposed Rear Illuminated but it can also be front illuminated so we need a name that works for both. The picture is a test run doing a 'front illuminated' setup. I just pointed my screen towards the window and recorded a test movie. I've developed a simple algorithm that I think will work well for front and rear illuminated setups (front illuminated setups just need an extra step to invert the colors). Basically the algorithm is to blur the image then subtract the blurred image from the original. I believe this is how Photoshop's high pass filter works. I then also blur the image again to get rid of noise. What you are left with is the parts of the image that are sharp and in focus and the blurry parts are removed, which is exactly what we want.

Labels: ,

6 Comments:

Bsquang said...

can you share me part of invert light ?
the example very good !

4:02 AM  
David Wallin said...

all the code is in the SVN (http://code.google.com/p/touchlib/)

7:33 AM  
Hugo said...

Are you planing a new post comparing advantages from difuse ilumination vs side ilumination? That would be great.

12:09 AM  
Adriaan said...

jeez, I just love this kind of cleverness. Keep up the great work David!

5:18 AM  
kwmivp said...

Is there a way to make the invert value a permanent setting within OpenCV?

8:37 AM  
karan said...

where can i get high pass filter for touchlib

1:21 AM  

Post a Comment

<< Home