Facial Shadow Removal

William A. P. Smith, Edwin R. Hancock

Abstract

Reconstructing 3D facial geometry from a single image is a significant challenge in computer vision, primarily due to the presence of deep self-shadows that violate standard reflectance assumptions. This paper presents a novel approach that combines a statistical point distribution model of facial surface normals with robust M-estimators. By utilizing an azimuthal equidistant projection to linearize spherical data and treating shadowed regions as statistical outliers, the proposed method effectively reconstructs occluded facial features using information from well-lit regions. Experimental results on the 3DFS and Yale-B datasets demonstrate high accuracy and resilience even under extreme lighting conditions.

Introduction

Shape-from-Shading (SFS) has long been a fundamental challenge in computer vision. The goal is to recover the 3D geometry of an object from the variations in brightness across its surface. For human faces, this task is complicated by two primary factors: the inherent ambiguity of surface orientation from a single intensity value and the presence of self-shadowing.

Standard SFS methods typically assume Lambertian reflectance, where pixel intensity is proportional to the cosine of the angle between the surface normal and the light source. However, when features like the nose or brow cast deep shadows, the intensity drops to zero, providing no geometric information. This often causes traditional algorithms to produce distorted or "imploded" reconstructions. This paper addresses these issues by integrating robust statistics with global shape priors.

Methodology

Statistical Modeling of Facial Normals

To constrain the SFS problem, the authors employ a statistical model of human facial geometry. Modeling surface normals directly is difficult because they reside on a spherical manifold, making linear statistical techniques like Principal Component Analysis (PCA) inapplicable. To overcome this, the method utilizes the azimuthal equidistant projection. This cartographic technique maps points from the sphere onto a 2D plane while preserving distances from a central point. By projecting facial surface normals into this 2D space, a Point Distribution Model (PDM) can be constructed to capture the primary modes of variation in human facial structure.

Robust Fitting via M-Estimators

The core innovation of this work is the treatment of shadowed regions as statistical outliers rather than missing data. When fitting the statistical model to an input image, the authors employ Huber’s M-estimator. Unlike standard least-squares fitting, which penalizes errors quadratically and is highly sensitive to outliers, M-estimators provide a robust alternative by transitioning to a linear penalty for large residuals.

Robust M-estimator functions: weight ($w_\sigma$), loss ($\rho_\sigma$), and influence ($\psi_\sigma$) used to suppress the impact of shadowed pixels during model fitting.

The algorithm iteratively adjusts the model parameters to minimize a robust cost function. Pixels in deep shadow, or those with anomalous albedo (such as facial hair), result in large residuals that do not conform to the Lambertian model. The M-estimator identifies these pixels and down-weights their influence on the final fit. Consequently, the reconstruction of shadowed areas is driven by the "inlier" pixels in well-lit regions and the underlying statistical constraints of the facial model. This allows the system to effectively "hallucinate" the correct 3D shape of occluded features, such as the eye sockets or the side of the nose, based on the visible portions of the face.

Evaluation and Results

Datasets

The researchers evaluated their approach using two primary sources:

  • 3DFS Dataset: 100 high-resolution 3D scans from a Cyberware laser scanner. A "leave-one-out" strategy was used to provide ground truth for quantitative accuracy.
  • Yale-B Database: A standard computer vision dataset containing real-world images of faces under extreme lighting conditions and varying skin/hair colors.

Key Findings

Quantitative analysis on the 3DFS data showed a mean surface normal error of less than 8 degrees across the entire face. In qualitative tests on the Yale-B database, the system demonstrated remarkable resilience to extreme lighting. Even when the primary light source was positioned more than 60 degrees from the camera axis—leaving nearly half the face in shadow—the algorithm successfully recovered a plausible 3D shape. Furthermore, by comparing the recovered geometry with the original image, the system can generate accurate "cast-shadow maps," identifying exactly which regions were obscured.

Conclusion and Future Work

By combining statistical shape priors with robust estimation techniques, this method provides a robust framework for 3D face reconstruction in unconstrained environments. While the current model assumes a constant albedo and Lambertian reflectance, it successfully mitigates the impact of self-shadowing. Future work will focus on incorporating more complex reflectance models to handle specular highlights and varying skin tones more effectively, further improving the system's applicability to diverse real-world imagery.

Summary updated

BibTeX
@inproceedings{smith2006facial,
  author = {William A. P. Smith and Edwin R. Hancock},
  title = {{Facial Shadow Removal}},
  booktitle = {SSPR/SPR},
  year = {2006},
  doi = {10.1007/11815921\_62},
}
Figure