Method for controlling interpolation direction and related device
AssigneeMediatek Inc.
InventorYuan-Chung Lee
Life of this patent
Estimating the term…
Abstract
The present invention provides a method for controlling an interpolation direction of a pixel needing to be interpolated between a first row and a second row within an image. The image has a plurality of pixels arranged in a matrix format. The method includes calculating a plurality of first horizontal pixel value differences between pixels positioned in the first row and a plurality of second horizontal pixel value differences between pixels positioned in the second row. The method further includes comparing the plurality of first horizontal pixel value differences with a first threshold and the plurality of second horizontal pixel value differences with a second threshold to control whether the interpolation direction is orthogonal to the first row and the second row.
Claims22
A method for controlling an interpolation direction of a
- pixel needing to be interpolated between a first row and a second row within an image, the image having a plurality of pixels arranged in a matrix format, the method conlprising:
- (a) calculating a plurality of first horizontal pixel value differences between pixels positioned in the first row and calculating, a plurality of second horizontal pixel value differences bctween pixels positioned in the second row, wherein the first horizontal pixel value differences correspond to a first quadrant of the image with the pixel needing to be interpolated being an origin, the second horizontal pixel value differences correspond to a second quadrant of the image with the pixel needing to be interpolated being the origin, and the first quadrant is opposite to the second quadrant;
- and
- (b) comparing the plurality of first horizontal pixel value differences with a first threshold and the plurality of second horizontal pixel value differences with a second threshold to control whether the interpolation direction is orthogonal to the first row and the second row.
A device for controlling an interpolation direction of a pixel needing to be interpolated between a first row and a second row within an image, the image having a plurality of pixels arranged in a matrix format, the device comprising:
- an arithmetic unit for calculating a plurality of first horizontal pixel value differences between pixels positioned in the first row and calculating a plurality of second horizontal pixel value differences between pixels positioned in the second row;
- wherein the first horizontal pixel value differences correspond to a first quadrant of the image with the pixel needing to be interpolated being an origin, the second horizontal pixel value differences correspond to a second quadrant of the image with the pixel needing to be interpolated being the origin, and the first quadrant is opposite to the second quadrant;
- and
- a processing unit electrically connected to the arithmetic unit for controlling the interpolation direction, the processing unit comparing the plurality of first horizontal pixel value differences with a first threshold and the plurality of second horizontal pixel value differences with a second threshold to control whether the interpolation direction is orthogonal to the first row and the second row.
A method for determining an interpolation direction of a designated pixel located between a first row of horizontal pixels and a second row of horizontal pixels within an image, the method comprising:
- (a) obtaining first values representing differences between pairs of at least some of the first row of horizontal pixels, and obtaining second values representing differences between pairs of at least some of the second row of horizontal pixels;
- and
- (b) comparing the first values with a first threshold and the second values with a second threshold to determine whether the interpolation direction is orthogonal to the first row and the second row.
Dependencies are inferred from the claim text.