# US 2017/0287136 A1 · Method and apparatus for real-time matting using local color estimation and propagation

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

- Number: US 2017/0287136 A1
- Document ID: US20170287136A1
- Status: Published application
- Kind: A1
- Application number: 15/083,749
- Filed: 2016-03-29
- Published: 2017-10-05
- Earliest claimed: 2016-03-29
- Assignees: Adobe Systems Incorporated
- Applicants: Adobe Systems Incorporated
- Inventors: RENZIL LEITH DSOUZA; SIDDHANT JAIN
- Web page: https://patentgrep.com/patent/US20170287136A1

## CPC

- G06T 7/11: Region-based segmentation
- G06T 7/12: Edge-based segmentation
- G06T 7/194: involving foreground-background segmentation
- G06T 7/90: Determination of colour characteristics
- G06T 2207/10024: Color image
- G06T 2207/20012: Locally adaptive
- G06T 2207/20161: Level set
- G06T 2207/30196: Human being; Person
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Embodiments of the present invention provide systems, methods, and computer storage media directed to operations to facilitate real-time matting using local color estimation and propagation. In accordance with embodiments described herein, an unknown region is estimated based on a set of received boundary points (a zero-level contour that separates the foreground object from the background) and additional contours based on increasing distances from the zero-level contour. The background and foreground colors for each pixel in the unknown region can be estimated and utilized to propagate the foreground and background colors to the appropriate contours in the unknown region. The estimated background and foreground colors may also be utilized to determine the opacity and true background and foreground colors for each pixel in the unknown region which results in an image matted in real-time.

## Claims

### Claim 1

One or more computer storage media storing computer-useable instructions that, when used by one or more computing devices, cause the one or more computing devices to perform operations to facilitate real-time matting of an image, the method comprising:
receiving a set of boundary points for a segmentation, the segmentation separating the foreground from the background of an image;
generating points of a band by expanding and contracting the boundary points of the segmentation in the background and foreground regions;
estimating background and foreground colors for each pixel in the band;
based at least on the estimated background and foreground colors, determining an opacity and true foreground colors for the image; and
based at least on the opacity and true foreground colors, providing an output image, the output image being processed with real-time matting.

### Claim 2 (depends on 1)

The one or more computer storage media of claim 1, further comprising determining opacity and true foreground colors for the output image based on the estimates of the background and foreground colors of the image.

### Claim 3 (depends on 1)

The one or more computer storage media of claim 1, wherein the set of boundary points for the segmentation represents a blend of background and foreground colors.

### Claim 4 (depends on 1)

The one or more computer storage media of claim 1, wherein generating points of the band comprises generating a first background contour level of neighboring background points.

### Claim 5 (depends on 4)

The one or more computer storage media of claim 4, wherein generating points of the band comprises generating a second background contour level of neighboring background points.

### Claim 6 (depends on 5)

The one or more computer storage media of claim 5, wherein generating points of the band comprises generating a first foreground contour level of neighboring foreground points.

### Claim 7 (depends on 6)

The one or more computer storage media of claim 6, wherein generating points of the band comprises generating a second foreground contour level of neighboring foreground points.

### Claim 8 (depends on 1)

The one or more computer storage media of claim 1, wherein estimating background colors for each pixel in the band comprises estimating an average of colors of background points in a neighborhood of each pixel.

### Claim 9 (depends on 8)

The one or more computer storage media of claim 8, wherein the neighborhood is a set of points adjacent to a particular pixel.

### Claim 10 (depends on 1)

The one or more computer storage media of claim 1, further comprising receiving a configurable matting radius from a user, the configurable matting radius defining the expanding and contracting of the boundary points in the background and foreground regions to generate points of the band.

### Claim 11

A computer-implemented method to facilitate real-time matting of an image, the method comprising:
utilizing a matting radius, identifying an unknown region of an image, wherein the matting radius is utilized to generate points of a band by expanding and contracting the boundary points of a segmentation that separates background and foreground regions of the image;
determining an alpha mask and despilling in the unknown region of the image; and
providing an output image, the output image corresponding to a real-time matting and despilling version of the image.

### Claim 12

(canceled)

### Claim 13 (depends on 11)

The method of claim 11, further comprising estimating background and foreground colors for each pixel in the band.

### Claim 14 (depends on 13)

The method of claim 13, wherein the alpha mask corresponds to an opacity and matting in the unknown region of the image and is based on the estimated background and foreground colors for each pixel in the band.

### Claim 15 (depends on 14)

The method of claim 14, further comprising, based on the estimated background and foreground colors, determining true foreground colors for the image.

### Claim 16 (depends on 15)

The method of claim 15, wherein the output image is based on the opacity and true foreground colors.

### Claim 17 (depends on 11)

The method of claim 11, wherein generating points of the band comprises:
generating a first background contour level of neighboring background points;
generating a second background contour level of neighboring background points;
generating a first foreground contour level of neighboring foreground points; and
generating a second foreground contour level of neighboring foreground points.

### Claim 18 (depends on 14)

The method of claim 14, wherein estimating background colors for each pixel in the band comprises estimating an average of colors of background points in a neighborhood of each pixel, the neighborhood being a set of points adjacent to a particular pixel.

### Claim 19 (depends on 11)

The method of claim 11, further comprising receiving a set of boundary points for a segmentation, the segmentation separating the foreground from the background of an image.

### Claim 20

A computerized system for facilitating real-time matting of an image, the system comprising:
a processor; and
computer storage media storing computer-useable instructions that, when used by the processor, cause the processor to:
receive a set of boundary points for a segmentation, the segmentation separating the foreground from the background of an image;
generate points of a band by expanding and contracting the boundary points of the segmentation in the background and foreground regions;
estimate background and foreground colors for each pixel in the band;
based on the estimated background and foreground colors, determine an opacity and true foreground colors for the image; and
based on the opacity and true foreground colors, provide an output image, the output image being processed with real-time matting.
