# US 2021/0065373 A1 · Device and method for determining edge location based on adaptive weighing of gradients

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

- Number: US 2021/0065373 A1
- Document ID: US20210065373A1
- Status: Published application
- Kind: A1
- Application number: 16/959,527
- Filed: 2018-12-20
- Published: 2021-03-04
- Earliest claimed: 2018-01-03
- Assignees: Kyungpook National University Industry-Academic Cooperation Foundation
- Applicants: Kyungpook National University Industry-Academic Cooperation Foundation
- Inventors: Suyoung SEO
- Web page: https://patentgrep.com/patent/US20210065373A1

## CPC

- G06T 7/13: Edge detection
- G06V 10/457: {by analysing connectivity, e.g. edge linking, connected component analysis or slices}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Provided are a device and a method for determining an edge location based on the adaptive weighting of gradients (AWG). The method for determining an edge location according to an embodiment of the present invention includes the steps of determining, based on the edge width of an edge profile in an image, a power factor to be applied to a gradient of the edge profile in order to determine an edge location, calculating a difference value between values of adjacent pixels in the edge profile to generate the gradient, and applying the power factor determined based on the edge width to the gradient to determine the edge location.

## Claims

### Claim 1

A method for determining an edge location, the method comprising the steps of:
determining, based on an edge width of an edge profile in an image, a power factor to be applied to a gradient of the edge profile for determining an edge location;
calculating a difference value between adjacent pixels in the edge profile to generate the gradient; and
applying the power factor determined based on the edge width to the gradient to determine the edge location.

### Claim 2 (depends on 1)

The method of claim 1, wherein the step of determining a power factor comprises a step of determining, based on a correspondence relationship between a preset edge width and a power factor, the power factor corresponding to the edge width.

### Claim 3 (depends on 1)

The method of claim 1, wherein the step of determining a power factor comprises a step of determining, based on a preset kernel size and a correspondence relationship between an edge width and a power factor, the power factor corresponding to the kernel size of the edge profile and the edge width.

### Claim 4 (depends on 2)

The method of claim 2, further comprising the steps of:
calculating the propagation of an error per power factor for predetermined edge profiles having various edge widths; and
determining a power factor that generates a minimum error in the propagation of an error to calculate a correspondence relationship between the edge width and the power factor.

### Claim 5 (depends on 4)

The method of claim 4, wherein the step of calculating the propagation of an error comprises the steps of:
calculating, for each of the edge profiles having various blur values, a gradient vector between values of adjacent pixels;
generating a weighting vector to be applied to an edge profile per power factor applied to the gradient;
calculating, based on the weighting vector, a partial derivative of an edge location for the weighting vector per power factor;
calculating, based on the gradient, a partial derivative for a gradient of the weighting vector per power factor;
calculating, based on a standard deviation of an error of each of the edge profiles, a dispersion of a gradient vector; and
calculating, based on the dispersion of a gradient, the partial derivative of an edge location for the weighting vector, the partial derivative for the gradient of the weighting vector, a difference value between a predicted edge location and a true edge location per power factor, the propagation of the error per power factor.

### Claim 6 (depends on 5)

The method of claim 5, wherein the step of calculating a correspondence relationship between the edge width and the power factor comprises the steps of:
determining, for each of the various blur values, a power factor that generates a minimum error in the propagation of an error to calculate a correspondence relationship between a blur and the power factor;
calculating a correspondence relationship between the blur and edge width of the edge profiles; and
relating, based on the correspondence relationship between the blur and the power factor and the correspondence relationship between the blur and the edge width, the edge width directly to the power factor.

### Claim 7 (depends on 5)

The method of claim 5, wherein the partial derivative of an edge location for the weighting vector is calculated according to Equation 1 below:
∂
l
∂
w
=
x
∑
i
=
1
n
-
1

w
i
-
∑
i
=
1
n
-
1

w
i

x
i
(
∑
i
=
1
n
-
1

w
i
)
2
[
Equation


1
]
in Equation 1 above, 1 is an edge location, x is a vector representing the coordinate of the middle of the edge profile, xi is the coordinate value of the middle of i-th segment in the edge profile, w is the weighting vector, wi is a weight value of the i-th segment in the weighting vector, and n is the number of pixels in the edge profile.

### Claim 8 (depends on 7)

The method of claim 7, wherein the partial derivative for a gradient of the weighting vector is calculated according to Equation 2 below:
∂
w
∂
g
=
diag

(
p
·
g
p
-
1
)
[
Equation


2
]
in Equation 2 above, w is the weighting vector, g is the gradient, and p is a power factor of the gradient.

### Claim 9 (depends on 8)

The method of claim 8, wherein the dispersion of the gradient is calculated according to Equation 3 below:
D

{
g
}
=
B
·
σ
y
2
·
I
n

B
T
=
σ
y
2

BB
T


B
(
n
-
1
)
×
n
=
[
-
1
1
0
…
0
0
-
1
1
…
0
⋮
⋮
⋮
⋱
0
0
0
…
-
1
1
]
[
Equation


3
]
in Equation 3 above, D{g} is the dispersion of the gradient, σy is a standard deviation of an error of a brightness value of the edge profile, n is the number of segments of the edge profile, and In is an identity matrix.

### Claim 10 (depends on 9)

The method of claim 9, wherein the propagation of an error is calculated according to Equation 4 and Equation 5 below:
MSE

{
l
}
=
D

{
l
}
+
(
l
-
l
true
)
2
[
Equation


4
]
D

{
l
}
=
∂
l
∂
w
×
∂
w
∂
g
×
D

{
g
}
×
[
∂
w
∂
g
]
T
×
[
∂
l
∂
w
]
T
[
Equation


5
]
in Equation 4 and Equation 5, MSE{l} is the propagation of an error, D{l} is a dispersion of an edge location, D{g} is the dispersion of the gradient,
∂
l
∂
w
is the partial derivative of the edge location for the weighting vector,
∂
w
∂
g
is a partial derivative for the gradient of the weighting vector, and l-ltrue is a difference value between an estimated edge location and a true edge location.

### Claim 11 (depends on 1)

The method of claim 1, further comprising a step of calculating a blur value for an edge profile to predict an edge location, wherein the step of determining a power factor to be applied to a gradient determines a power factor to be applied to a gradient of the edge profile according to the degree of the blur.

### Claim 12 (depends on 11)

The method of claim 11, wherein the step of determining a power factor to be applied to a gradient comprises the steps of:
when the blur value of the edge profile is greater than 0.9 or less than 0.5, determining the power factor to be applied to the gradient based on the edge width of the edge profile; and
when the blur value of the edge profile is in the range of 0.5 to 0.9, determining the power factor to be applied to the gradient of the edge profile with squared weighting

### Claim 13 (depends on 1)

A computer-readable recording medium having recorded thereon a program for executing the method for determining an edge location of claim 1.

### Claim 14

A device for determining an edge location comprising at least one processor, wherein the processor:
determines, based on the edge width of an edge profile in an image, a power factor to be applied to a gradient of the edge profile for determining an edge location;
calculates a difference value between values of adjacent pixels in the edge profile to generate the gradient; and
applies the power factor determined based on the edge width to the gradient to determine the edge location.

### Claim 15 (depends on 14)

The device of claim 14, wherein the processor determines, based on a preset kernel size and a correspondence relationship between an edge width and a power factor, the power factor corresponding to the kernel size of the edge profile and the edge width.

### Claim 16 (depends on 15)

The device of claim 15, wherein the processor:
calculates the propagation of an error per power factor for predetermined edge profiles having various edge widths; and
determines a power factor that generates a minimum error in the propagation of an error to calculate a correspondence relationship between the edge width and the power factor.

### Claim 17 (depends on 16)

The device of claim 16, wherein the processor:
calculates, for each of the edge profiles having various blur values, a gradient vector between values of adjacent pixels;
generates a weighting vector to be applied to an edge profile per power factor applied to the gradient;
calculates, based on the weighting vector, a partial derivative of an edge location for the weighting vector per power factor;
calculates, based on the gradient, a partial derivative for a gradient of the weighting vector per power factor;
calculates, based on a standard deviation of an error of each of the edge profiles, a dispersion of a gradient vector; and
calculates, based on the dispersion of a gradient, the partial derivative of an edge location for the weighting vector, the partial derivative for the gradient of the weighting vector, a difference value between a predicted edge location and a true edge location per power factor, the propagation of the error per power factor.

### Claim 18 (depends on 17)

The device of claim 17, wherein the processor:
determines, for each of the various blur values, a power factor that generates a minimum error in the propagation of an error to calculate a correspondence relationship between a blur and the power factor;
calculates a correspondence relationship between the blur and edge widths of the edge profiles; and
relates, based on the correspondence relationship between the blur and the power factor and the correspondence relationship between the blur and the edge width, the edge width directly to the power factor.

### Claim 19 (depends on 14)

The device of claim 14, wherein the processor:
calculates a blur value for an edge profile to predict an edge location, and
when the blur value of the edge profile is greater than 0.9 or less than 0.5, determines the power factor to be applied to the gradient based on the edge width of the edge profile; and
when the blur value of the edge profile is in the range of 0.5 to 0.9, determines the power factor to be applied to the gradient of the edge profile with squared weighting.
