# US 2017/0293823 A1 · Calculation of degree of similarity between two images

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

- Number: US 2017/0293823 A1
- Document ID: US20170293823A1
- Status: Published application
- Kind: A1
- Application number: 15/483,315
- Filed: 2017-04-10
- Published: 2017-10-12
- Earliest claimed: 2016-04-12
- Assignees: Synaptics Japan GK
- Applicants: Synaptics Japan GK
- Inventors: Hirobumi FURIHATA; Masao ORIO; Susumu SAITO; Takashi NOSE; Akio SUGIYAMA
- Web page: https://patentgrep.com/patent/US20170293823A1

## CPC

- G06F 16/5838: {using colour}
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06T 1/00: General purpose image data processing
- G06V 10/56: relating to colour
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G09G 5/003: {Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto (specific for a CRT G09G1/165; for a flat panel G09G3/2092)}
- G09G 2310/027: Details of drivers for data electrodes, the drivers handling digital grey scale data, e.g. use of D/A converters
- G09G 2320/106: Determination of movement vectors or equivalent parameters within the image
- G09G 2340/02: Handling of images in compressed format, e.g. JPEG, MPEG
- G09G 2350/00: Solving problems of bandwidth in display systems
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)

## Abstract

An image processing apparatus includes: a first circuit which calculates values f(RPi), f(GPi) and f(BPi) by applying a function f(x) to an R grayscale value RR, a G grayscale value GPi and a B grayscale value BPi of each pixel i of a first image; a second circuit which calculates values f(RQi), f(GQi) and f(BQi)i) by applying the function f(x) to an R grayscale value RQi, a G grayscale value GQi and a B grayscale value BQi of each pixel i of a second image; and a similarity calculation circuit which calculates a degree of similarity between the first and second images depending on |f(RPi)-f(RQi)|, |f(GPi)-|f(GQi)| and |f(BPi)-f(BQi)| associated with each pixel i of the first and second images. The function f(x) is a convex function monotonically non-decreasing in the domain of definition.

## Claims

### Claim 1

An image processing apparatus, comprising:
a first circuit which calculates values f(RPi), f(GPi) and f(BPi) by applying a function f(x) to an R grayscale value RPi, a G grayscale value GPi and a B grayscale value BPi of each pixel i of a first image;
a second circuit which calculates values f(RQi), f(GQi) and f(BQi) by applying the function f(x) to an R grayscale value RQi, a G grayscale value GQi and a B grayscale value BQi of each pixel i of a second image; and
a similarity calculation circuit which calculates a degree of similarity between the first and second images depending on |f(RPi)-f(RQi)|, |f(GPi)-f(GQi)| and |f(BPi)-f(BQi)| of each pixel i of the first and second images,
wherein a lower limit of a domain of definition of the function f(x) is the allowed minimum value of the R grayscale values RPi, RQi, the G grayscale values GPi, GQi and the B grayscale values BPi, BQi, and an upper limit of the domain of definition is the allowed maximum value of the R grayscale values RPi, RQi, the G grayscale values GPi, GQi and the B grayscale values BPi, BQi, and
wherein the function f(x) is a convex function monotonically non-decreasing in the domain of definition.

### Claim 2 (depends on 1)

The image processing apparatus according to claim 1, wherein the degree of similarity between the first and second images is calculated in accordance with the following expression (1):
S
=
∑
i

g

(
|
f

(
R
Pi
)
-
f

(
R
Qi
)
|
,
|
f

(
G
Pi
)
-
f

(
G
Qi
)
|
,
|
f

(
B
Pi
)
-
f

(
B
Qi
)
|
)
,
(
1
)
where Σ represents a sum with respect to all pixels of the first and second images and g(x, y, z) is a function which is not a constant function.

### Claim 3 (depends on 1)

The image processing apparatus according to claim 1, wherein the degree of similarity between the first and second images is calculated in accordance with the following expression (2):
S
=
∑
i

{
K
R
|
f

(
R
Pi
)
-
f

(
R
Qi
)

|
p

+
K
G
|
f

(
G
Pi
)
-
f

(
G
Qi
)

|
p

+
K
B
|
f

(
B
Pi
)
-
f

(
B
Qi
)

|
p
}
,
(
2
)
wherein p is a non-zero number and KR, KG and KB are weighting factors defined for red, green and blue colors, respectively, in calculating the degree of similarity S.

### Claim 4 (depends on 1)

The image processing apparatus according to claim 1, wherein the degree of similarity between the first and second images is calculated in accordance with the following expression (3):
S
=
∑
i

{
K
R
|
f

(
R
Pi
)
-
f

(
R
Qi
)
|
+
K
G
|
f

(
G
Pi
)
-
f

(
G
Qi
)
|
+
K
B
|
f

(
B
Pi
)
-
f

(
B
Qi
)
|
}
,
(
3
)
wherein KR, KG and KB are weighting factors defined for red, green and blue colors, respectively, in calculating the degree of similarity S.

### Claim 5 (depends on 1)

The image processing apparatus according to claim 1, wherein the degree of similarity between the first and second images is calculated in accordance with the following expression (4):
S
=
∑
i

{
K
R
|
f

(
R
Pi
)
-
f

(
R
Qi
)
|
+
K
G
|
f

(
G
Pi
)
-
f

(
G
Qi
)
|
+
K
B
|
f

(
B
Pi
)
-
f

(
B
Qi
)
|
}
,
(
3
)
wherein KR, KG and KB are weighting factors defined for red, green and blue colors, respectively, in calculating the degree of similarity S and γ is a predetermined constant.

### Claim 6 (depends on 1)

The image processing apparatus according to claim 1, wherein the function f(x) is defined as a polygonal line function which approximates x̂γ, where γ is a predetermined constant.

### Claim 7 (depends on 1)

The image processing apparatus according to claim 1, wherein the function f(x) is defined as a polynomial function which approximates x̂γ, where γ is a predetermined constant.

### Claim 8 (depends on 6)

The image processing apparatus according to claim 6, wherein γ is equal to a gamma value of a display device in which image data of the first and second images.

### Claim 9 (depends on 4)

The image processing apparatus according to claim 4, wherein the weighting factors KR, KG and KB are determined based on a color gamut of a display panel included in a display device in which image data of the first and second images are used.

### Claim 10 (depends on 1)

The image processing apparatus according to claim 1, further comprising:
a first setting register storing a first setting parameter specifying a coefficient included in the function f(x).

### Claim 11 (depends on 2)

The image processing apparatus according to claim 2, further comprising:
a second setting register storing a second setting parameter specifying a coefficient included in the function g(x, y, z).

### Claim 12 (depends on 4)

The image processing apparatus according to claim 4, further comprising:
a second setting register storing second setting parameters specifying the weighting factors KR, KG and KB.

### Claim 13

An image compression circuit, comprising:
a compression circuity generating first to Nth compressed data by performing first to Nth compression processes on an original image data, respectively, for N being an integer of two or more;
a decompression circuitry generating first to Nth decompressed data by respectively performing corresponding decompression processes on the first to Nth compressed data;
first to (N+1)th grayscale data conversion circuits; and
a compressed image data selection circuit selecting an output compressed image data from among the first to Nth compressed data and outputting the output compressed image data,
wherein the kth grayscale data conversion circuit of the first to Nth grayscale data conversion circuit is configured to calculate values f(Rki), f(Gki) and f(Bki) by respectively applying a function f(x) to an R grayscale value Rki, a G grayscale value Gki and a B grayscale value Bki of each pixel i of the kth decompressed data of the first to Nth decompressed data, for k being any integer from one to N,
wherein the (N+1)th grayscale data conversion circuit is configured to calculate values f(RINi), f(GINi) and f(BINi) by respectively applying the function f(x) to an R grayscale value RINi, a G grayscale value GINi and a B grayscale value BINi of each pixel i of the original image data,
wherein the compressed image data select circuit is configured to calculate degrees of similarity between the original image data and the first to Nth decompressed data and select an output compressed image data from the first to Nth compressed data in response to the calculated degrees of similarity,
wherein the degree of similarity between the kth decompressed data and the original image data is calculated depending on |f(Rki)-f(RINi)|, |f(Gki)-f(GINi)| and |f(Bki)-f(BINi)| associated with each pixel i of the kth decompressed data and the original image data,
wherein a lower limit of a domain of definition of the function f(x) is the allowed minimum value of the R grayscale values Rki, RINi, the G grayscale values Gki, GINi and the B grayscale values Bki, BINi, and an upper limit of the domain of definition is the allowed maximum value of the R grayscale values Rki, RINi, the G grayscale values Gki, GINi and the B grayscale values Bki, BINi,
wherein the function f(x) is a convex function monotonically non-decreasing in the domain of definition.

### Claim 14 (depends on 13)

The compression circuit according to claim 13, wherein the degree of similarity Sk between the kth decompressed data and the original image data is calculated in accordance with the following expression (5):
S
k
=
∑
i

{
K
R
|
f

(
R
ki
)
-
f

(
R
INi
)
|
+
K
G
|
f

(
G
ki
)
-
f

(
G
INi
)
|
+
K
B
|
f

(
B
ki
)
-
f

(
B
INi
)
|
}
,
(
5
)
where KR, KG and K6 are weighting factors defined for red, green and blue colors, respectively, in calculating the degree of similarity Sk.

### Claim 15 (depends on 13)

The compression circuit according to claim 13, wherein the degree of similarity Sk between the kth decompressed data and the original image data is calculated in accordance with the following expression (6):
S
k
=
∑
i

{
K
R
|
R
ki
γ
-
R
INi
γ
|
+
K
G
|
G
ki
γ
-
G
INi
γ
|
+
K
B
|
B
ki
γ
-
B
INi
γ
|
}
,
(
6
)
where KR, KG and K6 are weighting factors defined for red, green and blue colors, respectively, in calculating the degree of similarity Sk and γ is a predetermined constant.

### Claim 16 (depends on 13)

The compression circuit according to claim 13, wherein the function f(x) is defined as a polygonal line function which approximates x̂γ, where γ is a predetermined constant.

### Claim 17

A display driver for driving a display panel, comprising:
an image compression circuit generating an output compressed image data from an original image data;
an image memory storing the output compressed image data received from the compression circuit;
an image decompression circuit generating an decompressed image data by decompressing the output compressed image data received from the image memory; and
a drive circuitry driving the display panel in response to the decompressed image data,
wherein the image compression circuit includes:
a compression circuity generating first to Nth compressed data by performing first to Nth compression processes on the original image data, respectively, for N being an integer of two or more;
a decompression circuitry generating first to Nth decompressed data by respectively performing corresponding decompression processes on the first to Nth compressed data;
first to (N+1)th grayscale data conversion circuits; and
a compressed image data selection circuit selecting the output compressed image data from among the first to Nth compressed data and outputting the output compressed image data,
wherein the kth grayscale data conversion circuit of the first to Nth grayscale data conversion circuit is configured to calculate values f(Rki), f(Gki) and f(Bki) by respectively applying a function f(x) to an R grayscale value Rki, a G grayscale value Gki and a B grayscale value Bki of each pixel i of the kth decompressed data of the first to Nth decompressed data, for k being any integer from one to N,
wherein the (N+1)th grayscale data conversion circuit is configured to calculate values f(RINi), f(GINi) and f(BINi) by respectively applying the function f(x) to an R grayscale value RINi, a G grayscale value GINi and a B grayscale value BINi of each pixel i of the original image data,
wherein the compressed image data select circuit is configured to calculate degrees of similarity between the original image data and the first to Nth decompressed data and select an output compressed image data from the first to Nth compressed data in response to the calculated degrees of similarity,
wherein the degree of similarity between the kth decompressed data and the original image data is calculated depending on |f(RPi)-f(RQi)|, |f(GPi)-f(GQi)| and |f(BPi)-f(BQi)| associated with each pixel i of the kth decompressed data and the original image data,
wherein a lower limit of a domain of definition of the function f(x) is the allowed minimum value of the R grayscale values Rki, RINi, the G grayscale values Gki, GINi, and the B grayscale values Bki, BINi, and an upper limit of the domain of definition is the allowed maximum value of the R grayscale values Rki, RINi, the G grayscale values Gki, GINi and the B grayscale values Bki, BINi,
wherein the function f(x) is a convex function monotonically non-decreasing in the domain of definition.

### Claim 18 (depends on 17)

The display driver according to claim 17, further comprising:
a first setting register storing a first setting parameter specifying a coefficient included in the function f(x).

### Claim 19 (depends on 17)

The display driver according to claim 17, further comprising a second setting register,
wherein the degree of similarity Sk between the kth decompressed image data and the original image data is calculated in accordance with the following expression (7):
S
k
=
∑
i

{
K
R
|
f

(
R
ki
)
-
f

(
R
INi
)
|
+
K
G
|
f

(
G
ki
)
-
f

(
G
INi
)
|
+
K
B
|
f

(
B
ki
)
-
f

(
B
INi
)
|
}
,
(
7
)
where KR, KG and KB are weighting factors defined for red, green and blue colors, respectively, in calculating the degree of similarity Sk, and
wherein the second setting register stores second setting parameters specifying the weighting factors KR, KG and KB.

### Claim 20 (depends on 17)

The display driver according to claim 17,
wherein the degree of similarity Sk between the kth decompressed image data and the original image data is calculated in accordance with the following expression (8):
S
k
=
∑
i

{
K
R
|
R
Pi
γ
-
R
Qi
γ
|
+
K
G
|
G
Pi
γ
-
G
Qi
γ
|
+
K
B
|
B
Pi
γ
-
B
Qi
γ
|
}
,
(
8
)
where KR, KG and KB are weighting factors defined for red, green and blue colors, respectively, in calculating the degree of similarity Sk,
wherein γ is equal to a gamma value of the display panel.
