# US 2021/0287344 A1 · Directional scaling systems and methods

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

- Number: US 2021/0287344 A1
- Document ID: US20210287344A1
- Status: Published application
- Kind: A1
- Application number: 17/331,602
- Filed: 2021-05-26
- Published: 2021-09-16
- Earliest claimed: 2018-08-02
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Jim C. Chou; Yun Gong
- Web page: https://patentgrep.com/patent/US20210287344A1

## CPC

- G06T 3/403: Edge-driven scaling; Edge-based scaling
- G06T 5/70: Denoising; Smoothing
- G06T 3/4007: based on interpolation, e.g. bilinear interpolation (image demosaicing G06T3/4015; edge-driven or edge-based scaling G06T3/403)
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 2207/20192: Edge enhancement; Edge preservation
- G06T 2207/20216: Image averaging
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An electronic device may include scaling circuitry to scale input pixel data to a greater resolution. The directional scaling circuitry may include first interpolation circuitry to receive best mode data, including one or more angles corresponding to content of the image and interpolate first pixel values at first pixel positions diagonally offset from input pixel positions of the input pixel data based on the best mode data and input pixel values corresponding to the input pixel positions. The directional scaling circuitry may also include second interpolation circuitry to receive the best mode data and the input pixel values and interpolate second pixel values at second pixel positions horizontally or vertically offset from the input pixel positions based at least in part on the best mode data and the input pixel values.

## Claims

### Claim 1

An electronic device comprising:
an electronic display configured to display an output image based at least in part on scaled pixel data; and
image processing circuitry configured to generate the scaled pixel data, wherein the image processing circuitry comprises:
angle detection circuitry configured to:
receive input pixel data corresponding to an input image;
analyze the input pixel data relative to a plurality of angles;
determine mode data corresponding to one or more angles of the plurality of angles identified as associated with the input image based at least in part on analysis of the input pixel data;
verify the one or more angles of the mode data as indicative of the input image;
adjust one or more respective confidence levels associated with the one or more angles based at least in part on the verifying; and
determine best mode data based at least in part on the mode data and the one or more respective confidence levels; and
scaling circuitry configured to scale the input pixel data to generate the scaled pixel data based at least in part on the best mode data.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein the best mode data comprises one or more of:
a first angle having a highest confidence level among a first set of confidence levels, of the one or more respective confidence levels, associated with horizontal and vertical angles; and
a second angle having another highest confidence level among a second set of confidence levels, of the one or more respective confidence levels, associated with non-horizontal and non-vertical angles.

### Claim 3 (depends on 2)

The electronic device of claim 2, wherein scaling the input pixel data comprises:
interpolating a first new pixel value, having a first pixel position diagonal to pixel positions of the input pixel data, based at least in part on the second angle; and
interpolating a second new pixel value, having a second pixel position horizontal or vertical to the pixel positions of the input pixel data, based at least in part on the first angle.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein scaling the input pixel data comprises interpolating between respective pixel values of the input pixel data to determine intermediate pixel values based at least in part on respective weights, wherein the respective weights are based at least in part on the best mode data.

### Claim 5 (depends on 4)

The electronic device of claim 4, wherein the respective weights are based at least in part on a confidence level of an angle of the best mode data.

### Claim 6 (depends on 1)

The electronic device of claim 1, wherein verifying the one or more angles of the mode data as indicative of the input image comprises comparing a first angle of the one or more angles, having a highest confidence level of the one or more respective confidence levels, to a second angle of the one or more angles, having a second highest confidence level of the one or more respective confidence levels.

### Claim 7 (depends on 6)

The electronic device of claim 6, wherein adjusting the one or more respective confidence levels comprises one or more of:
in response to a difference between the first angle and the second angle being less than a first threshold, increasing the highest confidence level, the second highest confidence level, or both; and
in response to the difference between the first angle and the second angle being greater than a second threshold, decreasing the highest confidence level, the second highest confidence level, or both.

### Claim 8 (depends on 1)

The electronic device of claim 1, wherein verifying the one or more angles of the mode data as indicative of the input image comprises searching for one or more frequency features of the input image.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein, in response to finding the one or more frequency features in the input image, reducing a confidence level associated with the or more angles.

### Claim 10 (depends on 1)

The electronic device of claim 1, wherein verifying the one or more angles of the mode data as indicative of the input image comprises comparing a first confidence level associated with a first angle of the one or more angles to a second confidence level associated with a second angle orthogonal to the first angle.

### Claim 11

A tangible, non-transitory, machine-readable medium comprising instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
receiving input pixel data corresponding to an input image;
analyzing the input pixel data relative to a plurality of angles;
determining mode data corresponding to one or more angles of the plurality of angles identified as associated with the input image based at least in part on analysis of the input pixel data;
verifying the one or more angles of the mode data as indicative of the input image;
adjusting one or more respective confidence levels associated with the one or more angles based at least in part on the verifying;
determining best mode data based at least in part on the mode data and the one or more respective confidence levels; and
scaling the input pixel data to generate scaled pixel data based at least in part on the best mode data.

### Claim 12 (depends on 11)

The tangible, non-transitory, machine-readable medium of claim 11, wherein scaling the input pixel data comprises interpolating between respective pixel values of the input pixel data to determine intermediate pixel values based at least in part on respective weights, wherein the respective weights are based at least in part on an angle of the best mode data.

### Claim 13 (depends on 12)

The tangible, non-transitory, machine-readable medium of claim 12, wherein the respective weights are based at least in part on a confidence level of the angle.

### Claim 14 (depends on 11)

The tangible, non-transitory, machine-readable medium of claim 11, wherein verifying the one or more angles of the mode data as indicative of the input image comprises determining differences between consecutive pixel values of the input pixel data to determine a run of same differences, wherein the run of same differences comprises:
a string of consecutive positive differences;
a string of consecutive negative differences; or
a string of consecutive zero differences.

### Claim 15 (depends on 14)

The tangible, non-transitory, machine-readable medium of claim 14, wherein verifying the one or more angles of the mode data as indicative of the input image comprises comparing a run length of the run of same differences to a threshold run length and adjusting the one or more respective confidence levels based at least in part on the comparing.

### Claim 16 (depends on 11)

The tangible, non-transitory, machine-readable medium of claim 11, wherein verifying the one or more angles of the mode data as indicative of the input image comprises searching for one or more frequency features of the input image.

### Claim 17 (depends on 11)

The tangible, non-transitory, machine-readable medium of claim 11, wherein the operations comprise comparing the best mode data at a first pixel location to the best mode data at a second pixel location surrounding the first pixel location, wherein adjusting the one or more respective confidence levels comprises, in response to determining that the best mode data at the first pixel location is the same as the best mode data at the second pixel location, increasing a confidence level associated with the first pixel location.

### Claim 18

Processing circuitry configured to:
receive input pixel data corresponding to an input image;
analyze the input pixel data relative to a plurality of angles;
determine one or more respective confidence levels for one or more angles of the plurality of angles as indicative of the input image based at least in part on the analyzing of the input pixel data; and
interpolate a new pixel value of scaled pixel data based at least in part on a weighted combination of pixel values of the input pixel data, wherein weights of the weighted combination are based at least in part on the one or more respective confidence levels for the one or more angles.

### Claim 19 (depends on 18)

The processing circuitry of claim 18, wherein the processing circuitry is configured to:
verify the one or more angles as indicative of the input image; and
adjust the one or more respective confidence levels associated with the one or more angles based at least in part on the verifying.

### Claim 20 (depends on 18)

The processing circuitry of claim 18, wherein verifying the one or more angles of the mode data as indicative of the input image comprises comparing a first angle of the one or more angles, having a highest confidence level of the one or more respective confidence levels, to a second angle of the one or more angles, having a second highest confidence level of the one or more respective confidence levels.
