# US 2017/0294002 A1 · Systems and methods for adjusting an image

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

- Number: US 2017/0294002 A1
- Document ID: US20170294002A1
- Status: Published application
- Kind: A1
- Application number: 15/177,013
- Filed: 2016-06-08
- Published: 2017-10-12
- Earliest claimed: 2016-04-07
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Chao Jia; Ramin Rezaiifar
- Web page: https://patentgrep.com/patent/US20170294002A1

## CPC

- G06T 5/80: Geometric correction
- G06T 7/80: Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method for adjusting an image by an electronic device is described. The method includes detecting line segments in a single image. The method also includes clustering the line segments to produce a set of vanishing points. The method further includes determining a combination of a focal length and vanishing points corresponding to principal axes of a primary scene coordinate system from the set of vanishing points and a set of focal lengths based on an orthogonality constraint. The method additionally includes adjusting the single image based on the combination of the focal length and vanishing points to produce a perspective-adjusted image.

## Claims

### Claim 1

A method for adjusting an image by an electronic device, the method comprising:
detecting line segments in a single image;
clustering the line segments to produce a set of vanishing points;
determining a combination of a focal length and vanishing points corresponding to principal axes of a primary scene coordinate system from the set of vanishing points and a set of focal lengths based on an orthogonality constraint; and
adjusting the single image based on the combination of the focal length and vanishing points to produce a perspective-adjusted image.

### Claim 2 (depends on 1)

The method of claim 1, further comprising refining the focal length based on the determined vanishing points based on the orthogonality constraint.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the combination of the focal length and vanishing points comprises selecting, from the set of vanishing points, a set of vanishing points with a largest number of corresponding line segments that satisfies the orthogonality constraint.

### Claim 4 (depends on 1)

The method of claim 1, further comprising estimating a rotation matrix based on the determined vanishing points.

### Claim 5 (depends on 4)

The method of claim 4, wherein estimating the rotation matrix comprises determining a permutation of rotation matrix columns that has a determinant of 1 and a minimum rotation angle.

### Claim 6 (depends on 1)

The method of claim 1, wherein clustering the line segments comprises:
initializing a cluster for each of the line segments; and
iteratively merging the clusters.

### Claim 7 (depends on 6)

The method of claim 6, wherein each of the clusters is represented as a Boolean set, and wherein merging the clusters comprises merging clusters with a smallest Jaccard distance.

### Claim 8 (depends on 1)

The method of claim 1, further comprising refining coordinates of at least one vanishing point based on least-squares fitting.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining the combination of the focal length and vanishing points comprises evaluating possible focal length values within a canonical range.

### Claim 10

An electronic device for adjusting an image, comprising:
a processor configured to:
detect line segments in a single image;
cluster the line segments to produce a set of vanishing points;
determine a combination of a focal length and vanishing points corresponding to principal axes of a primary scene coordinate system from the set of vanishing points and a set of focal lengths based on an orthogonality constraint; and
adjust the single image based on the combination of the focal length and vanishing points to produce a perspective-adjusted image.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the processor is further configured to refine the focal length based on the determined vanishing points based on the orthogonality constraint.

### Claim 12 (depends on 10)

The electronic device of claim 10, wherein the processor is configured to determine the combination of the focal length and vanishing points by selecting, from the set of vanishing points, a set of vanishing points with a largest number of corresponding line segments that satisfies the orthogonality constraint.

### Claim 13 (depends on 10)

The electronic device of claim 10, wherein the processor is further configured to estimate a rotation matrix based on the determined vanishing points.

### Claim 14 (depends on 13)

The electronic device of claim 13, wherein the processor is configured to estimate the rotation matrix by determining a permutation of rotation matrix columns that has a determinant of 1 and a minimum rotation angle.

### Claim 15 (depends on 10)

The electronic device of claim 10, wherein the processor is configured to cluster the line segments by:
initializing a cluster for each of the line segments; and
iteratively merging the clusters.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein each of the clusters is represented as a Boolean set, and wherein the processor is configured to merge clusters with a smallest Jaccard distance.

### Claim 17 (depends on 10)

The electronic device of claim 10, wherein the processor is further configured to refine coordinates of at least one vanishing point based on least-squares fitting.

### Claim 18 (depends on 10)

The electronic device of claim 10, wherein the processor is configured to determine the combination of the focal length and vanishing points by evaluating possible focal length values within a canonical range.

### Claim 19

An apparatus for adjusting an image, comprising:
means for detecting line segments in a single image;
means for clustering the line segments to produce a set of vanishing points;
means for determining a combination of a focal length and vanishing points corresponding to principal axes of a primary scene coordinate system from the set of vanishing points and a set of focal lengths based on an orthogonality constraint; and
means for adjusting the single image based on the combination of the focal length and vanishing points to produce a perspective-adjusted image.

### Claim 20 (depends on 19)

The apparatus of claim 19, further comprising means for refining the focal length based on the determined vanishing points based on the orthogonality constraint.

### Claim 21 (depends on 19)

The apparatus of claim 19, wherein the means for determining the combination of the focal length and vanishing points comprises means for selecting, from the set of vanishing points, a set of vanishing points with a largest number of corresponding line segments that satisfies the orthogonality constraint.

### Claim 22 (depends on 19)

The apparatus of claim 19, wherein means for clustering the line segments comprises:
means for initializing a cluster for each of the line segments; and
means for iteratively merging the clusters.

### Claim 23 (depends on 19)

The apparatus of claim 19, further comprising means for refining coordinates of at least one vanishing point based on least-squares fitting.

### Claim 24 (depends on 19)

The apparatus of claim 19, wherein the means for determining the combination of the focal length and vanishing points comprises means for evaluating possible focal length values within a canonical range.

### Claim 25

A computer-program product for adjusting an image, comprising a non-transitory computer-readable medium having instructions thereon, the instructions comprising:
code for causing an electronic device to detect line segments in a single image;
code for causing the electronic device to cluster the line segments to produce a set of vanishing points;
code for causing the electronic device to determine a combination of a focal length and vanishing points corresponding to principal axes of a primary scene coordinate system from the set of vanishing points and a set of focal lengths based on an orthogonality constraint; and
code for causing the electronic device to adjust the single image based on the combination of the focal length and vanishing points to produce a perspective-adjusted image.

### Claim 26 (depends on 25)

The computer-program product of claim 25, further comprising code for causing the electronic device to refine the focal length based on the determined vanishing points based on the orthogonality constraint.

### Claim 27 (depends on 25)

The computer-program product of claim 25, wherein the code for causing the electronic device to determine the combination of the focal length and vanishing points comprises code for causing the electronic device to select, from the set of vanishing points, a set of vanishing points with a largest number of corresponding line segments that satisfies the orthogonality constraint.

### Claim 28 (depends on 25)

The computer-program product of claim 25, wherein the code for causing the electronic device to cluster the line segments comprises:
code for causing the electronic device to initialize a cluster for each of the line segments; and
code for causing the electronic device to iteratively merge the clusters.

### Claim 29 (depends on 25)

The computer-program product of claim 25, further comprising code for causing the electronic device to refine coordinates of at least one vanishing point based on least-squares fitting.

### Claim 30 (depends on 25)

The computer-program product of claim 25, wherein the code for causing the electronic device to determine the combination of the focal length and vanishing points comprises code for causing the electronic device to evaluate possible focal length values within a canonical range.
