Fast Separation of Direct and Global Components of a Scene using High Frequency Illumination


Data Creation

A checkerboard pattern image is created with 8x8 square size. Then the pattern is shifted 3 pixels in each of x- and y-directions thus creating total of 25 checkerboard pattern images. These patterns can be generated by running the script generate_pattern.py. I wrote a script which projects one of the pattern and captures a image of the scene corresponding to it. Script works fine with my Canon 400D camera. Following are two pictures of the whole setup,


Results

Following are the results generated after running the main.py script. It separates the direct and global illumination of the scene, First one is the image of the scene captured in white light and second and third corresponds to direct and global components of illumination.

Original Image Direct Component Global Component

Color Transfer


Colored Image Grey Image Result