# US 2021/0287417 A1 · Apparatus and method for performing non-local means filtering using motion estimation circuitry of a graphics processor

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

- Number: US 2021/0287417 A1
- Document ID: US20210287417A1
- Status: Published application
- Kind: A1
- Application number: 16/819,124
- Filed: 2020-03-15
- Published: 2021-09-16
- Earliest claimed: 2020-03-15
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Attila Tamas AFRA; Johannes GUENTHER
- Web page: https://patentgrep.com/patent/US20210287417A1

## CPC

- G06T 15/005: {General purpose rendering architectures}
- G06T 5/70: Denoising; Smoothing
- G06T 7/20: Analysis of motion (motion estimation for coding, decoding, compressing or decompressing digital video signals H04N19/43, H04N19/51)
- G06T 15/06: Ray-tracing
- G06T 2207/10016: Video; Image sequence
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Apparatus and method for non-local means filtering using a media processing block of a graphics processor. For example, one embodiment of a processor comprises: ray tracing circuitry to execute a first set of one or more commands to traverse rays through a bounding volume hierarchy (BVH) to identify BVH nodes and/or primitives intersected by the ray; shader execution circuitry to execute one or more shaders responsive to a second set of one or more commands to render a sequence of image frames based on the BVH nodes and/or primitives intersected by the ray; and a media processor comprising motion estimation circuitry to execute a third set of one or more commands to perform non-local means filtering to remove noise from the sequence of image frames based on a mean pixel value collected across the sequence of image frames.

## Claims

### Claim 1

A processor comprising:
ray tracing circuitry to execute a first set of one or more commands to traverse rays through a bounding volume hierarchy (BVH) to identify BVH nodes and/or primitives intersected by the ray;
shader execution circuitry to execute one or more shaders responsive to a second set of one or more commands to render a sequence of image frames based on the BVH nodes and/or primitives intersected by the ray; and
a media processor comprising motion estimation circuitry to execute a third set of one or more commands to perform non-local means filtering to remove noise from the sequence of image frames based on a mean pixel value collected across the sequence of image frames, wherein the non-local means filtering of a target pixel comprises determining a mean value associated with all pixels across the sequence of images, weighted by similarity to the target pixel.

### Claim 2 (depends on 1)

The processor of claim 1 further comprising:
a command streamer to stream the first set of commands to the ray tracing circuitry, the second set of commands to the shader execution circuitry, and the third set of commands to the media processor.

### Claim 3 (depends on 2)

The processor of claim 2 wherein the third set of commands comprise an extension to an application programming interface (API) associated with the media processor.

### Claim 4

(canceled)

### Claim 5 (depends on 1)

The processor of claim 1 wherein the shader execution circuitry comprises a plurality of execution units (EUs) to execute a plurality of different shaders to render the sequence of image frames.

### Claim 6 (depends on 1)

The processor of claim 1 wherein the mean pixel value is determined based on an evaluation of blocks of pixels spread across the sequence of image frames.

### Claim 7 (depends on 6)

The processor of claim 6 wherein the blocks of pixels comprise macroblocks.

### Claim 8 (depends on 7)

The processor of claim 7 wherein a macroblock comprises one or more of: a 16×16 pixel block, an 8×8 pixel block, a 4×4 pixel block, a 16×8 pixel block, an 8×4 pixel block, or a 16×4 pixel block.

### Claim 9

A method comprising:
executing a first set of one or more commands on ray tracing circuitry to traverse rays through a bounding volume hierarchy (BVH) to identify BVH nodes and/or primitives intersected by the ray;
executing one or more shaders responsive to a second set of one or more commands to render a sequence of image frames based on the BVH nodes and/or primitives intersected by the ray; and
executing a third set of one or more commands on a media processor comprising motion estimation circuitry to perform non-local means filtering to remove noise from the sequence of image frames based on a mean pixel value collected across the sequence of image frames, wherein the non-local means filtering of a target pixel comprises determining a mean value associated with all pixels across the sequence of images, weighted by similarity to the target pixel.

### Claim 10 (depends on 9)

The method of claim 9 further comprising:
streaming the first set of commands to the ray tracing circuitry, the second set of commands to the shaders, and the third set of commands to the media processor.

### Claim 11 (depends on 10)

The method of claim 10 wherein the third set of commands comprise an extension to an application programming interface (API) associated with the media processor.

### Claim 12

(canceled)

### Claim 13 (depends on 9)

The method of claim 9 wherein the one or more shaders are to be executed on a plurality of execution units (EUs) to render the sequence of image frames.

### Claim 14 (depends on 9)

The method of claim 9 wherein the mean pixel value is determined based on an evaluation of blocks of pixels spread across the sequence of image frames.

### Claim 15 (depends on 14)

The method of claim 14 wherein the blocks of pixels comprise macroblocks.

### Claim 16 (depends on 15)

The method of claim 15 wherein a macroblock comprises one or more of: a 16×16 pixel block, an 8×8 pixel block, a 4×4 pixel block, a 16×8 pixel block, an 8×4 pixel block, or a 16×4 pixel block.

### Claim 17

A non-transitory machine-readable medium having program code stored thereon which, when executed by a machine, causes the machine to perform the operations of:
executing a first set of one or more commands on ray tracing circuitry to traverse rays through a bounding volume hierarchy (BVH) to identify BVH nodes and/or primitives intersected by the ray;
executing one or more shaders responsive to a second set of one or more commands to render a sequence of image frames based on the BVH nodes and/or primitives intersected by the ray; and
executing a third set of one or more commands on a media processor comprising motion estimation circuitry to perform non-local means filtering to remove noise from the sequence of image frames based on a mean pixel value collected across the sequence of image frames, wherein the non-local means filtering of a target pixel comprises determining a mean value associated with all pixels across the sequence of images, weighted by similarity to the target pixel.

### Claim 18 (depends on 17)

The non-transitory machine-readable medium of claim 17 further comprising:
streaming the first set of commands to the ray tracing circuitry, the second set of commands to the shaders, and the third set of commands to the media processor.

### Claim 19 (depends on 18)

The non-transitory machine-readable medium of claim 18 wherein the third set of commands comprise an extension to an application programming interface (API) associated with the media processor.

### Claim 20

(canceled)

### Claim 21 (depends on 17)

The non-transitory machine-readable medium of claim 17 wherein the one or more shaders are to be executed on a plurality of execution units (EUs) to render the sequence of image frames.

### Claim 22 (depends on 17)

The non-transitory machine-readable medium of claim 17 wherein the mean pixel value is determined based on an evaluation of blocks of pixels spread across the sequence of image frames.

### Claim 23 (depends on 22)

The non-transitory machine-readable medium of claim 22 wherein the blocks of pixels comprise macroblocks.

### Claim 24 (depends on 23)

The non-transitory machine-readable medium of claim 23 wherein a macroblock comprises one or more of: a 16×16 pixel block, an 8×8 pixel block, a 4×4 pixel block, a 16×8 pixel block, an 8×4 pixel block, or a 16×4 pixel block.
