# US 2025/0166141 A1 · Image retouching model conditional on color histograms

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

- Number: US 2025/0166141 A1
- Document ID: US20250166141A1
- Status: Published application
- Kind: A1
- Application number: 18/815,753
- Filed: 2024-08-26
- Published: 2025-05-22
- Earliest claimed: 2023-11-16
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Tingting Zhao; Chenguang Liu; Kamal Jnawali; Chang Su
- Web page: https://patentgrep.com/patent/US20250166141A1

## CPC

- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 5/40: using histogram techniques
- G06T 5/60: using machine learning, e.g. neural networks
- G06T 2207/10024: Color image
- G06T 2207/20072: Graph-based image processing
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Image retouching includes receiving, by a conditional network, conditional information including one or more color histograms for an input image. The input image has a first coloration. The conditional network generates a plurality of scalar parameters based on the one or more color histograms. From the input image, an output image is generated by a base generative network. The output image has a second coloration different from the first coloration. One or more intermediate features generated by the base generative network are modulated based on the plurality of scalar parameters to generate the output image.

## Claims

### Claim 1

A method, comprising:
receiving, by a conditional network, conditional information including one or more color histograms for an input image, wherein the input image has a first coloration;
generating, by the conditional network and based on the one or more color histograms, a plurality of scalar parameters; and
generating, from the input image, an output image having a second coloration different from the first coloration using a base generative network, wherein one or more intermediate features generated by the base generative network are modulated based on the plurality of scalar parameters to generate the output image.

### Claim 2 (depends on 1)

The method of claim 1, wherein the one or more color histograms are for one or more different channels.

### Claim 3 (depends on 2)

The method of claim 2, wherein the one or more color histograms correspond to one or more color spaces.

### Claim 4 (depends on 3)

The method of claim 3, wherein the one or more color spaces includes at least one of a Red-Green-Blue (RGB) color space, a YUV color space, or a CIELAB color space.

### Claim 5 (depends on 1)

The method of claim 1, wherein the base generative network and the conditional network are trained jointly by minimizing a loss function.

### Claim 6 (depends on 5)

The method of claim 5, wherein the loss function includes a pixel error between a ground truth image and a version of a training image output from the base generative network.

### Claim 7 (depends on 5)

The method of claim 5, wherein the loss function includes a structural similarity error between a ground truth image and a version of a training image output from the base generative network.

### Claim 8 (depends on 5)

The method of claim 5, wherein the loss function includes at least one of a cosine error or a feature reconstruction error, wherein each error is calculated between a version of a training image output from the base generative network and a ground truth version of the training image.

### Claim 9 (depends on 1)

The method of claim 1, wherein the conditional network includes a multilayer perceptron network for each histogram of a different channel.

### Claim 10 (depends on 1)

The method of claim 1, wherein the base generative network includes a plurality of convolutional blocks, wherein each convolutional block receives one or more scalar parameters of the plurality of scalar parameters.

### Claim 11

A system, comprising:
one or more processors;
one or more computer-readable storage mediums; and
computer-readable program instructions stored on the one or more computer-readable storage mediums to cause the one or more processors to perform operations comprising:
receiving, by a conditional network, conditional information including one or more color histograms for an input image, wherein the input image has a first coloration;
generating, by the conditional network and based on the one or more color histograms, a plurality of scalar parameters; and
generating, from the input image, an output image having a second coloration different from the first coloration using a base generative network, wherein one or more intermediate features generated by the base generative network are modulated based on the plurality of scalar parameters to generate the output image.

### Claim 12 (depends on 11)

The system of claim 11, wherein the one or more color histograms are for one or more different channels.

### Claim 13 (depends on 12)

The system of claim 12, wherein the one or more color histograms correspond to one or more color spaces.

### Claim 14 (depends on 13)

The system of claim 13, wherein the one or more color spaces includes at least one of a Red-Green-Blue (RGB) color space, a YUV color space, or a CIELAB color space.

### Claim 15 (depends on 14)

The system of claim 14, wherein the base generative network and the conditional network are trained jointly by minimizing a loss function.

### Claim 16 (depends on 15)

The system of claim 15, wherein the loss function includes a pixel error between a ground truth image and a version of a training image output from the base generative network.

### Claim 17 (depends on 15)

The system of claim 15, wherein the loss function includes a structural similarity error between a ground truth image and a version of a training image output from the base generative network.

### Claim 18 (depends on 15)

The system of claim 15, wherein the loss function includes at least one of a cosine error or a feature reconstruction error, wherein each error is calculated between a version of a training image output from the base generative network and a ground truth version of the training image.

### Claim 19 (depends on 11)

The system of claim 11, wherein the conditional network includes a multilayer perceptron network for each histogram of a different channel; and
wherein the base generative network includes a plurality of convolutional blocks, wherein each convolutional block receives one or more scalar parameters of the plurality of scalar parameters.

### Claim 20

A computer program product, comprising:
one or more computer-readable storage mediums, and program instructions collectively stored on the one or more computer-readable storage mediums, wherein the program instructions are executable by computer hardware to initiate operations including:
receiving, by a conditional network, conditional information including one or more color histograms for an input image, wherein the input image has a first coloration;
generating, by the conditional network and based on the one or more color histograms, a plurality of scalar parameters; and
generating, from the input image, an output image having a second coloration different from the first coloration using a base generative network, wherein one or more intermediate features generated by the base generative network are modulated based on the plurality of scalar parameters to generate the output image.
