# US 2021/0342980 A1 · Filtering render data using multiple iterations for a filter direction

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

- Number: US 2021/0342980 A1
- Document ID: US20210342980A1
- Status: Published application
- Kind: A1
- Application number: 17/376,939
- Filed: 2021-07-15
- Published: 2021-11-04
- Earliest claimed: 2018-08-14
- Assignees: NVIDIA Corporation
- Applicants: Nvidia Corporation
- Inventors: Shiqiu Liu; Jacopo Pantaleoni
- Web page: https://patentgrep.com/patent/US20210342980A1

## CPC

- G06T 5/70: Denoising; Smoothing
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 5/20: using local operators
- G06T 5/40: using histogram techniques
- G06T 15/06: Ray-tracing
- G06T 15/50: Lighting effects
- G06T 2207/20182: Noise reduction or smoothing in the temporal domain; Spatio-temporal filtering
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Various approaches are disclosed to temporally and spatially filter noisy image data—generated using one or more ray-tracing effects—in a graphically rendered image. Rather than fully sampling data values using spatial filters, the data values may be sparsely sampled using filter taps within the spatial filters. To account for the sparse sampling, locations of filter taps may be jittered spatially and/or temporally. For filtering efficiency, a size of a spatial filter may be reduced when historical data values are used to temporally filter pixels. Further, data values filtered using a temporal filter may be clamped to avoid ghosting. For further filtering efficiency, a spatial filter may be applied as a separable filter in which the filtering for a filter direction may be performed over multiple iterations using reducing filter widths, decreasing the chance of visual artifacts when the spatial filter does not follow a true Gaussian distribution.

## Claims

### Claim 1

A method comprising:
computing a first sub-filter kernel that corresponds to a filter direction of a filter kernel and a second sub-filter kernel that corresponds to the filter direction of the filter kernel;
filtering render data corresponding to one or more ray-traced samples of a scene in a first filter pass using the first sub-filter kernel;
filtering the render data in a second filter pass using the second sub-filter kernel; and
generating a rendered frame of the scene using the render data filtered using at least the first filter pass and the second filter pass.

### Claim 2 (depends on 1)

The method of claim 1, wherein the filter kernel corresponds to a product of at least the first sub-filter kernel and the second sub-filter kernel.

### Claim 3 (depends on 1)

The method of claim 1, wherein the filter kernel includes a two-dimensional matrix, the first sub-filter kernel includes a first one-dimensional matrix, and the second sub-filter kernel includes a second one-dimensional matrix.

### Claim 4 (depends on 1)

The method of claim 1, wherein the filter direction is a first filter direction and the method further comprises:
computing a third sub-filter kernel that corresponds to a second filter direction of the filter kernel; and
after the first filter pass, filtering the render data in a third filter pass using the third sub-filter kernel, wherein the rendered frame is further generated using the render data filtered using the third filter pass.

### Claim 5 (depends on 1)

The method of claim 1, comprising computing a filter radius of the first sub-filter kernel based at least on a quantity of sub-filter kernels of the filter kernel.

### Claim 6 (depends on 1)

The method of claim 1, wherein the filter kernel is a kernel of an anisotropic spatial filter applied to the render data as a separable filter.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first sub-filter kernel has a different filter radius than the second sub-filter kernel.

### Claim 8 (depends on 1)

The method of claim 1, wherein the filter direction is unaligned with horizontal and vertical directions of a virtual screen that corresponds to the render data.

### Claim 9

A system comprising:
one or more processors; and
one or more memory devices storing instructions that, when executed by the one or more processors, cause the one or more processors to perform a method comprising:
computing a first filter radius and a second filter radius;
applying a filter in a filter direction to render data corresponding to one or more ray-traced samples of a scene over a plurality of iterations, at least one iteration of the plurality of iterations using the first filter radius and at least one iteration of the plurality of iterations using the second filter radius; and
generating a rendered frame of the scene based at least on the applying the filter in the filter direction to the rendered data.

### Claim 10 (depends on 9)

The system of claim 9, wherein the first filter radius is larger than the second filter radius.

### Claim 11 (depends on 9)

The system of claim 9, wherein the computing the first filter radius and the second filter radius is based at least on a quantity of the plurality of iterations.

### Claim 12 (depends on 9)

The system of claim 9, wherein the filter is an anisotropic spatial filter applied to the render data as a separable filter to generate the rendered frame.

### Claim 13 (depends on 9)

The system of claim 9, further comprising determining, based at least on the first filter radius, a sub-filter kernel of a filter kernel that corresponds to the filter, wherein the filter is applied using the sub-filter kernel.

### Claim 14 (depends on 9)

The system of claim 9, wherein the filter direction is a first filter direction and the first filter direction and a second filter direction used to apply the filter to the render data are unaligned with horizontal and vertical directions of a virtual screen that corresponds to the render data.

### Claim 15

A processor comprising:
one or more processing units to determine a filter based at least on render data corresponding to ray-traced samples of a scene, apply the filter to the render data in at least a filter direction as a separable filter over a plurality of passes to generate filtered render data, and generate a rendered frame of the scene using the filtered render data.

### Claim 16 (depends on 15)

The processor of claim 15, wherein the separable filter is applied in the filter direction using a first filter kernel and a second filter kernel.

### Claim 17 (depends on 15)

The processor of claim 15, wherein the filter is applied in the filter direction over multiple iterations using reducing filter widths.

### Claim 18 (depends on 15)

The processor of claim 15, wherein a size of the filter is computed based at least on a hit distance between a point on a surface of the scene and another object in the scene.

### Claim 19 (depends on 15)

The processor of claim 15, wherein the ray-traced samples are selected from:
ray-traced shadow samples of the scene;
ray-traced reflection samples of the scene;
ray-traced ambient occlusion samples of the scene; and
ray-traced global illumination samples of the scene.

### Claim 20 (depends on 15)

The processor of claim 15, wherein the filter direction is unaligned with horizontal and vertical directions of a virtual screen that corresponds to the render data.
