# US 2018/0322615 A1 · Image processing method and image processing apparatus

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

- Number: US 2018/0322615 A1
- Document ID: US20180322615A1
- Status: Published application
- Kind: A1
- Application number: 15/725,291
- Filed: 2017-10-05
- Published: 2018-11-08
- Earliest claimed: 2017-05-08
- Assignees: Realtek Semiconductor Corp.
- Applicants: Realtek Semiconductor Corp.
- Inventors: Ching-Ju Hsiao; Kai Liu; Wen-Tsung Huang
- Web page: https://patentgrep.com/patent/US20180322615A1

## CPC

- G06T 5/70: Denoising; Smoothing
- G06T 5/20: using local operators
- G06T 5/73: Deblurring; Sharpening
- G06T 7/13: Edge detection
- G06T 2207/10024: Color image
- G06T 2207/20192: Edge enhancement; Edge preservation
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image processing method for processing an input image is provided. The image processing method includes the following steps: selecting a pixel of the input image; determining if the pixel is a first image edge according to at least one first calibrated pixel and at least one second pixel in the input image, in which the first calibrated pixel corresponds to at least one first pixel in the input image; and replacing a high frequency component of at least one channel of the pixel with a first calibrating high frequency component to generate a calibrated pixel if the pixel is not the first image edge, and maintaining the pixel as the calibrated pixel if the pixel is the first image edge.

## Claims

### Claim 1

An image processing method for processing an input image, comprising following steps:
selecting a pixel of the input image;
determining if the pixel is a first image edge according to at least one first calibrated pixel and at least one second pixel in the input image, wherein the first calibrated pixel corresponds to at least one first pixel in the input image; and
replacing a high frequency component of at least one channel of the pixel with a first calibrating high frequency component if the pixel is not the first image edge, to generate a calibrated pixel, and maintaining the pixel as the calibrated pixel if the pixel is the first image edge.

### Claim 2 (depends on 1)

The image processing method of claim 1, wherein the at least one first calibrated pixel is generated according to the at least one first pixel via following first steps:
(i) determining if the first pixel is a second image edge; and
(ii) replacing the high frequency component of at least one channel of the first pixel with a second calibrating high frequency component if the pixel is not the second image edge, to generate the corresponding first calibrated pixel, and maintaining the first pixel as the first calibrated pixel if the pixel is the second image edge.

### Claim 3 (depends on 1)

The image processing method of claim 1, wherein the step of determining if the pixel is the first image edge comprises:
generating a first reference value according to a pixel value of a first channel of the pixel, and at least one pixel value of the first channel of the at least one second pixel;
generating a second reference value according to at least one pixel value of the first channel of the at least one first calibrated pixel;
calculating a difference between the first reference value and the second reference value to generate a reference value difference; and
determining if the pixel is the first image edge according to the reference value difference.

### Claim 4 (depends on 3)

The image processing method of claim 3, wherein the pixel is P(i,j) and the calibrated pixel is Pp(i,j), wherein the P(i,j) indicates a pixel at a ith row and a jth column in the input image, wherein the at least one first pixel indicates pixel P(i−1, j−n) to pixel P(i−1, j+n) in the input image, wherein the at least one second pixel indicates pixel P(i,j−n) to pixel P(i,j−1) and pixel P(i,j+1) to pixel P(i,j+n) in the input image, in which the n is a positive integer.

### Claim 5 (depends on 1)

The image processing method of claim 1, wherein the step of determining if the pixel is the first image edge comprises:
generating a first reference value according to pixel values of a first channel of m third pixels, wherein the m third pixels are at one side of the pixel;
generating a second reference value according to pixel values of the first channel of m fourth pixels, wherein the m fourth pixels are at another side of the pixel, wherein if any one of the m third pixels or any one of the m fourth pixels is the first pixel, replacing a pixel value of the first pixel with a pixel value of the corresponding first calibrated pixel;
calculating a difference between the first reference value and the second reference value to generate a reference value difference; and
determining if the pixel is the first image edge according to the reference value difference.

### Claim 6 (depends on 1)

The image processing method of claim 1, wherein the step of determining if the pixel is the first image edge comprises:
generating a first reference value according to pixel values of a first channel of m third pixels, wherein the m third pixels are at one side of the pixel;
generating a second reference value according to pixel values of the first channel of m fourth pixels, wherein the m fourth pixels are at another side the pixel, wherein if any one of the m third pixels or any one of the m fourth pixels is the first pixel, replacing a pixel value of the first pixel with a pixel value of the corresponding first calibrated pixel;
calculating a first reference value difference according to the first reference value and a pixel value of the first channel of the pixel, and calculating a second reference value difference according to the second reference value and a pixel value of the first channel of the pixel; and
determining if the pixel is the first image edge according to the first reference value difference and the second reference value difference.

### Claim 7 (depends on 1)

The image processing method of claim 1, wherein the first calibrating high frequency component is determined according to the high frequency component of the at least one channel of the pixel.

### Claim 8 (depends on 7)

The image processing method of claim 7, wherein the high frequency component can be generated by followings steps:
generating a low frequency component of the channel of the pixel according to a pixel value of the cannel of the pixel and at least one pixel value of the channel of the at least one first calibrated pixel; and
acquiring the high frequency component of the channel of the pixel by subtracting the low frequency component from the pixel value of the channel of the pixel.

### Claim 9 (depends on 1)

The image processing method of claim 1, further comprising:
calibrating the calibrated pixel by a color calibrating matrix, wherein the color calibrating matrix may be generated by following steps:
defining a comparing image as a plurality of image blocks, wherein the comparing image corresponds to the input image;
calculating pixel statistic values in the image blocks; and
calculating the color calibrating matrix according the pixel statistic values and a plurality of target statistic values.

### Claim 10

An image processing apparatus, comprising:
an image edge detecting module, configured to determine if a pixel in the input image is a first image edge according to at least one first calibrated pixel and at least one second pixel of the input image, wherein the at least one first calibrated pixel corresponds to at least one first pixel in the input image; and
a calibrating module, configured to replace a high frequency component of at least one channel of the pixel with a first calibrating high frequency component if the pixel is not the first image edge, to generate a calibrated pixel, and configured to maintain the pixel as the calibrated pixel if the pixel is the first image edge.

### Claim 11 (depends on 10)

The image processing apparatus of claim 10, wherein the at least one first calibrated pixel is generated according to the at least one first pixel by following steps:
(i) determining if the first pixel is a second image edge by the image edge detecting module; and
(ii) replacing the high frequency component of at least one channel of the first pixel with a second calibrating high frequency component by the calibrating module if the pixel is not the second image edge, to generate the corresponding first calibrated pixel, and maintaining the first pixel as the first calibrated pixel by the calibrating module if the pixel is the second image edge.

### Claim 12 (depends on 10)

The image processing apparatus of claim 10, wherein the image edge detecting module determines if the pixel is the first image edge by following steps:
generating a first reference value according to a pixel value of a first channel of the pixel, and at least one pixel value of the first channel of the at least one second pixel;
generating a second reference value according to at least one pixel value of the first channel of the at least one first calibrated pixel;
calculating a difference between the first reference value and the second reference value to generate a reference value difference; and
determining if the pixel is the first image edge according to the reference value difference.

### Claim 13 (depends on 12)

The image processing apparatus of claim 12, wherein the pixel is P(i,j) and the calibrated pixel is Pp(i,j), wherein the P(i,j) indicates a pixel at a ith row and a jth column in the input image, wherein the at least one first pixel indicates pixel P(i−1, j−n) to pixel P(i−1, j+n) in the input image, wherein the at least one second pixel indicates pixel P(i,j−n) to pixel P(i,j−1) and pixel P(i,j+1) to pixel P(i,j+n) in the input image, in which the n is a positive integer.

### Claim 14 (depends on 10)

The image processing apparatus of claim 10, wherein the image edge detecting module determines if the pixel is the first image edge by following steps:
generating a first reference value according to pixel values of a first channel of m third pixels, wherein the m third pixels are at one side of the pixel;
generating a second reference value according to pixel values of the first channel of m fourth pixels, wherein the m fourth pixels are at another side of the pixel, wherein if any one of the m third pixels or any one of the m fourth pixels is the first pixel, replacing a pixel value of the first pixel with a pixel value of the corresponding first calibrated pixel;
calculating a difference between the first reference value and the second reference value to generate a reference value difference and;
determining if the pixel is the first image edge according to the reference value difference.

### Claim 15 (depends on 10)

The image processing apparatus of claim 10, wherein the image edge detecting module determines if the pixel is the first image edge by following steps:
generating a first reference value according to pixel values of a first channel of m third pixels, wherein the m third pixels are at one side of the pixel;
generating a second reference value according to pixel values of the first channel of m fourth pixels, wherein the m fourth pixels are at another side the pixel, wherein if any one of the m third pixels or any one of the m fourth pixels is the first pixel, replacing a pixel value of the first pixel with a pixel value of the corresponding first calibrated pixel;
calculating a first reference value difference according to the first reference value and a pixel value of the first channel of the pixel, and calculating a second reference value difference according to the second reference value and a pixel value of the first channel of the pixel; and
determining if the pixel is the first image edge according to the first reference value difference and the second reference value difference.

### Claim 16 (depends on 10)

The image processing apparatus of claim 10, wherein the first calibrating high frequency component is determined according to the high frequency component of the at least one channel of the pixel.

### Claim 17 (depends on 16)

The image processing apparatus of claim 16, wherein the high frequency component can be generated by followings steps:
generating a low frequency component of the channel of the pixel according to a pixel value of the cannel of the pixel and at least one pixel value of the channel of the at least one first calibrated pixel; and
acquiring the high frequency component of the channel of the pixel by subtracting the low frequency component from the pixel value of the channel of the pixel.

### Claim 18 (depends on 10)

The image processing apparatus of claim 10, wherein the calibrating module further calibrates the calibrated pixel by a color calibrating matrix, wherein the color calibrating matrix may be generated by following steps:
defining a comparing image to a plurality of image blocks, wherein the comparing image corresponds to the input image;
calculating pixel statistic values in the image blocks; and
calculating the color calibrating matrix according the pixel statistic values and a plurality of target statistic values.
