Cartesian Tensor Face Relighting

This code demonstrates the use of Cartesian Tensors (3rd order) for face image relighting.

You are now following this Submission

tensorRelightingDemo.m demonstrates the use of the Cartesian Tensor basis for facial Apparent BRDF (ABRDF) estimation and subsequent relighting. Given a few images of a face under different point source illuminations, the included code for ABRDF estimation can interpolate and extrapolate them to generate new images.

Please cite the following paper if you find this code useful:
Ritwik Kumar, Angelos Barmpoutis, Arunava Banerjee, Baba C. Vemuri, “Non-Lambertian Reflectance Modeling and Shape Recovery of Faces using Tensor Splines”, IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI), 2009.
http://seas.harvard.edu/~rkkumar/

Note that in the above paper we propose a method that combines the Cartesian Tensors at each pixel with spatial Splines. The spline part of the paper is not included in this code, but even without it, the provided code can be used for relighting, although with a little reduced relighting quality when the number of input images is small.

Cite As

Ritwik Kumar (2026). Cartesian Tensor Face Relighting (https://www.mathworks.com/matlabcentral/fileexchange/27914-cartesian-tensor-face-relighting), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0