# US 2010/0165139 A1 · Image gamut mapping

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

- Number: US 2010/0165139 A1
- Document ID: US20100165139A1
- Status: Published application
- Kind: A1
- Application number: 12/377,612
- Filed: 2007-08-13
- Published: 2010-07-01
- Earliest claimed: 2006-08-16
- Assignees: Koninklijke Philips Electronics N.V.
- Inventors: Remco Theodorus Johanne Muijs; Erno Hermanus Antonius Langendijk
- Web page: https://patentgrep.com/patent/US20100165139A1

## CPC

- H04N 1/6058: {Reduction of colour to a range of reproducible colours, e.g. to ink- reproducible colour gamut}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method of gamut mapping maps an input image composed of pixels and having an input gamut (IG) defined by input RGB primaries (Ri, Gi, Bi) to a reproduction gamut (RG) defined by reproduction RGB primaries (Ro, Go, Bo). The reproduction gamut (RG) is narrower than the input gamut (IG). An input signal (RGBin) defined with respect to the input RGB primaries (Ri, Gi, Bi) is color transformed (1) into a transformed signal (RGBt) defined with respect to the reproduction RGB primaries (Ro, Go, Bo), whereby color information of the pixels (P1, P2, P3) within the reproduction gamut (RG) is preserved. Scaling factors (SFi) indicating a distance between on the one hand pixels (P1, P2, P3) of the transformed signal (RGBt) which are outside the reproduction gamut (RG), and on the other hand an edge of the reproduction gamut (RG) are determined (2). The scaling factors (SFi) of pixels (P1, P2, P3) of the transformed signal (RGBt) are spatial low-pass filtered (3) to obtain filtered factors (FFi) for these pixels (P1, P2, P3). Component signal values of the transformed signal (RGBt) of the pixels (P1, P2, P3) are corrected (4) in response to the filtered factors (FFi) to obtain reproduction signal values (RGBo) which are input values (RGBi) moved towards inside the reproduction gamut (RG).

## Claims

### Claim 1

A method of gamut mapping of an input image composed of pixels and having an input gamut (1G) defined by input RGB primaries (Ri, Gi, Bi) to a reproduction gamut (RG) defined by reproduction RGB primaries (Ro, Go, Bo), wherein the reproduction gamut (RG) is narrower than the input gamut (IG), the method comprises:
color transforming (1) an input signal (RGBin) defined with respect to the input RGB primaries (Ri, Gi, Bi) into a transformed signal (RGBt) defined with respect to the reproduction RGB primaries (Ro, Go, Bo), whereby color information of the pixels (P1, P2, P3) within the reproduction gamut (RG) is preserved,
determining (2) scaling factors (SFi) indicating a distance between on the one hand pixels (P1, P2, P3) of the transformed signal (RGBt) which are outside the reproduction gamut (RG), and on the other hand an edge of the reproduction gamut (RG),
spatial low-pass filtering (3) of the scaling factors (SFi) of pixels (P1, P2, P3) of the transformed signal (RGBt) to obtain filtered factors (FFi) for these pixels (P1, P2, P3), and
correcting (4) component signal values of the transformed signal (RGBt) in response to the filtered factors (FFi) to obtain reproduction signal values (RGBo) being input values (RGBin) moved towards inside the reproduction gamut (RG).

### Claim 2 (depends on 1)

A method as claimed in claim 1, wherein the spatial low-pass filtering (3) comprises edge preserving low-pass filtering.

### Claim 3 (depends on 2)

A method as claimed in claim 2, wherein the edge preserving low-pass filtering is a bilateral filtering comprising:
a spatial filter kernel (FK), and
a weighting function (WF) over color differences between the to be filtered pixel (Px) and the pixels (Pij) within the filter support of the filter kernel (FK), wherein the weighting function (WF) decreases with increasing color difference by assigning higher weight factors (Wij) to pixels (Pij) in the filter support having a color value more similar to the to be filtered pixel (Px) than to pixels (Pij) in the filter support having a color value less similar to the to be filtered pixel (Px).

### Claim 4 (depends on 3)

A method as claimed in claim 3, wherein the weight factors (Wij) have a value one for pixels (Pij) in the filter support having a color difference with the to be filtered pixel (Px) below a predefined threshold (TH) and zero for pixels (Pij) in the filter support having a color difference above the predefined threshold (TH).

### Claim 5 (depends on 1)

A method as claimed in claim 1, wherein the transforming (1) is defined by
RGBt=inv(A2)*A1*RGBi
wherein RGBi is the input signal being an RGB signal, RGBt is the transformed signal being an RGB signal, A1 and A2 are 3×3 matrices having columns containing tri-stimulus values of the input RGB primaries (Ri, Gi, Bi) and reproduction RGB primaries (Ro, Go, Bo), respectively.

### Claim 6 (depends on 1)

A method as claimed in claim 1, wherein the determining (2) scaling factors (SFi) determines the scaling factors (SFi) for pixels (P1, P2, P3) of the transformed signal (RGBt) outside the reproduction gamut (RG) as:
SFi=min[(1−XR)/(RCi−XR), (1−XG)/(GCi−XG), (1−XB)/(BCi−XB)] if at least one of the component values of the pixel is larger than 1, or
SFi=min[(0−XR)/(1−RCi−XR), (0−XG)/(1−GCi−XG), (0−XB)/(1−BCi−XB)] if at least one of the component values of the pixel is smaller than 0,
wherein SFi is the scaling factor, RCi, GCi, BCi are normalized RGB component values of a pixel (P1, P2, P3) of the transformed signal (RGBt), and XR, XG, XB are normalized RGB component values of a color point in the reproduction gamut (RG) to which the transformed signal (RGBt) is scaled.

### Claim 7 (depends on 6)

A method as claimed in claim 6, wherein the normalized RGB component values of the color point in the reproduction gamut (RG) to which the transformed signal (RGBt) is scaled is selected on a gray line connecting a white color point with a black color point.

### Claim 8 (depends on 7)

A method as claimed in claim 7, wherein the normalized RGB component values of the color point in the reproduction gamut (RG) to which the transformed signal (RGBt) is scaled is selected to be the white color point if RCi or GCi or BCi is smaller than zero or the black color point if RCi or GCi or BCi is larger than one.

### Claim 9 (depends on 1)

A method as claimed in claim 1, wherein the correcting (4) calculates the reproduction signal values (RGBo) as:
RGBo=Xrgb+RGBin·FFig.
wherein RGBin represents input component values of the input signal (RGBin) expressed in terms of the reproduction primaries (Ro, Go, Bo), RGBo represents the reproduction component values of the reproduction signal (RGBo) in terms of the reproduction primaries (Ro, Go, Bo), Xrgb represent a color point (X) inside the reproduction gamut (RG) towards which the mapping is conducted, the · defines a point-wise multiplication of the RGBin input component values and the filtered factors (FFi), and the factor g is a global gain factor (g) controlling an amount of the correcting (4).

### Claim 10 (depends on 1)

A method as claimed in claim 1, wherein the correcting (4) comprises a global gain factor for controlling a strength of the correcting.

### Claim 11

A device for gamut mapping of an input image composed of pixels (P1, P2, P3) and having an input gamut (IG) defined by input RGB primaries (Ri, Gi, Bi) to a reproduction gamut (RG) defined by reproduction RGB primaries (Ro, Go, Bo), wherein the reproduction gamut (RG) is narrower than the input gamut (IG), the device comprises:
a color transforming unit (1) for transforming an input signal (RGBin) defined with respect to the input RGB primaries (Ri, Gi, Bi) into a transformed signal (RGBt) defined with respect to the reproduction RGB primaries (Ro, Go, Bo), such that color information of the pixels (P1, P2, P3) within the reproduction gamut (RG) is preserved,
a scaling factor unit (2) for determining scaling factors (SFi) indicating a distance between on the one hand pixels (P1, P2, P3) of the transformed signal (RGBt) which are outside the reproduction gamut (RG), and on the other hand an edge of the reproduction gamut (RG),
a spatial low-pass filter (3) for filtering of the scaling factors (SFi) of pixels (P1, P2, P3) of the transformed signal (RGBt) to obtain filtered factors (FFi) for these pixels (P1, P2, P3), and
a correction unit (4) for correcting component signal values of the transformed signal (RGBt) of the pixels (P1, P2, P3) in response to the filtered factors (FFi) to obtain reproduction signal values (RGBo) being input values (RGBi) moved towards inside the reproduction gamut (RG).

### Claim 12 (depends on 11)

An image signal receiver comprising the device for gamut mapping as claimed in claim 11, and comprising a display device (6) for displaying the reproduction signal values (RGBo).

### Claim 13 (depends on 11)

A camera comprising the device for gamut mapping as claimed in claim 11, and an image capturing sensor (7) for supplying the input image.

### Claim 14 (depends on 1)

A computer program product comprising code enabling a processor to execute the steps of the method as claimed in claim 1, the steps being:
transforming (1) an input signal (RGBin) defined with respect to the input RGB primaries (Ri, Gi, Bi) into a transformed signal (RGBt) defined with respect to the reproduction RGB primaries (Ro, Go, Bo), such that color information of the pixels (P1, P2, P3) within the reproduction gamut (RG) is preserved,
determining (2) scaling factors (SFi) indicating a distance between on the one hand pixels (P1, P2, P3) of the transformed signal (RGBt) which are outside the reproduction gamut (RG), and on the other hand an edge of the reproduction gamut (RG),
spatial low-pass filtering (3) of the scaling factors (SFi) of pixels (P1, P2, P3) of the transformed signal (RGBt) to obtain filtered factors (FFi) for these pixels (P1, P2, P3), and
correcting (4) component signal values of the transformed signal (RGBt) of the pixels (P1, P2, P3) in response to the filtered factors (FFi) to obtain reproduction signal values (RGBo) being input values (RGBi) moved towards inside the reproduction gamut (RG).
