Giter Club home page Giter Club logo

lighttransportmatrix-acquisition's Introduction

Light Transport Matrix Acquisition [Video]

What is the Light Transport Matrix?

The Light Transport Matrix expresses the relationship between the light source (e.g., projector or display) and the camera in linear form. It can represent as follows:

c = T p

The column vector p is the projected pattern (pxq, 1). The column vector c is the image captured by the camera (mxn, 1). The matrix T is the light transport matrix (mxn, pxq). Where p and q are the sizes of the projected pattern, and m and n are the sizes of the image captured by the camera.

The light transport matrix is used for relighting [Debevec et al., 2000] and dual-photography [Sen et al., 2005].

Acquisition of the Light Transport Matrix

This project uses multiplexed illumination [Schechner et al., 2003] to acquire the light transport matrix. Multiple sources are illuminated in a single capture in the measurement, and the matrix is estimated after capturing images. Here I use the unstructured light pattern [Couture et al., 2011] for projection. This method can be set to any spatial frequency to generate random patterns with multiple frequencies.

Suppose N images are taken (note: N must be greater than the number of light sources (N>=pxq)). Stack the vectors c and p to create the matrices cn (mxn, N) and pn (pxq, N). The relation to the light transport matrix T (mxn, pxq) is as follows:

cn = T pn

If there is a pseudo-inverse pn+ of matrix pn, then matrix T can be calculated as follows:

T = cn pn+

Measurement Setup

Here is the setup for the measurement. A display (EIZO, FlexScan EV2451) is used as a light source. The original resolution of the display is 1920x1080, but I set it to 48x27 (i.e. p=48, q=27) to reduce the measurement time. The image is taken with a color camera (FLIR, BFS-U3-23S3C-C) set to 480x300 (i.e. m=480, n=300). In the scene, a color checker and glass objects are placed.

Relighting Results

Here are the results of relighting using the light transport matrix.

Try the Light Transport Matrix as You Like

This repository provides the measured data and programs. So you can do relighting too.

Download the Measured Data

You can download the measured data from here. This data is set to 16x9 display resolution (i.e. p=16, q=9) to reduce the size.

Usage

Requirements

Programs

  • 01_calculate_light_transport.py: Calculate the light transport matrix from measured data.
  • 02_relighting.py: Relighting with the light transport matrix.
  • 03_visualize.py: Visualize the distribution from light sources at specific camera pixel.

Screen shot of 03_visualize.py.

References

  • Light transport matrices (Computational Photography, CMU)
  • Debevec et al., "Acquiring the reflectance field of a human face." SIGGRAPH 2000.
  • Sen et al., "Dual photography." SIGGRAPH 2005.
  • Schechner et al., "A theory of multiplexed illumination." ICCV 2003.
  • Couture et al., "Unstructured light scanning to overcome interreflections." ICCV 2011.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.