# US 2024/0257449 A1 · Generating hard object shadows for general shadow receivers within digital images utilizing height maps

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0257449 A1
- Document ID: US20240257449A1
- Status: Published application
- Kind: A1
- Application number: 18/162,317
- Filed: 2023-01-31
- Published: 2024-08-01
- Earliest claimed: 2023-01-31
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Jianming Zhang; Yichen Sheng
- Web page: https://patentgrep.com/patent/US20240257449A1

## CPC

- G06T 15/60: Shadow generation
- G06T 7/50: Depth or shape recovery
- G06T 7/60: Analysis of geometric attributes
- G06T 7/73: using feature-based methods
- G06T 11/00: Two-dimensional [2D] image generation
- G06T 17/00: Three-dimensional [3D] modelling for computer graphics
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2215/12: Shadow map, environment map
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

The present disclosure relates to systems, methods, and non-transitory computer-readable media that generates object shadows for digital images utilizing height maps for the digital objects and background portrayed therein. For instance, in one or more embodiments, the disclosed systems generate, utilizing a height prediction neural network, an object height map comprising pixel heights for pixels of a digital object portrayed in a digital image. The disclosed system also generate, utilizing the height prediction neural network, a background height map comprising additional pixel heights for pixels of a background portrayed in the digital image. Further, the disclosed systems modify the digital image to include an object shadow for the digital object using the object height map and the background height map.

## Claims

### Claim 1

A method comprising:
generating, utilizing a height prediction neural network, an object height map comprising pixel heights for pixels of a digital object portrayed in a digital image;
generating, utilizing the height prediction neural network, a background height map comprising additional pixel heights for pixels of a background portrayed in the digital image; and
modifying the digital image to include an object shadow for the digital object using the object height map and the background height map.

### Claim 2 (depends on 1)

The method of claim 1,
further comprising determining a set of ground points corresponding to the pixels of the background utilizing the additional pixel heights for the pixels of the background from the background height map,
wherein modifying the digital image to include the object shadow for the digital object using the background height map comprises generating the object shadow for the digital object utilizing the set of ground points.

### Claim 3 (depends on 2)

The method of claim 2,
further comprising determining an additional set of ground points corresponding to the pixels of the digital object utilizing the pixel heights for the pixels of the digital object from the object height map,
wherein modifying the digital image to include the object shadow for the digital object using the background height map comprises generating the object shadow for the digital object utilizing the additional set of ground points.

### Claim 4 (depends on 1)

The method of claim 1,
further comprising determining that a pixel of the digital object is blocking light from reaching a pixel of the background within a three-dimensional space corresponding to the digital image utilizing the object height map and the background height map,
wherein modifying the digital image to include an object shadow for the digital object using the object height map and the background height map comprises modifying the pixel of the background to include a shadow pixel based on determining that the pixel of the digital object is blocking the light from reaching the pixel of the background.

### Claim 5 (depends on 4)

The method of claim 4, wherein determining that the pixel of the digital object is blocking the light from reaching the pixel of the background within the three-dimensional space corresponding to the digital image utilizing the object height map and the background height map comprises:
determining a ground point corresponding to the pixel of the digital object within the three-dimensional space utilizing a pixel height for the pixel of the digital object from the object height map;
determining a ground point corresponding to the pixel of the background within the three-dimensional space utilizing a pixel height for the pixel of the background from the background height map; and
determining that the pixel of the digital object is blocking the light from reaching the pixel of the background utilizing the ground point corresponding to the pixel of the digital object and the ground point corresponding to the pixel of the background.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining that the pixel of the digital object is blocking the light from reaching the pixel of the background utilizing the ground point corresponding to the pixel of the digital object and the ground point corresponding to the pixel of the background comprises:
determining a line between the ground point corresponding to the pixel of the background and a ground point corresponding to a light source of the digital image; and
determining that the ground point corresponding to the pixel of the digital object is positioned on the line.

### Claim 7 (depends on 1)

The method of claim 1, wherein modifying the digital image to include the object shadow for the digital object using the object height map and the background height map comprises generating a hard object shadow for the digital object using the object height map and the background height map.

### Claim 8 (depends on 7)

The method of claim 7, wherein modifying the digital image to include the object shadow for the digital object comprises generating, utilizing a shadow stylization neural network, a soft object shadow for the digital object based on the hard object shadow.

### Claim 9

A non-transitory computer-readable medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising:
determining an object height map comprising pixel heights for pixels of a digital object portrayed in a digital image;
determining a background height map comprising additional pixel heights for pixels of a background portrayed in the digital image; and
modifying the digital image to include an object shadow for the digital object using the object height map and the background height map.

### Claim 10 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein:
the operations further comprise extracting, from the digital image, a background mask corresponding to the background portrayed in the digital image; and
determining the background height map comprises generating, utilizing a height prediction neural network, the background height map based on the background mask.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein:
the operations further comprise determining at least one of a background cutout for the background portrayed in the digital image or a coordinate scheme for the digital image; and
generating, utilizing the height prediction neural network, the background height map comprises generating, utilizing the height prediction neural network, the background height map based on the background cutout or the coordinate scheme.

### Claim 12 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein:
the operations further comprise determining a set of pixels from the pixels of the background that correspond to a shadow projection of the digital object within the digital image using the object height map and the background height map; and
modifying the digital image to include the object shadow for the digital object using the object height map and the background height map comprises modifying the set of pixels from the pixels of the background to include shadow pixels based on determining that the set of pixels correspond to the shadow projection of the digital object.

### Claim 13 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein determining the set of pixels from the pixels of the background that correspond to the shadow projection of the digital object within the digital image, for a pixel of the background, comprises:
determining a line between the pixel of the background and a light source of the digital image;
identifying one or more pixels of the digital object that are positioned on the line; and
determining whether at least one pixel from the one or more pixels of the digital object is blocking light from reaching the pixel of the background.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein determining whether the at least one pixel of the digital object is blocking the light from reaching the pixel of the background comprises:
determining an additional line between a ground point for the pixel of the background and a ground point for the light source utilizing the background height map;
determining a ground point for the at least one pixel of the digital object utilizing the object height map; and
determining whether the ground point for the at least one pixel of the digital object is positioned on the additional line within a three-dimensional space corresponding to the digital image.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein:
determining whether the ground point for the at least one pixel of the digital object is positioned on the additional line comprises determining that the ground point for the at least one pixel of the digital object is positioned at a location other than the additional line; and
the operations further comprise maintaining an initial value of the pixel of the background based on determining that the ground point for the at least one pixel of the digital object is positioned at the location other than the additional line.

### Claim 16 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein:
determining whether the ground point for the at least one pixel of the digital object is positioned on the additional line comprises determining that the ground point for the at least one pixel of the digital object is positioned on the additional line; and
the operations further comprise modifying the pixel of the background to include a shadow pixel based on determining that the ground point for the at least one pixel of the digital object is positioned on the additional line.

### Claim 17

A system comprising:
one or more memory components; and
one or more processing devices coupled to the one or more memory components, the one or more processing devices to perform operations comprising:
receiving a digital image portraying a digital object against a non-planar background;
generating, utilizing a height prediction neural network, an object height map comprising pixel heights for pixels of a digital object;
generating, utilizing the height prediction neural network, a background height map comprising additional pixel heights for pixels of the non-planar background;
determining, utilizing the object height map and the background height map, ground points for the pixels of the digital object and the pixels of the non-planar background, a ground point for a pixel corresponding to a projection of the pixel onto a ground surface of the digital image; and
generating, across the non-planar background within the digital image, an object shadow for the digital object utilizing the ground points.

### Claim 18 (depends on 17)

The system of claim 17, wherein the one or more processing devices further perform operations comprising:
determining a vertical movement of the digital object within the digital image; and
adding a shift value to the pixel heights for the pixels of the digital object within the object height map in accordance with the vertical movement of the digital object.

### Claim 19 (depends on 18)

The system of claim 18, wherein the one or more processing devices further perform operations comprising modifying the object shadow across the non-planar background within the digital image utilizing the background height map and the object height map with the shift value.

### Claim 20 (depends on 17)

The system of claim 17, wherein generating, across the non-planar background within the digital image, the object shadow for the digital object utilizing the ground points comprises generating, utilizing the ground points, a hard object shadow for the digital object across the non-planar background.
