Source: http://www.patentsencyclopedia.com/app/20090324136
Timestamp: 2017-10-19 16:17:55
Document Index: 678154065

Matched Legal Cases: ['art.\n1', 'art.\n2', 'art.\n3', 'art.\n4', 'Application No. 2008', 'art 10', 'art 11', 'art 12', 'art 13', 'arts 10', 'arts 10', 'art 10', 'art 10', 'art 10', 'art 11', 'art 12', 'art 121', 'art 122', 'art 12', 'art 12', 'art 121', 'art 122', 'art 122', 'art 121', 'art 13', 'art 11', 'art 12', 'art 10', 'art 13', 'art 12', 'art 13', 'art 11', 'arts 11', 'art 13', 'arts 11', 'art 13', 'art 11', 'art 12', 'art 11', 'art 12', 'art 12', 'art 11', 'art 10', 'art 13', 'art 11', 'art 10', 'art 13', 'art 12', 'art 10', 'art 14', 'art 11', 'art 12', 'art 13', 'arts 11', 'arts 11', 'art 14', 'art 14', 'art 14', 'art 11', 'art 12', 'art 121', 'art 122', 'art 12', 'art 12', 'art 121', 'art 122', 'art 122', 'art 121', 'art 13', 'art 11', 'art 12', 'art 14', 'art 13', 'art 12', 'art 13', 'art 11', 'arts 11', 'art 13', 'arts 11', 'art 13', 'art 14', 'art 13', 'art 11', 'art 14', 'art 13', 'art 12', 'art 14', 'art 10', 'art 14', 'art 11', 'art 12', 'art 13', 'arts 10', 'arts 10', 'art 10', 'art 14', 'art 11', 'art 12', 'art 121', 'art 122', 'art 12', 'art 12', 'art 10', 'art 14', 'art 13', 'art 12', 'art 13', 'art 11', 'arts 11', 'art 13', 'arts 11', 'art 13', 'art 13', 'art 10', 'art 14']

Apparatus, method, and computer-readable recording medium for pixel interpolation - Patent application
Patent application title: Apparatus, method, and computer-readable recording medium for pixel interpolation
Inventors: Kohji Yamada (Kawasaki, JP) Mari Iwasaki (Fukuoka, JP)
Patent application number: 20090324136
Apparatus, method, and computer-readable recording medium for pixel interpolation - Patent application <?php require_once('/home/patents/php/mtc.config.php'); require_once('/home/patents/php/mtc.class.php'); $MTC = new MTC(); $MTC->init(); ?>
Inventors: Mari Iwasaki Kohji Yamada
A disclosed pixel interpolation apparatus for converting an image to a predetermined resolution includes a first interpolating part configured to calculate a first interpolation pixel value by performing high order interpolation using pixel values of plural first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel; a second interpolating part configured to calculate a second interpolation pixel value by performing weighted interpolation using pixel values of plural second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel; an overshoot area detecting part configured to detect an overshoot area in the image; and an interpolation pixel selecting part configured to determine whether to perform the high order interpolation or the weighted interpolation according to a detection result of the overshoot area detecting part.
1. A pixel interpolation apparatus for converting an image to a predetermined resolution, the apparatus comprising:a first interpolating part configured to calculate a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel;a second interpolating part configured to calculate a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel;an overshoot area detecting part configured to detect an overshoot area in the image; andan interpolation pixel selecting part configured to determine whether to perform the high order interpolation or the weighted interpolation according to a detection result of the overshoot area detecting part.
2. A pixel interpolation apparatus for converting an image to a predetermined resolution, the apparatus comprising:a first interpolating part configured to calculate a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel;a second interpolating part configured to calculate a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel;a jaggy area detecting part configured to detect a jaggy area in the image; andan interpolation pixel selecting part configured to determine whether to perform the high order interpolation or the weighted interpolation according to a detection result of the jaggy area detecting part.
3. A pixel interpolation apparatus for converting an image to a predetermined resolution, the apparatus comprising:a first interpolating part configured to calculate a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel;a second interpolating part configured to calculate a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel;an overshoot area detecting part configured to detect an overshoot area in the image;a jaggy area detecting part configured to detect a jaggy area in the image; andan interpolation pixel selecting part configured to determine whether to perform the high order interpolation or the weighted interpolation according to detection results of the overshoot area detecting part and the jaggy area detecting part.
4. The pixel interpolation apparatus as claimed in claim 1, wherein the second interpolating part is configured to increase the weight of one of the plural second reference pixels in which the distance with respect to the second interpolation pixel is shorter than the other plural second reference pixels and increase the weight of one of the plural second reference pixels in which the absolute value of the edge gradient is less than the other plural second reference pixels.
5. The pixel interpolation apparatus as claimed in claim 1, wherein the overshoot area detecting part is configured to determine an area of the image as the overshoot area in a case where at least one of the first and second reference pixels neighboring the first and second interpolation pixels, respectively, has an edge strength no less than a predetermined threshold.
6. The pixel interpolation apparatus as claimed in claim 2, wherein the jaggy area detecting part is configured to determine an area of the image as the jaggy area in a case where the edge gradients of the first and second reference pixels neighboring the first and second interpolation pixels, respectively, have the same sign and at least one of the edge gradients has an absolute value no less than a predetermined threshold.
7. The pixel interpolation apparatus as claimed in claim 1, wherein the interpolation pixel selecting part is configured to perform weighted addition of the first interpolation pixel value calculated by the first interpolating part and the second interpolation pixel value according to edge strength.
8. The pixel interpolation apparatus as claimed in claim 2, wherein the interpolation pixel selecting part is configured to perform weighted addition of the first interpolation pixel value calculated by the first interpolating part and the second interpolation pixel value according to edge gradient.
9. A pixel interpolation method for converting an image to a predetermined resolution, the method comprising:calculating a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel;calculating a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel;detecting an overshoot area in the image; anddetermining whether to perform the high order interpolation or the weighted interpolation according to a result of the detecting of the overshoot area.
10. A pixel interpolation method for converting an image to a predetermined resolution, the method comprising:calculating a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel;calculating a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel;detecting a jaggy area in the image; anddetermining whether to perform the high order interpolation or the weighted interpolation according to a result of the detecting of the jaggy area.
11. A pixel interpolation method for converting an image to a predetermined resolution, the method comprising:calculating a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel;calculating a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel;detecting an overshoot area in the image;detecting a jaggy area in the image; anddetermining whether to perform the high order interpolation or the weighted interpolation according to results of the detecting of the overshoot area and the detecting of the jaggy area.
12. A computer-readable recording medium to which a program is recorded for causing a computer to execute a pixel interpolation method for converting an image to a predetermined resolution, the pixel interpolation method comprising:calculating a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel;calculating a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel;detecting an overshoot area in the image; anddetermining whether to perform the high order interpolation or the weighted interpolation according to a result of the detecting of the overshoot area.
13. A computer-readable recording medium to which a program is recorded for causing a computer to execute a pixel interpolation method for converting an image to a predetermined resolution, the pixel interpolation method comprising:calculating a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel;calculating a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel;detecting a jaggy area in the image; anddetermining whether to perform the high order interpolation or the weighted interpolation according to a result of the detecting of the jaggy area.
14. A computer-readable recording medium to which a program is recorded for causing a computer to execute a pixel interpolation method for converting an image to a predetermined resolution, the pixel interpolation method comprising:calculating a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel;calculating a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel;detecting an overshoot area in the image;detecting a jaggy area in the image; anddetermining whether to perform the high order interpolation or the weighted interpolation according to results of the detecting of the overshoot area and the detecting of the jaggy area.
[0001]This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2008-168952 filed on Jun. 27, 2008, the entire contents of which are incorporated herein by reference.
[0002]The embodiments discussed herein are related to a technology for pixel interpolation by which an image is converted to a predetermined resolution.
[0003]In recent years, there has been a demand for larger and thinner displays along with the spread of digital broadcasting. In response to such demand, flat panel displays such as liquid crystal displays and plasma displays are being developed and are proliferating. In flat panel displays, since the number of pixels is fixed according to the panel, it is necessary to perform resolution conversion and generate interpolation pixels in a case where the input image and panel resolutions differ.
[0004]According to "Handbook of Image Analysis [Revised Edition]" (Supervising Editors, Mikio Takagi, Haruhisa Shimoda, Sep. 10, 2004, University of Tokyo Press), there are pixel interpolation methods such as a nearest neighbor interpolation method which uses a reference pixel nearest to an interpolation pixel as the interpolation pixel value, a bilinear interpolation method which calculates an interpolation pixel value with weighted added distance by using pixel values of four points surrounding an interpolation pixel, and a cubic convolution method which calculates an interpolation pixel value with weighted distance by using pixel values of four points surrounding an interpolation pixel.
[0005]In Japanese Laid-Open Patent Publication No. 2005-107437, an interpolation pixel value is calculated by extracting a sharp edge area by a neighboring pixel difference, performing bilinear pixel interpolation with respect to the sharp edge area, performing cubic convolution with respect to other areas, and adding the weighted interpolation pixel value obtained by the bilinear pixel interpolation and the weighted interpolation pixel value obtained by the cubic convolution with respect to a boundary area. In Japanese Laid-Open Patent Publication No. 2004-96715, pixel interpolation is performed by selecting a pixel interpolation method such as the nearest neighbor interpolation method or the cubic convolution method according to number of colors of an image, edge strength of an image, or sharpness of an image. In Japanese Laid-Open Patent Publication No. 2002-101296, pixel interpolation is performed by using a bilinear interpolation function as one interpolation function and using a cubic convolution function as the other interpolation function. In Japanese Laid-Open Patent Publication No. 2000-151990, pixel interpolation is performed by using bilinear interpolation in a case where color is skin color or sky-blue color and using cubic convolution in other cases.
[0006]According to an aspect of the invention, there is provided a pixel interpolation apparatus for converting an image to a predetermined resolution, the apparatus including: a first interpolating part configured to calculate a first interpolation pixel value by performing high order interpolation using pixel values of a plurality of first reference pixels and a distance between the plural first reference pixels and a first interpolation pixel; a second interpolating part configured to calculate a second interpolation pixel value by performing weighted interpolation using pixel values of a plurality of second reference pixels, an edge gradient of the second reference pixels, and the distance between the second reference pixels and a second interpolation pixel; an overshoot area detecting part configured to detect an overshoot area in the image; and an interpolation pixel selecting part configured to determine whether to perform the high order interpolation or the weighted interpolation according to a detection result of the overshoot area detecting part.
[0008]It is to be understood that both the foregoing general description and the followed detailed description are exemplary and explanatory and are not restrictive of the invention, as claimed.
[0009]FIG. 1 is a schematic diagram illustrating a configuration of a pixel interpolation apparatus according to a first embodiment of the present invention;
[0010]FIGS. 2A-2C illustrate examples of edge detecting filters;
[0011]FIGS. 3A and 3B illustrate examples of edge gradient detection filters;
[0012]FIG. 4 is a schematic diagram for describing values used in calculating a pixel value of an interpolation pixel with a sharpening bilinear interpolation process according to an embodiment of the present invention;
[0013]FIG. 5 is a schematic diagram illustrating a manner in which an edge becomes steep by performing a sharpening bilinear interpolation process according to an embodiment of the present invention;
[0014]FIG. 6 is a schematic diagram illustrating an example of transforming the absolute value of an edge gradient to an edge gradient transformation value;
[0015]FIG. 7 is a schematic diagram illustrating an example of pixel values;
[0016]FIG. 8 is a schematic diagram illustrating a configuration of a pixel interpolation apparatus according to a second embodiment of the present invention;
[0017]FIG. 9 is a schematic diagram illustrating a manner in which jaggies in an edge are reduced by performing a sharpening bilinear interpolation process according to an embodiment of the present invention; and
[0018]FIG. 10 is a schematic diagram illustrating a configuration of a pixel interpolation apparatus according to a third embodiment of the present invention.
[0019]The nearest neighbor interpolation method does not calculate an interpolation pixel value from plural interpolation reference pixels but rather obtains an interpolation pixel value from an interpolation reference pixel that is nearest to an interpolation pixel position. Therefore, although the workload for performing this interpolation method may be small, jaggies may appear at diagonal edge parts because pixel values inconsistently change at a boundary of an edge part. This results in a problem of degradation of image quality.
[0020]With the bilinear interpolation method, less overshoot and jaggies appear at the vicinity of an edge part because an interpolation pixel value is calculated by weighting a reference pixel with a distance between an interpolation pixel and an interpolation reference pixel. However, in a case where the size of an image is reduced, jaggies tend to appear unless being processed with a low pass filter. In a case where the size of an image is increased, the image becomes blurry as the angle of an edge usually becomes moderate.
[0021]The cubic convolution method calculates an interpolation pixel value by obtaining approximation curves from sixteen pixels surrounding an interpolation pixel considering even third differentiation (first, second, and third order). Accordingly, overshoot and undershoot appear at the vicinity of sharp edge parts. This results in a problem of degradation of image quality.
[0022]In Japanese Laid-Open Patent Publication No. 2005-107437, an interpolation pixel value is calculated by performing bilinear interpolation with respect to a sharp edge area, performing cubic convolution with respect to a moderate area, and performing weighted addition between interpolation values obtained by bilinear interpolation and cubic convolution with respect to a boundary area between the sharp edge area and the moderate area. With the method disclosed in Japanese Laid-Open Patent Publication No. 2005-107437, although overshoot may be less likely to occur at sharp areas, there is increased blur caused by the bilinear interpolation. Further, in a case where weighting of the bilinear interpolation is increased for preventing overshoot at the boundary area, blur is increased. On the other hand, overshoot increases in a case where weighting of the cubic convolution is increased for reducing the blur.
[0023]In Japanese Laid-Open Patent Publication No. 2004-96715, the pixel interpolation method is selected according to number of colors of an image, edge strength of an image, or sharpness of an image. However, since the nearest neighbor interpolation method or the cubic convolution method is selected as the pixel interpolation method to be used, it is difficult to prevent image degradation due to generation of jaggies and overshoot.
[0024]In Japanese Laid-Open Patent Publication No. 2002-101296, since the bilinear interpolation method and the cubic convolution are used for one of the interpolation functions of an interpolation pixel, it is difficult to prevent image degradation due to blur caused by the bilinear interpolation method and overshoot/undershoot caused by the cubic convolution method.
[0025]In Japanese Laid-Open Patent Publication No. 2000-151990, skin color areas and sky blue color areas are extracted from chirominance components and bilinear interpolation is performed with respect to the skin color areas and the sky-blue color areas for preventing noise from being highlighted (emphasized) whereas a cubic convolution process is performed with respect to other areas. Thereby, roughness that is noticeable in human skin or the sky can be reduced. Furthermore, overshoot or undershoot may appear at sharp edges in areas other than the skin color area or the sky-blue color area. This results in a problem of degradation of image quality.
[0026]In the following, embodiments of the present invention are described with reference to the accompanying drawings.
[0027]The first embodiment is a configuration that detects areas of an input image where overshoot is generated and switches between an interpolation process using high order interpolation calculation (e.g., cubic convolution process) and an interpolation process using weighted interpolation (e.g., sharpening bilinear interpolation process) with respect to each area of the input image according to the detection result. The sharpening bilinear interpolation process is a newly devised interpolation process (described in detail below).
[0028]FIG. 1 is a schematic diagram illustrating a configuration of a pixel interpolation apparatus according to the first embodiment of the present invention.
[0029]In FIG. 1, the pixel interpolation apparatus 1 includes an overshoot area detecting part 10, a first pixel interpolating part 11, a second pixel interpolating part 12, and an interpolation pixel selecting part 13. Although the parts 10-13 of the pixel interpolation apparatus 1 are realized by electronic circuits, the parts 10-13 may be realized by a computer program executed with hardware resources of a computer 20 such as a CPU (Central Processing Unit) 201, a RAM (Random Access Memory) 202, a ROM (Read Only Memory) 203.
[0030]The overshoot area detecting part 10 detects an area of an input image determined to generate overshoot (overshoot area) in a case where an interpolation process using high order interpolation calculation (e.g., cubic convolution process) is performed on the input image. The overshoot area detecting part 10 calculates edge strength with respect to each pixel and determines which area of the input image is the overshoot area. In this embodiment, if the edge strength of any one of interpolation reference pixels surrounding an interpolation area (interpolation pixel) has an absolute value no less than a predetermined threshold, the interpolation area is determined as the overshoot area. In other words, if the edge strength of a reference pixel neighboring an interpolation pixel is no less than a predetermined threshold, the interpolation pixel is determined to be included in the overshoot area. On the other hand, if the edge strength of all of the reference pixels neighboring an interpolation pixel is no greater than a predetermined threshold, the interpolation pixel is determined to be not included in the overshoot area.
[0031]The calculation of edge strength by the overshoot area detecting part 10 is a filtering process which assumes a pixel exhibiting a sharp gradient (overshoot) has a large absolute value. Examples of edge detecting filters are illustrated in FIGS. 2A, 2B, and 2C. The edge filter of FIG. 2A is used in a case where edge direction is not considered. The edge filters in FIGS. 2B and 2C are used in a case where edge strength is calculated with respect the vertical and horizontal directions, respectively. The edge filter illustrated in FIG. 2B is used in calculating edge strength with respect to a horizontal direction. The edge filter illustrated in FIG. 2C is used in calculating edge strength with respect to a vertical direction. In a case of taking edge direction into consideration, an area having a horizontal edge strength with an absolute value no less than a predetermined threshold is determined as the overshoot area in a case where interpolation is performed with respect to the horizontal directions and an area having a vertical edge strength with an absolute value no less than a predetermined threshold is determined as the overshoot area when performing interpolation in the vertical direction.
[0032]Returning to FIG. 1, the first pixel interpolating part 11 performs a high order interpolation process such as a cubic convolution process. Thereby, a value of an interpolation pixel (interpolation pixel value) is obtained by using the pixel values of the reference pixels surrounding the interpolation pixel and the distances from the interpolation pixel to the reference pixels. In the cubic convolution process, assuming that f (p-1), f (p), f (p+1), and f (p+2) represent the pixel values of the reference pixels (p being an integer satisfying a relationship of p<x<p+1 with respect to x axis coordinates of the interpolation pixel), the interpolation pixel value g (x) would be as follows:
g(x)=c((p-1)-x)×f(p-1)+c(p-x)×f(p)+c((p+1)-x)×f(p+1)+c((- p+2)-x)×f(p+2).
However, it is assumed that:
c(t)=1-2|t|2+|t|3(0≦|t|<1) 4-8|t|+5|t|2-|t|3(1≦|t|<2) 0(2≦|t|)
[0033]The second pixel interpolating part 12 includes an edge gradient calculating part 121 and an interpolation pixel value calculating part 122. The second pixel interpolating part 12 performs weighted interpolation. For example, the second pixel interpolating part 12 performs the sharpening bilinear interpolation process in which an interpolation process steeper than a regular bilinear interpolation process is performed.
[0034]The edge gradient calculating part 121 calculates an edge gradient with respect to an interpolation direction of reference pixels by using edge gradient detection filters (edge gradient detection filter in the horizontal direction, edge gradient detection filter in the vertical direction) as illustrated in FIGS. 3A and 3B and outputs the calculated edge gradient to the interpolation pixel calculating part 122.
[0035]The interpolation pixel calculating part 122 calculates an interpolation pixel value by using the edge gradient output from the edge gradient calculating part 121 and the pixel values of reference pixels. With reference to FIG. 4, assuming that "pixel C" represents an interpolation pixel, "pixel A" and "pixel B" represent reference pixels having the interpolation pixel C interposed therebetween, "P1" represents a pixel value of the reference pixel A, "P2" represents a pixel value of the reference pixel B, "P3" represents a pixel value of the interpolation pixel C, "E1" represents an absolute value of the edge gradient of the reference pixel A, "E2" represents an absolute value of the edge gradient of the reference pixel B, and "dx" represents a ratio between the distance between the reference pixel A and the reference pixel B and the distance between the reference pixel A and the interpolation pixel C, the pixel value P3 of the interpolation pixel C is calculated with the following formula.
P 3 = P 1 × ( 1 - x ) × E 2 + P 2 × x × E 1 ( 1 - x ) × E 2 + x × E 1 [ Formula 1 ] ##EQU00001##
[0036]Returning to FIG. 1, the interpolation pixel selecting part 13 selects an interpolation process from the first pixel interpolating part 11 or the second pixel interpolating part 12 according to the detection result of the overshoot area detecting part 10. That is, in a case where the interpolation pixel is detected in an overshoot area, the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by sharpening bilinear interpolation by the second pixel interpolating part 12. In a case where the interpolation pixel is not detected in the overshoot area, the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by cubic convolution by the first pixel interpolating part 11.
[0037]In the pixel interpolation apparatus 1 illustrated in FIG. 1, two pixel interpolation processes are performed on the input image in parallel by the first and second pixel interpolating parts 11 and 12 to allow the interpolation pixel selecting part 13 to select an interpolation result from the first or second pixel interpolating parts 11 and 12. Alternatively, the interpolation pixel selecting part 13 may select an interpolation process beforehand and allow the selected interpolation process to be continued.
[0038]In a case where an interpolation process using high order interpolation (e.g., cubic convolution) is performed with respect to an area having edge strength with a large absolute value, overshoot occurs. Thereby, contours that neighbor the edge parts become visible and are recognized as degradation of image quality. Therefore, by performing the sharpening bilinear interpolation with respect to an area having edge strength with a large absolute value, overshoot can be restrained and degradation of image quality can be prevented. As illustrated in FIG. 5, the absolute value of an edge gradient of a typical edge is large in the vicinity of the center of the edge and becomes smaller the farther away from the center of the edge. Because the weight of the pixels having edge gradient with a small absolute value is increased in a case where the sharpening bilinear interpolation is performed, the edge parts become steep (large gradient) compared to a typical bilinear interpolation process as illustrated in FIG. 5. Therefore, overshoot by the high order interpolation process in the overshoot area can be restrained while pixel interpolation that is significantly sharper than the typical bilinear interpolation can be performed.
[0039]Furthermore, the absolute values of edge gradients with respect to the horizontal direction and the vertical direction may be compared, so that the first pixel interpolating part 11 can perform cubic convolution with respect to the direction having an edge gradient with a smaller absolute value and the second pixel interpolating part 12 can perform the sharpening bilinear interpolation with respect to the direction having an edge gradient with a larger absolute value. Alternatively, an interpolation pixel obtained by performing cubic convolution with the first pixel interpolating part 11 in the horizontal direction and performing sharpening bilinear interpolation with the second pixel interpolating part 12 in the vertical direction and another interpolation pixel obtained by performing sharpening bilinear interpolation with the second pixel interpolating part 12 in the horizontal direction and performing cubic convolution with the first pixel interpolating part 11 in the vertical direction may be blended according to the size of the absolute values of the edge gradients in the horizontal and vertical directions, to thereby obtain an interpolation pixel value.
[0040]Further, in a case where the absolute value of the edge strength output from the overshoot area detecting part 10 (the larger one of the absolute values of the edge strengths of the reference pixels) is less than a predetermined first threshold Th1, the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by cubic convolution with the first pixel interpolating part 11. Further, in a case where the absolute value of the edge strength output from the overshoot area detecting part 10 is no less than a predetermined second threshold Th2, the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by sharpening bilinear interpolation with the second pixel interpolating part 12. Further, in a case where the absolute value of the edge strength output from the overshoot area detecting part 10 is no less than the first threshold Th1 but less than the second threshold Th2, an interpolation pixel value Pout may be a value obtained by the following formula which blends an interpolation pixel value P11 obtained by the cubic convolution with an interpolation pixel value P12 obtained by the sharpening bilinear interpolation.
P out = P 11 × ( Th 2 - E P ) + P 12 × ( E P - Th 1 ) Th 2 - Th 1 [ Formula 2 ] ##EQU00002##
[0041]Alternatively, an interpolation pixel value may be obtained by calculating an edge gradient transformation value ET by transforming the absolute value of an edge gradient with a predetermined transformation method and using the calculated edge gradient transformation value VT and the distance between the interpolation reference pixel and the interpolation pixel. An example of transforming the absolute value of an edge gradient to an edge gradient transformation value is illustrated in FIG. 6. With reference to FIG. 7, assuming that "pixel C" represents an interpolation pixel, "pixel A" and "pixel B" represent reference pixels having the interpolation pixel C interposed therebetween, "P1" represents a pixel value of the reference pixel A, "P2" represents a pixel value of the reference pixel B, "P3" represents a pixel value of the interpolation pixel C, "E1" represents an absolute value of the edge gradient of the reference pixel A, "E2" represents an absolute value of the edge gradient of the reference pixel B, "ET1" represents an edge gradient transformation value of the interpolation pixel C, "ET2" represents an edge gradient transformation value of the reference pixel B, and "dx" represents a ratio between the distance between the reference pixel A and the reference pixel B and the distance between the reference pixel A and the interpolation pixel C, the pixel value P3 of the interpolation pixel C is calculated with the following formula.
P 3 = P 1 × ( 1 - x ) × ET 2 + P 2 × x × ET 1 ( 1 - x ) × ET 2 + x × ET 1 [ Formula 3 ] ##EQU00003##
[0042]The second embodiment is a configuration that detects areas of an input image where a jaggy is generated and switches between an interpolation process using high order interpolation calculation (e.g., cubic convolution process) and an interpolation process using weighted interpolation (e.g., sharpening bilinear interpolation process) with respect to each area of the input image according to the detection result.
[0043]FIG. 8 is a schematic diagram illustrating a configuration of a pixel interpolation apparatus 1 according to the second embodiment of the present invention.
[0044]In FIG. 8, the pixel interpolation apparatus 1 includes a jaggy area detecting part 14, a first pixel interpolating part 11, a second pixel interpolating part 12, and an interpolation pixel selecting part 13. Although the parts 11-14 of the pixel interpolation apparatus 1 are realized by electronic circuits, the parts 11-14 may be realized by a computer program executed with hardware resources of a computer 20 such as a CPU (Central Processing Unit) 201, a RAM (Random Access Memory) 202, a ROM (Read Only Memory) 203.
[0045]The jaggy area detecting part 14 detects an area of an input image determined to generate a jaggy or jaggies (jaggy area) in a case where an interpolation process using high order interpolation calculation (e.g., cubic convolution process) is performed on the input image. The jaggy area detecting part 14 calculates edge strength with respect to each pixel and determines which area of the input image is the jaggy area. In this embodiment, if the edge strength of any one of interpolation reference pixels surrounding an interpolation area (interpolation pixel) has an absolute value no less than a predetermined threshold, the interpolation area is determined as the jaggy area. In other words, if the edge strength of a reference pixel neighboring an interpolation pixel is no less than a predetermined threshold, the interpolation pixel is determined to be included in the jaggy area. On the other hand, if the edge strengths of all of the reference pixels neighboring an interpolation pixel are no greater than a predetermined threshold, the interpolation pixel is determined to be not included in the jaggy area.
[0046]The jaggy area detecting part 14 calculates the edge gradients with respect to each pixel in horizontal and vertical directions by using edge gradient detection filters as illustrated in FIGS. 3A and 3B. FIG. 3A illustrates edge gradient detection filters in the horizontal direction. FIG. 3B illustrates edge gradient detection filters in the vertical direction. The conditions for detecting the jaggy area may be set so that the absolute values of the edge gradients in the horizontal direction are larger than those in the vertical direction for all of the reference pixels of the interpolation pixel or the absolute values of the edge gradients in the vertical direction are larger than those in the horizontal direction for all of the reference pixels of the interpolation pixel, the signs (negative, positive) of the edge gradients in the horizontal direction and the edge gradients in the vertical direction are the same, and the larger one of the absolute value of the edge gradient in the horizontal direction and the vertical direction is no less than a predetermined threshold.
[0047]Returning to FIG. 8, the first pixel interpolating part 11 performs a high order interpolation process such as a cubic convolution process. Thereby, a value of an interpolation pixel (interpolation pixel value) is obtained by using the pixel values of the reference pixels surrounding the interpolation pixel and the distances from the interpolation pixel to the reference pixels. In the cubic convolution process, assuming that f (p-1), f (p), f (p+1), and f (p+2) represent the pixel values of the reference pixels (p being an integer satisfying a relationship of p<x<p+1 with respect to x axis coordinates of the interpolation pixel), the interpolation pixel value g (x) would be as follows:
g(x)=c((p-1)-x)×f(p-1)+c(p-x)×f(p)+c((p+1)-x)×f(p+1)+c((- p+2)-)×f(p+2).
c(t)=1-2|t|2+|t|3(0≦|t|<1) 4-8|t|+5|t|2-|t|3(1≦|t|<2) 0(2≦|t|).
[0048]The second pixel interpolating part 12 includes an edge gradient calculating part 121 and an interpolation pixel value calculating part 122. The second pixel interpolating part 12 performs weighted interpolation. For example, the second pixel interpolating part 12 performs the sharpening bilinear interpolation process in which an interpolation process steeper than a regular bilinear interpolation process is performed.
[0049]The edge gradient calculating part 121 calculates an edge gradient with respect to an interpolation direction of reference pixels by using edge gradient detection filters (edge gradient detection filter in horizontal direction, edge gradient detection filter in vertical direction) as illustrated in FIGS. 3A and 3B and outputs the calculated edge gradient to the interpolation pixel calculating part 122.
[0050]The interpolation pixel calculating part 122 calculates an interpolation pixel value by using the edge gradient output from the edge gradient calculating part 121 and the pixel values of reference pixels. With reference to FIG. 4, assuming that "pixel C" represents an interpolation pixel, "pixel A" and "pixel B" represent reference pixels having the interpolation pixel C interposed therebetween, "P1" represents a pixel value of the reference pixel A, "P2" represents a pixel value of the reference pixel B, "P3" represents a pixel value of the interpolation pixel C, "E1" represents an absolute value of the edge gradient of the reference pixel A, "E2" represents an absolute value of the edge gradient of the reference pixel B, and "dx" represents a ratio between the distance between the reference pixel A and the reference pixel B and the distance between the reference pixel A and the interpolation pixel C, the pixel value P3 of the interpolation pixel C is calculated with the following formula.
P 3 = P 1 × ( 1 - x ) × E 2 + P 2 × x × E 1 ( 1 - x ) × E 2 + x × E 1 [ Formula 4 ] ##EQU00004##
[0051]Returning to FIG. 8, the interpolation pixel selecting part 13 selects an interpolation process from the first pixel interpolating part 11 or the second pixel interpolating part 12 according to the detection result of the jaggy area detecting part 14. That is, in a case where the interpolation pixel is detected in a jaggy area, the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by sharpening bilinear interpolation by the second pixel interpolating part 12. In a case where the interpolation pixel is not detected in the jaggy area, the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by cubic convolution by the first pixel interpolating part 11.
[0052]In the pixel interpolation apparatus 1 illustrated in FIG. 8, two pixel interpolation processes are performed on the input image in parallel by the first and second pixel interpolating parts 11 and 12 to allow the interpolation pixel selecting part 13 to select an interpolation result from the first or second pixel interpolating parts 11 and 12. Alternatively, the interpolation pixel selecting part 13 may select an interpolation process beforehand and allow the selected interpolation process to be continued.
[0053]Because a jaggy is generated in an area having a gradient existing in an edge part and a sharpening bilinear interpolation process requires reference pixels to have edge gradients of the same sign, an area is determined (detected) as a jaggy area when at least either one of the reference pixels has an edge gradient with an absolute value no less than a predetermined threshold and the edge gradients of the area have the same sign. With reference to FIG. 9, in a case where interpolation using cubic convolution is performed on a diagonal edge part in this area, the interpolated pixel would have a pixel value in the vicinity of a mid-point between a line above the interpolation pixel and a line below the interpolation pixel. Therefore, the gradient (inclination) of the edge of the line above the interpolation pixel becomes different compared to the gradient (inclination) of the edge of the line below the interpolation pixel. This difference of gradient is recognized as a jaggy(ies). On the other hand, because interpolation using sharpening bilinear interpolation increases the weight of the pixel having an edge gradient with a lower absolute value, the edge gradient of the line above the interpolation pixel and the edge gradient of the line below the interpolation pixel would be different between interpolation in a line direction and interpolation in a vertical direction. The interpolation pixel value becomes closer to the pixel value of the line above the interpolation pixel with respect to the left side of the center of the edge whereas the interpolation pixel value becomes closer to the pixel value of the line below the interpolation pixel value with respect to the right side of the center of the edge. Accordingly, the edge becomes steeper and becomes closer to the edge gradient (edge inclination) of the reference pixel. Therefore, the variance of the edge gradient (edge inclination) is restrained and generation of jaggy is prevented.
[0054]Further, in a case where the absolute value of the edge gradient output from the jaggy area detecting part 14 (the larger one of the absolute values of the edge gradients of the reference pixels) is less than a predetermined first threshold Th1 the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by cubic convolution with the first pixel interpolating part 11. Further, in a case where the absolute value of the edge gradient output from the jaggy area detecting part 14 is no less than a predetermined second threshold Th2, the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by sharpening bilinear interpolation with the second pixel interpolating part 12. Further, in a case where the absolute value of the edge strength output from the jaggy area detecting part 14 is no less than the first threshold Th1 but less than the second threshold Th2, an interpolation pixel value Pout may be a value obtained by the following formula which blends an interpolation pixel value P11 obtained by the cubic convolution with an interpolation pixel value P12 obtained by the sharpening bilinear interpolation are blended.
P out = P 11 × ( Th 2 - E S ) + P 12 × ( E S - Th 1 ) Th 2 - Th 1 [ Formula 5 ] ##EQU00005##
[0055]The third embodiment is a configuration that detects areas of an input image where an overshoot and/or an jaggy is generated and switches between an interpolation process using high order interpolation calculation (e.g., cubic convolution process) and an interpolation process using weighted interpolation (e.g., sharpening bilinear interpolation process) with respect to each area of the input image according to the detection result.
[0056]FIG. 10 is a schematic diagram illustrating a configuration of a pixel interpolation apparatus 1 according to the third embodiment of the present invention.
[0057]In FIG. 10, the pixel interpolation apparatus 1 includes an overshoot area detecting part 10, a jaggy area detecting part 14, a first pixel interpolating part 11, a second pixel interpolating part 12, and an interpolation pixel selecting part 13. Although the parts 10-14 of the pixel interpolation apparatus 1 are realized by electronic circuits, the parts 10-14 may be realized by a computer program executed with hardware resources of a computer 20 such as a CPU (Central Processing Unit) 201, a RAM (Random Access Memory) 202, a ROM (Read Only Memory) 203.
[0058]The overshoot area detecting part 10 detects an area of an input image determined to generate overshoot (overshoot area) in a case where an interpolation process using high order interpolation calculation (e.g., cubic convolution process) is performed on the input image.
[0059]The jaggy area detecting part 14 detects an area of an input image determined to generate a jaggy or jaggies (jaggy area) in a case where an interpolation process using high order interpolation calculation (e.g., cubic convolution process) is performed on the input image.
[0060]The first pixel interpolating part 11 performs a high order interpolation process such as a cubic convolution process. Thereby, a value of an interpolation pixel (interpolation pixel value) is obtained by using the pixel values of the reference pixels surrounding the interpolation pixel and the distances from the interpolation pixel to the reference pixels.
[0061]The second pixel interpolating part 12 includes an edge gradient calculating part 121 and an interpolation pixel value calculating part 122. The second pixel interpolating part 12 performs weighted interpolation. For example, the second pixel interpolating part 12 performs the sharpening bilinear interpolation process in which an interpolation process steeper than a regular bilinear interpolation process is performed.
[0062]In a case where the interpolation pixel is detected in an overshoot area according to a detection result output from the overshoot area detecting part 10 or where the interpolation pixel is detected in a jaggy area according to a detection result output from the jaggy area detecting part 14, the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by sharpening bilinear interpolation by the second pixel interpolating part 12. That is, in this case, the sharpening bilinear interpolation process is selected as the interpolation process to be performed on the input image. In a case where the interpolation pixel is detected in neither the overshoot area nor the jaggy area, the interpolation pixel selecting part 13 selects an interpolation pixel interpolated by cubic convolution by the first pixel interpolating part 11. That is, in this case, the cubic interpolation process is selected as the interpolation process to be performed on the input image.
[0063]In the pixel interpolation apparatus illustrated in FIG. 10, two pixel interpolation processes are performed on the input image in parallel by the first and second pixel interpolating parts 11 and 12 to allow the interpolation pixel selecting part 13 to select an interpolation result from the first or second pixel interpolating parts 11 and 12. Alternatively, the interpolation pixel selecting part 13 may select an interpolation process beforehand and allow the selected interpolation process to be continued.
[0064]With the interpolation pixel selecting part 13 according to the third embodiment, assuming that "EP" represents the absolute value of the edge strength output from the overshoot area detecting part 10 (the larger one of the absolute values of the edge strengths of the reference pixels), "ES" represents the absolute value of the edge gradient output from the jaggy area detecting part 14, "Bep" represents a blend proportion of an interpolation pixel interpolated by the sharpening bilinear interpolation process according to edge strength, "Bes" represents a blend proportion of an interpolation pixel interpolated by the sharpening bilinear interpolation process according to edge gradient, "Th1" and "Th2" represent a predetermined threshold of the edge strength, and "Th3" and Th4" represent a predetermined threshold of the edge gradient, the following relationships are satisfied:
Bep = 0 ( E P < Th 1 ) ( E P - Th 1 ) / ( Th 2 - Th 1 ) ( Th 1 ≦ EP < Th 2 ) 1 ( Th 2 ≦ < E P ) ##EQU00006## Bes = 0 ( E S < Th 3 ) ( E S - Th 3 ) / ( Th 4 - Th 3 ) ( Th 3 ≦ E S < Th 4 ) 1 ( Th 4 ≦ E S ) . ##EQU00006.2##
Further, assuming that "Bf" represents the one of Bep or Bes having a greater value, "P11" represents an interpolation pixel value according to cubic interpolation, and "P12" represents an interpolation pixel value according to sharpening bilinear interpolation, the interpolation pixel value Pout would be as follows:
Pout=P11×(1-Bf)+P12×Bf.
[0065]With the above-described embodiments of the pixel interpolation apparatus, the pixel interpolation method, and computer-readable recording medium, overshoot and jaggies, which tend to appear in the vicinity of an edge of an image or a part of an image having large gradient, can be reduced.
[0066]All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Patent applications by Kohji Yamada, Kawasaki JP
Patent applications by Mari Iwasaki, Fukuoka JP
2010-07-08 Method, system, and computer readable medium for face detection
2010-07-22 Apparatus, method, and program for image correction
2010-07-15 Image processing apparatus, control method therefor, and recording medium
2009-08-27 Pixel interpolation apparatus and method