# US 2022/0292635 A1 · Method and apparatus with image correction

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

- Number: US 2022/0292635 A1
- Document ID: US20220292635A1
- Status: Published application
- Kind: A1
- Application number: 17/402,906
- Filed: 2021-08-16
- Published: 2022-09-15
- Earliest claimed: 2021-03-11
- Assignees: Samsung Electronics Co., Ltd.; Industry-Academic Cooperation Foundation, Yonsei University
- Applicants: Samsung Electronics Co., Ltd.; Industry-Academic Cooperation Foundation, Yonsei University
- Inventors: Nahyup KANG; Seon Joo KIM; DongYoung KIM; JinWoo KIM; Yeonkyung LEE; Byung In YOO; Hyong Euk LEE
- Web page: https://patentgrep.com/patent/US20220292635A1

## CPC

- H04N 1/6077: {Colour balance, e.g. colour cast correction}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- G06T 3/4046: using neural networks
- G06T 7/11: Region-based segmentation
- H04N 1/6086: {by scene illuminant, i.e. conditions at the time of picture capture, e.g. flash, optical filter used, evening, cloud, daylight, artificial lighting, white point measurement, colour temperature}
- H04N 23/88: for colour balance, e.g. white-balance circuits or colour temperature control
- G06T 2207/10024: Color image
- G06T 2207/20081: Training; Learning
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method and apparatus with image correction is provided. A processor-implemented method includes generating, using a neural network model provided an input image, an illumination map including illumination values dependent on respective color casts by one or more illuminants individually affecting each pixel of the input image, and generating a white-adjusted image by removing at least a portion of the color casts from the input image using the generated illumination map.

## Claims

### Claim 1

A processor-implemented method, the method comprising:
generating, using a neural network model provided an input image, an illumination map comprising illumination values dependent on respective color casts by one or more illuminants individually affecting each pixel of the input image; and
generating a white-adjusted image by removing at least a portion of the color casts from the input image using the generated illumination map.

### Claim 2 (depends on 1)

The method of claim 1, wherein the generated illumination map includes an illumination vector in which a partial illumination vector corresponding to a chromaticity of one of the illuminants and another partial illumination vector corresponding to a chromaticity of another illuminant of the illuminants are mixed, for at least one pixel of the input image.

### Claim 3 (depends on 1)

The method of claim 1, wherein the illumination map includes a mixture coefficient of chromaticities of the illuminants affecting a pixel of the input image that is different from another mixture coefficient of the chromaticities of the illuminants affecting another pixel of the input image.

### Claim 4 (depends on 1)

The method of claim 1, wherein a result of the neural network model includes, for a pixel of the input image, first chromaticity information for one of the one or more illuminants and a corresponding first mixture coefficient, and the result of the neural network model further includes, for another pixel of the input image, second chromaticity information for the one of the one or more illuminants and a corresponding second mixture coefficient.

### Claim 5 (depends on 4)

The method of claim 4, wherein the generating of the illumination map includes generating a first pixel of the illumination map based on the first chromaticity information and the first mixture coefficient, and generating a second pixel of the illumination map based on the second chromaticity information and the second mixture coefficient.

### Claim 6 (depends on 1)

The method of claim 1, wherein the generating of the white-adjusted image comprises:
generating the white-adjusted image by applying the illumination map to the input image through an element-wise operation.

### Claim 7 (depends on 6)

The method of claim 6, wherein the applying of the illumination map to the input image through the element-wise operation includes dividing respective pixel values of each pixel at corresponding pixel locations in the input image by respective illumination values at same pixel locations as the corresponding pixel locations.

### Claim 8 (depends on 1)

The method of claim 1, wherein the white-adjusted image is a white-balanced image.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
determining chromaticity information corresponding to each of the illuminants by decomposing the illumination map with respect to each of the illuminants; and
generating, by adjusting the white-adjusted image, a partially white-balanced image with preserved chromaticity information corresponding to a portion of the illuminants, and chromaticity information corresponding to a remaining portion of the illuminants being white information corresponding to the remaining portion of the illuminants.

### Claim 10 (depends on 9)

The method of claim 9, further comprising controlling a display to display the partially white-balanced image.

### Claim 11 (depends on 9)

The method of claim 9,
wherein the determining further comprises determining a mixture coefficient corresponding to each of the illuminants by the decomposing of the illumination map with respect to each of the illuminants, and
wherein the generating of the partially white-balanced image comprises:
generating a partial illumination map corresponding to the portion of the illuminants using the chromaticity information corresponding to the portion of the illuminants and respective mixture coefficient maps corresponding to the portion of the illuminants;
generating a remaining illumination map corresponding to the remaining portion of the illuminants using the white information corresponding to the remaining portion of the illuminants and a corresponding mixture coefficient map corresponding to the remaining portion of the illuminants;
generating a relighting map by adding the partial illumination map and the remaining illumination map together; and
multiplying a pixel value of each pixel of the white-adjusted image by a relighting value corresponding to a pixel position of a corresponding pixel among relighting values of the relighting map.

### Claim 12 (depends on 1)

The method of claim 1, wherein the generating of the illumination map comprises:
extracting chromaticity information of each of the illuminants and a mixture coefficient map of each of the illuminants by applying the neural network model to the input image; and
generating the illumination map based on the extracted chromaticity information and the extracted mixture coefficient maps.

### Claim 13 (depends on 12)

The method of claim 12, wherein the generating of the illumination map comprises:
calculating a partial illumination map for each of the illuminants by respectively multiplying the chromaticity information of each of the illuminants and the mixture coefficient map of each of the illuminants; and
generating the illumination map by adding together the calculated partial illumination maps.

### Claim 14 (depends on 12)

The method of claim 12, wherein the generating of the white-adjusted image comprises:
determining chromaticity information, among the extracted chromaticity information, corresponding to a target illuminant among the illuminants;
calculating a partial illumination map for the target illuminant by multiplying the determined chromaticity information and a corresponding mixture coefficient map among the extracted coefficient maps;
generating a relighting map by adding the partial illumination map of the target illuminant and a remaining illumination map for a remaining portion of the illuminants; and
generating a partially white-balanced relighted image by applying the relighting map to the white-adjusted image, wherein the generated partially white-balanced relighted image preserves at least a portion of the color casts corresponding to the target illuminant.

### Claim 15 (depends on 14)

The method of claim 14, wherein the determining of the chromaticity information corresponding to the target illuminant comprises:
changing chromaticity information, among the extracted chromaticity information and corresponding to the remaining portion of the illuminants, to white information.

### Claim 16 (depends on 1)

The method of claim 1, further comprising:
determining a mixture coefficient map of each of the illuminants such that a sum of mixture coefficients calculated with respect to the illuminants for one pixel is a reference value;
calculating a partial illumination map corresponding to each of the illuminants respectively based on chromaticity information of each of the illuminants and a mixture coefficient map of each of the illuminants; and
applying the calculated partial illumination map to one of the input image and the white-adjusted image.

### Claim 17 (depends on 16)

The method of claim 16, wherein the determining of the mixture coefficient maps comprises:
identifying a total number of illuminant chromaticities that affect pixels in the input image; and
generating the respective mixture coefficient maps corresponding to the total number of the identified illuminant chromaticities.

### Claim 18 (depends on 17)

The method of claim 17, wherein the identifying of the total number of the illuminant chromaticities comprises:
setting the total number of the illuminant chromaticities to be three.

### Claim 19 (depends on 17)

The method of claim 17, wherein the generating of the respective mixture coefficient maps comprises:
initiating the generating of the respective mixture coefficient maps in response to the total number of the illuminant chromaticities being identified to be two.

### Claim 20 (depends on 16)

The method of claim 16, wherein the determining of the mixture coefficient maps comprises:
estimating a mixture coefficient map of one of two illuminants when a total number of the illuminants is the two illuminants; and
calculating a remaining mixture coefficient map of a remaining other illuminant of the two illuminants by subtracting each mixture coefficient, of the estimated mixture coefficient map, from the reference value.

### Claim 21 (depends on 1)

A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the image correction method of claim 1.

### Claim 22

An apparatus, comprising:
a processor; and
a memory storing one or more machine learning models and instructions, which when executed by the processor, configure the processor to:
generate, using one of the one or more machine learning models, an illumination map comprising illumination values dependent on respective color casts by illuminants individually affecting pixels of the input image; and
generate a white-adjusted image by adjusting at least a portion of the color casts from the input image using the generated illumination map.

### Claim 23 (depends on 22)

The apparatus of claim 22, wherein the processor is further configured to generate, by adjusting the white-adjusted image, a partially white-balanced image with preserved chromaticity information corresponding to a portion of the illuminants, and different chromaticity information corresponding to a remaining portion of the illuminants, compared to corresponding chromaticity information in the illumination map.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein the different chromaticity information is white information.

### Claim 25 (depends on 22)

The apparatus of claim 22, wherein the processor is further configured to:
decompose the illumination map, with respect to each of the illuminants, to obtain chromaticity information of the illuminants; and
generate, by adjusting the white-adjusted image, a partially white-balanced image with preserved chromaticity information corresponding to a portion of the illuminants, and different chromaticity information corresponding to a remaining portion of the illuminants, compared to the obtained chromaticity information.

### Claim 26 (depends on 25)

The apparatus of claim 25, wherein the different chromaticity information is white information.

### Claim 27 (depends on 22)

The apparatus of claim 22, further comprising an image sensor configured to capture the input image.

### Claim 28 (depends on 27)

The apparatus of claim 27, wherein the instructions further include instructions, which when executed by the processor, configure the processor to control an operation of the apparatus dependent on the white-adjusted image.

### Claim 29 (depends on 22)

The apparatus of claim 22,
wherein the instructions further include instructions, which when executed by the processor, configure the processor to identify a total number of illuminants that affect the pixels in the input image, and
wherein the use of the one of the one or more machine learning models includes selecting, based on the identified total number illuminants, the one of the one or more machine learning models from among the one or more machine learning models stored in the memory, with two different machine learning models being selected for two respectively different total numbers of illuminants.

### Claim 30

An apparatus, comprising:
an image sensor configured to obtain an input image; and
a processor configured to:
generate, using a neural network model provided an input image, an illumination map comprising illumination values dependent on respective color casts by one or more illuminants individually affecting each pixel of the input image; and
generate a white-balanced image by removing at least a portion of the color casts from the input image using the generated illumination map.

### Claim 31 (depends on 30)

The apparatus of claim 30, further comprising a display,
wherein the processor is further configured to cause the display to display the white-balanced image.
