# US 2021/0082159 A1 · Method and system for color representation generation

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

- Number: US 2021/0082159 A1
- Document ID: US20210082159A1
- Status: Published application
- Kind: A1
- Application number: 17/247,043
- Filed: 2020-11-24
- Published: 2021-03-18
- Earliest claimed: 2018-05-18
- Assignees: The Governing Council of the University of Toronto
- Applicants: The Governing Council Of The University of Toronto
- Inventors: Maria SHUGRINA; Amlan KAR; Sanja FIDLER; Karan SINGH
- Web page: https://patentgrep.com/patent/US20210082159A1

## CPC

- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T 15/503: {Blending, e.g. for anti-aliasing}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

There is provided a system and method for color representation generation. In an aspect, the method includes: receiving three base colors; receiving a patchwork parameter; and generating a color representation having each of the three base colors at a vertex of a triangular face, the triangular face having a color distribution therein, the color distribution discretized into discrete portions, the amount of discretization based on the patchwork parameter, each discrete portion having an interpolated color determined to be a combination of the base colors at respective coordinates of such discrete portion. In further aspects, one or more color representations are generated based on an input image and can be used to modify colors of a reconstructed image.

## Claims

### Claim 1

A computer-implemented method for generating a color representation, the method comprising:
a receiving an input image;
determining a color representation for each region of the input image using a trained artificial neural network, the trained artificial neural network taking as input a histogram of the respective region and outputting the respective color distribution, the trained artificial neural network using alpha masks to determine regions of the image associated with each color representation, each color representation having one of three base colors at each respective vertex of a triangular face, the triangular face having a color distribution therein, the color distribution discretized into discrete portions, the amount of discretization based on a patchwork parameter, each discrete portion having an interpolated color determined to be a combination of the base colors at respective coordinates of such discrete portion; and
outputting the color representations.

### Claim 2 (depends on 1)

The method of claim 1, wherein the trained convolutional neural network comprises a U-net architecture.

### Claim 3 (depends on 2)

The method of claim 2, wherein the U-net architecture comprises a first neural network and a second neural network, the second neural network trained to determine the alpha masks for each region, the first neural network trained to encode and decode the histogram for each alpha mask to determine the base colors of the color distribution, discretization of the color distribution, and the patchwork parameter.

### Claim 4 (depends on 3)

The method of claim 3, wherein the first neural network is trained to minimize an error metric between colors of the respective region of the input image and the three base colors.

### Claim 5 (depends on 4)

The method of claim 4, wherein the colors of the respective region of the input image are represented by a deformed planar patch of Red-Green-Blue space.

### Claim 6 (depends on 1)

The method of claim 1, wherein the alpha mask comprises a grayscale image, and the sum of all alpha masks for each pixel is 1.

### Claim 7 (depends on 1)

The method of claim 1, wherein the combination of the base colors for each discrete portion comprises a linear combination of the base colors.

### Claim 8 (depends on 3)

The method of claim 3, wherein the first neural network further determines a wind parameter, and wherein blending behaviour of the color distribution is determined based on the wind parameter acting at a focal point.

### Claim 9 (depends on 1)

The method of claim 1, wherein the blending behavior uses a cubic Bezier triangle.

### Claim 10 (depends on 1)

The method of claim 1, wherein a softmax function is applied across channels at every pixel of the alpha masks.

### Claim 11

A system for generating a color representation, the system comprising one or more processors and a data storage, the one or more processors configured to execute:
a mapping module to use a trained artificial neural network to determine alpha masks each representing a region of a received input image, each alpha mask associated with a color representation; and
a representation module to determine the parameters of the color representation associated with each region of the input image using the trained artificial neural network, the trained artificial neural network taking as input a histogram of the respective region and outputting the respective color distribution, each color representation having one of three base colors at each respective vertex of a triangular face, the triangular face having a color distribution therein, the color distribution discretized into discrete portions, the amount of discretization based on a patchwork parameter, each discrete portion having an interpolated color determined to be a combination of the base colors at respective coordinates of such discrete portion, and outputting the color representations.

### Claim 12 (depends on 11)

The system of claim 11, wherein the trained convolutional neural network comprises a U-net architecture.

### Claim 13 (depends on 12)

The system of claim 12, wherein the U-net architecture comprises a first neural network and a second neural network, the second neural network trained to determine the alpha masks for each region, the first neural network trained to encode and decode the histogram for each alpha mask to determine the base colors of the color distribution, discretization of the color distribution, and the patchwork parameter.

### Claim 14 (depends on 13)

The system of claim 13, wherein the first neural network is trained to minimize an error metric between colors of the respective region of the input image and the three base colors.

### Claim 15 (depends on 14)

The system of claim 14, wherein the colors of the respective region of the input image are represented by a deformed planar patch of Red-Green-Blue space.

### Claim 16 (depends on 11)

The system of claim 11, wherein the alpha mask comprises a grayscale image, and the sum of all alpha masks for each pixel is 1.

### Claim 17 (depends on 11)

The system of claim 11, wherein the combination of the base colors for each discrete portion comprises a linear combination of the base colors.

### Claim 18 (depends on 13)

The system of claim 13, wherein the first neural network further determines a wind parameter, and wherein blending behaviour of the color distribution is determined based on the wind parameter acting at a focal point.

### Claim 19 (depends on 11)

The system of claim 11, wherein the blending behavior uses a cubic Bezier triangle.

### Claim 20 (depends on 11)

The system of claim 11, wherein a softmax function is applied across channels at every pixel of the alpha masks.
