Controllable Shadow Generation Using Pixel Height Maps

Abstract

Shadows are essential for realistic image compositing. Physics based shadow rendering methods require 3D geometries, which are not always available. Deep learning-based shadow synthesis methods learn a mapping from the light information to an object’s shadow without explicitly modeling the shadow geometry. Still, they lack control and are prone to visual artifacts. We introduce “Pixel Height”, a novel geometry representation that encodes the correlations between objects, ground, and camera pose. The Pixel Height can be calculated from 3D geometries, manually annotated on 2D images, and it can also be predicted from a single-view RGB image by a supervised approach. It can be used to calculate hard shadows in a 2D image based on the projective geometry, providing precise control of the shadows’ direction and shape. Furthermore, we propose a data-driven soft shadow generator to apply softness to a hard shadow based on a softness input parameter. Qualitative and quantitative evaluations demonstrate that the proposed Pixel Height significantly improves the quality of the shadow generation while allowing for controllability.

Cite

Text

Sheng et al. "Controllable Shadow Generation Using Pixel Height Maps." Proceedings of the European Conference on Computer Vision (ECCV), 2022. doi:10.1007/978-3-031-20050-2_15

Markdown

[Sheng et al. "Controllable Shadow Generation Using Pixel Height Maps." Proceedings of the European Conference on Computer Vision (ECCV), 2022.](https://mlanthology.org/eccv/2022/sheng2022eccv-controllable/) doi:10.1007/978-3-031-20050-2_15

BibTeX

@inproceedings{sheng2022eccv-controllable,
  title     = {{Controllable Shadow Generation Using Pixel Height Maps}},
  author    = {Sheng, Yichen and Liu, Yifan and Zhang, Jianming and Yin, Wei and Oztireli, A. Cengiz and Zhang, He and Lin, Zhe and Shechtman, Eli and Benes, Bedrich},
  booktitle = {Proceedings of the European Conference on Computer Vision (ECCV)},
  year      = {2022},
  doi       = {10.1007/978-3-031-20050-2_15},
  url       = {https://mlanthology.org/eccv/2022/sheng2022eccv-controllable/}
}