Controllable Shadow Generation Using Pixel Height Maps

Yichen Sheng, Yifan Liu, Jianming Zhang, Wei Yin, A. Cengiz Oztireli +4 more
7/12/2022
cs.CVcs.GR

No confident code implementation found for this paper.

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 heigh, 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 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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sheng2022controllable,
  title  = {Controllable Shadow Generation Using Pixel Height Maps},
  author = {Yichen Sheng and Yifan Liu and Jianming Zhang and Wei Yin and A. Cengiz Oztireli and He Zhang and Zhe Lin and Eli Shechtman and Bedrich Benes},
  year   = {2022},
  eprint = {2207.05385},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.05385v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.05385.svg)](https://codeofpaper.com/paper/2207.05385)

Discussion