METHOD AND APPARATUS FOR VIDEO SOURCE DATA INTERPOLATION

Abstract: A method of generating an upsampled target pixel positioned between two lines of input source data includes the step of comparing pixels of different lines of the source data in a region surrounding the umpsampled target pixel to be generated in at least two different directions (50, 52, 54). An interpolation direction based on the comparison is selected (58) and interpolations between selected pixels of the source data in the determined interpolation direction are carried out to compute intermediate pixels on a line segment passing through the upsampled target pixel (60, 62). An interpolation between the intermediate pixels is carried out to generate the upsampled target pixel (64). An apparatus for performing the method is also disclosed.

Description: METHOD AND APPARATUS FOR VIDEO SOURCE DATA INTERPOLATION TECHNICAL FIELD The present invention relates to data interpolation and in particular to a method of generating an upsampled target pixel from input source data and an apparatus for performing the method. BACKGROUND ART Video images can be represented as a two-dimensional array of digital data with each data point in the array representing a pixel of the digitized video image. The value assigned to each pixel determines its intensity and/or colour when the video image is recreated. In the video imaging art, it is often desired to magnify a video image to arbitrary magnification factors to create enlarged video images. When creating an enlarged image from an original image represented by a digital data array, it is necessary to interpolate between pixels of the original digital data array to generate upsampled pixels between consecutive lines and pixels of the original digital data array to "fill" in pixels of the enlarged image. Prior art techniques to create these enlarged video images have been considered. It is common practice in the prior art to use an orthogonal, Cartesian approach to interpolate separately the vertical and horizontal dimensions of the digitized video image to be enlarged. However, this technique typically results in enlarged video images which suffer from jagged edges commonly referred to as "stairstepping". Improvements in the interpolation method used may reduce the stairstepping, but it cannot be completely avoided because it is inherent when using this technique. A directional interpolation scheme addresses the stairstepping problem. Directional interpolation recognizes the geometric structure in images. With directional interpolation, it has been found that interpolation along the edges produces improved results over interpolation across the edges. Directional interpolation involves analysing local image structure and performing the interpolation based on the image structure. U.S. Patent No. 5,019,903 to Dougall et al. discloses an apparatus for directionally interpolating between lines of a supersampled digital signal. The apparatus calculates gradient vectors for use in directionally interpolating a vertically upsampled line. This operation makes the apparatus best suited for line- doubling deinterlacing applications. U.S. Patent No. 5,347,599 to Yamashita et al. discloses an adaptive interpolation method and an apparatus using correlation detection. The apparatus performs calculations on lines of pixels of the source data to select the desired upsampling direction. However, similar to Dougall et al, this apparatus is also best suited for line-doubling deinterlacing applications. Although Dougall et al. and Yamashita et al. disclose alternative directional interpolation methods to generate upsampled pixels, their design is such as to support only fixed, integral vertical resize factors. Accordingly, there exists a need for an improved interpolation method and apparatus that supports arbitrary, fractional resize factors in both vertical and horizontal dimensions. It is therefore an object of the present invention to provide a novel method and apparatus for generating an upsampled target pixel from input source data. DISCLOSURE OF THE INVENTION The present invention performs directional interpolation to arbitrary, fractional resize factors. First, an interpolation direction is selected corresponding to any low-frequency edges in the source data. Next, directional interpolation is performed to generate intermediate pixels. The intermediate pixels are then interpolated, possibly non-orthogonally, to generated the desired upsampled pixel. More specifically, according to one aspect of the present invention there is provided a method of generating an upsampled target pixel from input source data comprising the steps of: (i) comparing pixels of different lines of said source data in a region surrounding an upsampled target pixel to be generated in at least two different directions; (ii) selecting an interpolation direction based on the comparisons of step 0); (iii) interpolating between selected pixels of different lines of said source data in the interpolation direction determined at step (ii) and computing intermediate pixels on a line segment passing through said upsampled target pixel; and (iv) interpolating between the intermediate pixels to generate said upsampled target pixel. In the preferred embodiment, the line segment is parallel to the lines of the source data. Restricting the line segment to be horizontal as such, greatly simplifies the calculation of the intermediate pixels and the upsampled target pixel. In one possible embodiment, pixels of different lines of source data are compared in three different directions, including a vertical direction, and opposite oblique directions forming an angle with the vertical direction that is in the range 0<angle<90°. During the comparisons of step (i), difference values between the compared pixels are generated, the difference values being used to select the interpolation direction at step (ii). In this embodiment, prior to step (ii), the difference values resulting from the comparisons in the three directions are compared to determine whether the differences therebetween are within a threshold. The direction associated with the smallest difference value is selected as the interpolation direction when none of the differences are within the threshold. When the differences between the difference values resulting from the comparisons in all three directions are within the threshold, the vertical direction is selected as the interpolation direction. When the difference between the difference values resulting from the comparisons in the vertical direction and only one of the oblique directions is within the threshold, that oblique direction is selected as the interpolation direction. When the difference between the difference values resulting from the comparisons in the two oblique directions is within the threshold, additional pixels of the different lines of source data are compared in the opposite oblique directions. The difference values generated as a result of these comparisons are compared. When the difference between the difference values resulting from the comparisons of the additional pixels is within the threshold, the vertical interpolation direction is selected as the interpolation directions. In another embodiment the line segment is once again parallel to the lines of the source data but this time pixels of the different lines of source data are compared in seven directions at step (i). These directions include the vertical direction and three pairs of opposite oblique directions forming varying angles with the vertical direction that are within the range 0°<angle<90°. Difference values between the compared pixels of step (i) are calculated. In this embodiment, the set of difference values to the left of the set under consideration and the set to the right are also examined. The three difference values for each possible oblique interpolation direction are summed and compared to determine if the differences therebetween are within a threshold. When none of the differences are sufficiently small to indicate a low-frequency edge in the source image, then the vertical direction is selected as the interpolation direction. When none of the differences are within the threshold, then the oblique direction associated with the smallest difference value is selected as the interpolation direction. When difference values associated with a "right-ward" oblique direction and a "left-ward" oblique direction are within the threshold, then the vertical direction is once again selected as the interpolation direction. Otherwise one of the oblique directions is selected as the interpolation direction. According to another aspect of the present invention there is provided an apparatus for generating an upsampled target pixel from input source data comprising: comparison means for comparing pixels of different lines of said source data in a region surrounding an upsampled target pixel to be generated, in at least two different directions; selection means for selecting an interpolation direction in response to said comparison means; and upsampling means for interpolating between selected pixels of different lines of said source data in the interpolation direction selected by said selection means to compute intermediate pixels on a line segment passing through said upsampled target pixel and for inteφolating between the intermediate pixels to generate said upsampled target pixel. The present invention provides advantages in that upsampled target pixels can be generated to allow large magnified images to be created with reduced stairstepping, particularly in the case of large magnification factors. BRIEF DESCRIPTION OF THE DRAWINGS Embodiments of the present invention will now be described more fully with reference to the accompanying drawings in which: Figure 1 is a diagram showing the pixels of three consecutive lines of video image source data, the position of an upsampled target pixel to be generated and the region surrounding pixels of the source data used to generate the upsampled target pixel; Figure 2 is a diagram showing the comparisons that are made between pixels of the source data in order to determine the inteφolation direction to be used when generating an upsampled target pixel; Figure 3 is a diagram illustrating additional comparisons that are made between pixels of the source data when comparisons in two oblique directions yield similar values; Figure 4 is a diagram showing a vertical upsampling technique used to generate an upsampled target pixel; Figure 5 is a diagram showing a negative slope oblique upsampling technique used to generate an upsampled target pixel; Figure 6 is a diagram showing a positive slope oblique upsampling technique used to generate an upsampled target pixel; Figures 7a and 7b are flowcharts showing the steps performed in the first method when generating an upsampled target pixel from the source data; Figure 8 is a block diagram showing an apparatus for generating upsampled target pixels from input source data; Figure 9 is a schematic of a delay circuit forming part of the apparatus illustrated in Figure 8; Figure 10 is a schematic of a decision circuit forming part of the apparatus illustrated in Figure 8; Figure 11 is a schematic of a β calculator forming part of the apparatus illustrated in Figure 8; Figure 12 is a schematic of an oblique upsampler forming part of the apparatus illustrated in Figure 8; Figure 13 is a diagram illustrating the comparisons between source pixels made in determining the inteφolation direction for a second embodiment; Figure 14 is a diagram illustrating a boundary crossing situation; Figure 15 is a diagram showing a vertical upsampling technique used to generate an upsampled target pixel; Figure 16 is a diagram showing a positive 45° slope oblique upsampling technique used to generate an upsampled target pixel; Figure 17 is a diagram showing a negative 45° slope oblique upsampling technique used to generate an upsampled target pixel; Figure 18 is a diagram showing the source pixels used in a 26.6° slope oblique upsampling technique. Figure 19 is a diagram showing a positive 26.6° slope oblique upsampling technique used to generate an upsampled target pixel; Figure 20 is a diagram showing a negative 26.6° slope oblique upsampling technique used to generate an upsampled target pixel; Figure 21 is a diagram showing a positive 63.4° slope oblique upsampling technique used to generate an upsampled target pixel; Figure 22 is a diagram showing a negative 63.4° slope oblique upsampling technique used to generate an upsampled target pixel; Figures 23a and 23b are flowcharts showing the steps performed in a second method when generating an upsampled target pixel from the source data; Figure 24 is a block diagram showing a second apparatus for generating upsampled target pixels from input source data; Figure 25 is a schematic of a delay circuit forming part of the apparatus illustrated in Figure 24; Figure 26 is a schematic of a decision circuit forming part of the apparatus illustrated in Figure 24; Figure 27 is a schematic of a β calculator forming part of the apparatus illustrated in Figure 24; and Figure 28 is a schematic of an oblique upsampler forming part of the apparatus illustrated in Figure 24. BEST MODE FOR CARRYING OUT THE INVENTION When upsampling input video image digital source data to create an enlarged video image, it is necessary to generate upsampled target pixels between the lines and pixels of the digital source data. The resize factor and the resize direction (i.e. vertical and/or horizontal) determine the number as well as the position of the upsampled target pixels to be generated. In order to reduce stairstepping and create enlarged video images of high resolution, it is necessary to calculate accurately the values for the various upsampled target pixels to be generated. Thus, the upsampling inteφolation direction used to generate the values of the upsampled target pixels should be selected to achieve this goal. Failure to select an upsampling inteφolation direction which results in accurate values for the upsampled target pixels will result in the generation of enlarged images with noticeable stairstepping. The present method and apparatus generates an upsampled target pixel by calculating the difference in values of pixels of the digital source data in a region surrounding the upsampled target pixel to be generated in a number of directions. The calculated difference values are then examined in order to select an inteφolation direction. Inteφolations between selected pixels of the digital source data in the determined inteφolation direction are then performed to generate intermediate pixels on a line segment that passes through the upsampled target pixel to be generated. Restricting the line segment to be parallel to the source data - that is, horizontal - simplifies the calculation of the intermediate pixels. Inteφolations between the intermediate pixels are then performed to generate the upsampled target pixel. An embodiment of the present method of generating an upsampled target pixel from input source data will now be described with particular reference to Figures 1 to 7b. When an upsampled target pixel w is to be generated, the closest pixel to the upsampled target pixel in the digital source data is determined and is used as a reference pixel P R in the inteφolation method. The two consecutive lines of source data between which the upsampled target pixel is located are also determined. The reference pixel, the adjacent pixel on the same line of source data as the reference pixel P R and the two pixels on the other line of source data that form a rectangular region R surrounding the upsampled target pixel are determined (see block 50 in Figure 7a). The four source pixels that define the boundary of region R are used initially to determine the inteφolation direction as will be described. The region R may correspond to any one of the four quadrants, namely top-left, top-right, bottom-left or bottom-right surrounding the reference pixel P R . Figure 1 shows a small segment of digital source data. The source pixels are labelled relative to the reference pixel P R = U QO . The first line of source data is represented by five pixels U.,. 2 to U I2 , the second line of source is represented by pixels U 0.2 to U 02 and the third line of source is represented by pixels U, .2 to U, 2 . Clearly, pixel U 00 is the closest pixel to upsampled target pixel w and is the designated reference pixel P R . In this example, the upsampled target pixel w is positioned between the first and second lines in the top-left quadrant of region R. Pixels U . , . „ U. 10 , U 0 ., and U^, are the pixels that define the region R surrounding the upsampled target pixel w and are used in the inteφolation direction making decision. The following chart shows the pixels of the source data that define the region R in the four quadrants surrounding the reference pixel: Quadrant Pixels in Region R Top-Left U 00 , U 0 .,, U ,., , U 10 Top-Right UQ O , U 01 , U , , , U., 0 Bottom-Left U^, U 0 .,, U , U 10 Bottom-Right U 00 , U 0I , U„ , U 10 Once the four pixels of region R have been determined, calculations are performed corresponding to three inteφolation directions (see block 52). In the example of Figure 1, region R is defined by pixels: TJ.,.,, U., 0 , U 0 ., and U^ and the following calculations are performed: Figure 2 illustrates the inteφolation directions O L , O R and V associated with the three calculations performed on pixels TJ.,.,, U., 0 , U 0 ., and U^, . Similar calculations apply for the other three quadrants. The calculation which yields the smallest difference value is usually associated with the inteφolation direction which will yield an upsampled target pixel w having a value which is most similar to the values of the surrounding pixels of the source data. However before the inteφolation direction is selected based on the results of these calculations, the calculated difference values are compared with each other to determine whether the differences are within a threshold of one another (see blocks 54 and 56). If one of the calculated difference values is clearly smaller than the other two values, the inteφolation direction associated with the smallest calculated value is selected (block 58). If all three calculated difference values are within the threshold, the vertical inteφolation direction V is selected (blocks 66 and 68). If the calculated difference value associated with the vertical inteφolation direction V and the calculated difference value associated with only one of the oblique directions O L or O R are within the threshold of one another, the oblique inteφolation direction is selected (blocks 70 and 72). In the case where the calculated difference values associated with the two oblique inteφolation directions O L and O R are within the threshold of one another, it is important to select the proper inteφolation direction since an incorrect decision will yield an enlarged image with noticeable discontinuities in diagonal lines. To assist in the selection process, calculations using additional pixels from the same lines of source data are performed (block 74). Figure 3 shows these additional calculations for the example of Figures 1 and 2: Calculation Associated Interpolation Direction abs[Uoo-U.„] oblique 45° up-right 01 AR (4) absIUc-U. L j] oblique 45° up-left Ol AL (5) These additional calculated difference values are then compared to determine if they are within the threshold of one another (block 76). If one of these difference values is clearly smaller than the other, the oblique inteφolation direction O L or O R associated with that calculated difference value is selected (block 58). However, if these two additional calculated difference values are within the threshold of one another, the additional following calculations using additional pixels from the same lines of source data are performed (block 78): Calculation Associated Interpolation Direction abs[Uo .2 -U., . ,] oblique 45° up-right O2 AR (6) abs[U 01 -U .10 ] oblique 45° up-left O2 AL (7) Similarly, these additional calculated difference values are compared to determine if they are within the threshold of one another (block 80). If one of these difference values is clearly smaller than the other, the oblique inteφolation direction O L or O R associated with that calculated difference value is selected (block 58). However, if these two additional calculated difference values are within the threshold of one another, the vertical inteφolation direction V is selected as a default to avoid the resolution problems which would occur if the incorrect oblique inteφolation direction was selected (block 82). Once the inteφolation direction is determined, selected pixels of the source data are determined based on the inteφolation direction (block 60) and the inteφolation direction is used to inteφolate between the selected pixels of the source data to generate intermediate pixels v (block 62). The intermediate pixels are then inteφolated horizontally to generate the upsampled target pixel w (block 64). Before the upsampled target pixel w can be generated, the location of the upsampled target pixel w must be determined. The upsampled target pixel w is defined by its distances from the reference pixel P R both in the vertical and horizontal directions. These distances are represented by the terms α y and α* where: -0.5 < α y <0.5; and -0.5 < α x <0.5; α y being positive downward and α x being positive to the right. The signs of α y and α, are related to the quadrant as follows: With the values of α x and O y known, inteφolations are performed between the selected pixels of the source data in the determined inteφolation direction. The resulting intermediate pixels v, are positioned on a horizontal line segment which passes through the upsampled target pixel w. In the present embodiment linear upsampling is described, however higher orders of inteφolation can be used. Figure 4 shows an upsampled target pixel w positioned in the bottom-right quadrant. In this case, both α x and O y are positive. The region R is defined by pixels UQ O , U 0! , U 10 and U π and pixel U 00 defines the reference pixel P R . Intermediate pixels v 0 , v, and v 2 are also shown and have been computed using linear upsampling in the vertical direction. The intermediate pixels v 0 , v, and v 2 in this case are computed using the following equations: v, = (1-ogUoo + of U 10 (9) v 2 = (1-o Uo, -r r^U,, (10) After the three upsampled intermediate pixels have been computed, inteφolations are performed orthogonally horizontally between the two intermediate pixels on opposite sides of the upsampled target pixel w to determine the value of the upsampled target pixel. Therefore, before the upsampled target pixel w can be computed, it is necessary to determine which two intermediate pixels to select. In order to select the intermediate pixels, the term β is defined as the horizontal distance from the middle intermediate pixel v, to the upsampled target pixel w. The term β is positive to the right. For vertical inteφolation, β = α x . The sign of β determines which two intermediate pixels surround the target pixel w. In the example of Figure 4, β >0 so the inteφolation is performed between v, and v 2 . The value of the upsampled target pixel w is computed using the following equation: w = (l-α x )v, + c^v 2 (11) In other quadrants, that is, cases for α y and oc,, the intermediate pixels v and the upsampled target pixel w are calculated in a similar manner using different pixels of the source data that surround the reference pixel P R . When the oblique up-left inteφolation direction O L is selected, the intermediate pixels v 0 , v, and v 2 are computed by inteφolating linearly between selected pixels of the source data along negatively sloped diagonal lines. When linearly inteφolating, the important parameter is the ratio of the distance of the inteφolated pixel endpoints. Since the lines of source data and the horizontal line segment defined by the intermediate pixels are parallel, the intermediate pixels can be defined by α y , similar to the vertical upsampling case. Figure 5 shows the case of an upsampled target pixel w positioned in the bottom-right quadrant with α y and o^ once again positive. Region R is defined by pixels U^, U 0I , U I0 and U,, with pixel U^ defining the reference pixel P R . Intermediate pixels v 0 , v, and v 2 are also shown and have been computed using oblique up-left inteφolation. The intermediate pixels v 0 , v, and v 2 are computed using the following equations: vo = (l-α y )Uo., + ^U, 0 (12) v 1 = (l-α y )U 00 + α y U 1 I (13) After the three upsampled intermediate pixels have been computed, inteφolations are performed non-orthogonally horizontally between the two intermediate pixels on opposite sides of the upsampled target pixel w to determine the value of the upsampled target pixel. In the example of Figure 5, since upsampling has been performed along 45° diagonal lines, the horizontal distance from intermediate pixel v, to reference pixel U^, is the same as the vertical distance, namely α y . Thus, the distance β from the upsampled target pixel w to the intermediate pixel v, is equal to α x - r y . In fact this equation for β in oblique up- left upsampling is valid for all quadrants, β is negative in this case implying that the inteφolation is between intermediate pixels v, and v 0 . Therefore, the value of the upsampled target pixel w is computed using the following equation: w = (l-(-β))v, + (-β)v 0 (15) In other quadrants, the intermediate pixels v and the upsampled target pixel w are calculated in a similar manner using different selected pixels of the source data that surround the reference pixel P R . When the oblique up-right inteφolation direction O R is selected, the intermediate pixels v 0 , v, and v 2 are computed by inteφolating linearly between selected pixels of the source data located along positively sloped diagonal lines in a similar manner to that described above with reference to Figure 5. Figure 6 shows an upsampled target pixel w positioned in the region R defined by pixels \J M , U 0 ι, U 10 and TJ,, with pixel U QO defining the reference pixel P R . Intermediate pixels v 0 , v, and v 2 are also shown and have been computed using oblique up-right inteφolation. The intermediate pixels v 0 , v, and v 2 are computed using the following equations: v 0 = (l-tx y )U 0 . 1 + <^U,. 2 (16) v, = (1-o Uoo + α^U,., (17) v 2 = (l-α y )U 0l + ^U, 0 (18) After the three upsampled intermediate pixels have been computed, inteφolations are performed non-orthogonally horizontally between the two intermediate pixels on opposite sides of the upsampled target pixel w to determine the value of the upsampled target pixel. For oblique up-right upsampling it can be shown that β = α x + O y . In the case of Figure 6, β is positive implying that the inteφolation is between intermediate pixels v, and v 2 . The value of the upsampled target pixel w is computed using the following equation: w = (l-β)v, + βv 2 (19) In other quadrants, the intermediate pixels v and the upsampled target pixel w are calculated in a similar manner using different selected pixels of the source data that surround the reference pixel P R . The above-described method shows access to three lines of source data to demonstrate the cases for the four possible quadrants. It should be noted, however, that once the upsampling quadrant is known only two lines of source data are needed to perform the inteφolations and generate the upsampled target pixel. Referring now to Figure 8, a source data inteφolation apparatus for carrying out the above described method is shown and is generally indicated by reference numeral 100. The apparatus 100 receives a stream of input digital source data D in and inteφolates between selected pixels U of the source data in order to generate upsampled target pixels w. The apparatus 100 includes a delay circuit 102 receiving the stream of source data. The delay circuit extracts the required pixels of the source data necessary to generate the desired upsampled target pixel w and passes the required pixels of source data to a decision circuit 104 as well as to an oblique upsampler 106. The decision circuit 104 performs calculations numbered 1 to 3 and 4 to 7 on the pixels of source data if necessary and compares the calculated difference values with the threshold to determine the desired inteφolation direction. The inteφolation direction output of the decision circuit 104 is fed to the oblique upsampler 106 and to a β calculator 108. The output of the β calculator 108 is applied to the oblique upsampler 106 which uses the input data to generate the desired upsampled target pixel w. Figure 9 better illustrates the delay circuit 102. As can be seen, the delay circuit has an input line 112 receiving the stream of input source data necessary to generate the desired upsampled target pixel w. The input line branches, with one branch 1 14 leading directly to three delay elements 120, 122 and 124 connected in series. The other branch 116 leads to a line store 126. The output of the line store 126 leads to three delay elements 128, 130 and 132 connected in series. The line store and the delay elements in each branch allow the delay circuit 102 to output four pixels from two consecutive lines of input source data simultaneously. For the case of inteφolating in the bottom-right quadrant, with both α x and O y positive, the eight pixels extracted correspond to pixels U 0. „ U oo, U OI , U 02 , U , U, 0 , U,, , and U, 2 as shown. The decision circuit 104 is best seen in Figure 10 and has six input lines, each of which receives a selected pixel output by the delay circuit 102. The inputs are applied pairwise to subtracters 140, 146, and 150. The outputs of the subtracters are applied through delay elements 142, 144, 148, 152 and 154 to the selection logic 156 and represent the difference value results of calculations numbered 1 to 3. The delay elements are necessary in order provide the difference value results corresponding to calculations numbered 4 to 7. Specifically, the output of subtracter 140, corresponds to Ol AR , a "future" value of O R . This value is applied to delay element 142 to give O R , which is then applied to delay element 144 to give O2 AR . Likewise, the output of subtracter 150 corresponding to O^ L , is applied to delay element 152 to give O L which is then applied to delay element 154 to give Ol AL . To "equalize" the latency, delay element 148 is necessary to delay the output of subtracter 146. This value corresponds to V. All these values are passed to the selection logic 156. The selection logic 156 which receives the α x and O y constants as well as the threshold value compares the calculated difference values to determine if any two or all three calculated values are within the threshold. In the cases where clearly one calculated difference value is the smallest, where the calculated difference value associated with the vertical inteφolation direction and the calculated difference value associated with only one oblique inteφolation direction are both within the threshold or where all three calculated difference values are within the threshold, the selection logic 156 outputs the selected inteφolation direction to the β calculator 108 as well as to the oblique upsampler 106. In the case where the calculated difference values associated with the two oblique directions are within the threshold, the values Ol AR and Ol AL and possibly O2 AR and O2 AL are used to determine which inteφolation direction to output to the β calculator 108 and to the oblique upsampler 106. The source pixels shown in Figure 10 correspond to the source pixels used in inteφolating in the bottom-right quadrant. These source pixels represent the "future" value of the differences. The β calculator 108 is best seen in Figure 1 1 and includes a multiplexer 160 which receives the α y and -ot y constants as well as the inteφolation direction output by the selection logic 156. The multiplexer output is supplied to an adder 162 which also receives the α x constant. The output of the adder 162 constitutes the β constant output of the β calculator 108. Figure 12 best illustrates the oblique upsampler 106 and as can be seen it comprises three linear inteφolators 106a, 106b and 106c, although in principle higher order inteφolations could be used. Each linear inteφolator includes two adders and a multiplier. Two linear inteφolators are used for directional inteφolation and one for horizontal inteφolation. The oblique upsampler also includes four multiplexers 165 to 168, which receive the sign of the β constant and four multiplexers 170 to 176, each of which receives the inteφolation direction from the selection logic 156. Multiplexers 165 and 166 provide output to multiplexer 170 and multiplexers 167 and 168 provide output to multiplexer 172. The source pixels input to multiplexers 165 to 168 and multiplexers 174 to 176 illustrate the case for inteφolating the bottom right quadrant. Multiplexers 170 and 172 provide output to linear inteφolator 106a. Linear inteφolator 106a includes an adder 178 receiving input from multiplexers 170 and 172 which supplies input to a multiplier 180. The multiplier 180 which receives the α y constant provides input to another adder 182 which also receives input from multiplexer 172. Similarly, multiplexers 174 and 176 provide output to linear inteφolator 106b. Linear inteφolator 106b includes an adder 184 receiving input from multiplexers 174 and 176 which supplies input to a multiplier 186. The multiplier 186 which receives the α y constant provides input to another adder 188 which also receives input from multiplexer 176. The output of the two linear inteφolators 106a and 106b respectively are supplied to linear inteφolator 106c. Linear inteφolator 106c includes an adder 190 receiving input from the adders 182 and 188 which supplies input to multiplier 192. The multiplier 192 receives the β constant from the β calculator 108 and supplies input to adder 194. Adder 194 also receives the output of adder 188 and generates as its output the value of the upsampled target pixel w. The input pixels and shifting of the multiplexers 174 and 176 are controlled so that the output of adder 188 represents intermediate pixel v, (i.e. the intermediate pixel closest to the reference pixel P R ). The input pixels and shifting of the multiplexers 165 to 168, 170 and 172 are controlled so that the output of adder 182 represents either intermediate pixel v 0 or intermediate pixel v 2 depending upon the position of the upsampled target pixel w on the intermediate line segment. The designators V, O R and O L input to multiplexers 170 to 176 in Figure 12 refer to the source pixels that are used to inteφolate in the vertical, oblique right and oblique left directions respectively. The linear inteφolator 106c constituted by adders 190 and 194 and multiplier 192 performs the calculation representing the non-orthogonal horizontal inteφolation between the intermediate pixels. The following chart sets out the directional inteφolations performed by the oblique upsampler 106 for all values of α x and ot y in order to generate the intermediate pixels v. The value of β for each inteφolation direction is also included. As one of skill in the art will appreciate, once the intermediate pixels v and the value of β are known, the upsampled target pixel w can be generated by horizontal inteφolation using one of the following equations: w = v, + (v 2 - v, ) β; β ≥O (20) w = v, + (v 0 - v, ) (-β); β<0 (21) Referring now to Figures 13 to 28, another embodiment of a method for generating upsampled target pixels using seven possible inteφolation directions and a four-point inteφolator will now be described. Similar to the previous embodiment, the input source data is examined to determine the closest source pixel to the upsampled target pixel w and that source pixel is used as a reference pixel P R . Source pixels from the two source lines above the upsampled target pixel, and the two source lines below the upsampled target pixel are determined (see block 210 m Figure 23a) and selected pixels of these source lines are compared to determine the inteφolation direction to be selected when generating the upsampled target pixel The source pixels are used to calculate difference values for six possible oblique directions (block 212) The calculations vary depending upon the quadrant of inteφolation and are shown in the following chart: The inteφolation directions O^,, O^, O URR , O^ L , O UUR , O UUL , and V are illustrated in Figure 13 for the top-left quadrant. No difference values are calculated for the vertical direction V shown. The calculations yield a set of difference values associated with each oblique inteφolation direction. The set of difference values to the right of the reference pixel under consideration and the set of difference values to the left of the reference pixel are also used. The three sets of difference values are summed for each oblique inteφolation direction yielding a "working" set of difference values. The difference values of this working set are compared with each other to determine the smallest differences within a threshold (blocks 214 and 216). If the smallest differences are sufficiently small to indicate low-frequency edges then they yield a set of possible inteφolation directions. The possible inteφolation directions are then examined to see if a "boundary crossing" situation occurs (blocks 218 and 220). Figure 14 demonstrates this situation. Here the up-left-left direction representing a white line joining pixels UQ O and U.,. 2 is being considered, however there is a dark grey "boundary" joining pixels U 0 ., and TJ.,.,. Selecting the up-left-left direction would cross the boundary, and therefore the up-left-left direction can not be considered. This situation is detected by examining differences B, and B 2 . The possible inteφolation directions are then examined and a single inteφolation direction is selected (block 222). Block 222 is expanded in Figure 23b. If only one oblique inteφolation direction is possible then that direction is chosen (blocks 230 and 232). If no low-frequency edges are detected then the vertical inteφolation direction is chosen as default (blocks 238 and 240). If both a leftward and a rightward oblique inteφolation direction are possible, then the vertical direction is again chosen as default (blocks 248 and 250). Otherwise only either rightward or leftward oblique inteφolation directions are under consideration. If only one of the "extreme" directions (either 26.6° or 63.4° obliques) and the 45° oblique direction are possible then that extreme direction is chosen (blocks 252 and 254). Otherwise both extremes are possible and the "middle" direction (the 45 ° oblique) is chosen (block 256). Once the inteφolation direction is chosen, the pixels required for the directional inteφolation must be determined (block 224). The source data is then directionally inteφolated to generate the intermediate pixels (block 226). Finally the intermediate pixels are inteφolated horizontally to generate the desired upsampled target pixel w (block 228). The location of the upsampled target pixel w, is defined by its distances from the reference pixel P R both in the x and y directions. These distances are represented by the terms α x and α y where: -0.5<α x ≤0.5; and -0.5<α y ≤0.5; α x being positive to the right and α y being positive downward. In this embodiment, a four-point "filter" inteφolator is used. Inteφolated upsampled target pixels w are calculated as a function of four source pixels, S 0 , S,, S 2 and S 3 , and a parameter α representing the distance of the desired pixel from S,: w = /(S 0 , S„ S 2 , S 3 , α) This function may be a four-tap filter with coefficients read from a ROM indexed by parameter α. Figure 15 shows the case when the vertical inteφolation direction V is selected. The target pixel w is positioned in the "Top-Left" quadrant with α x and α both negative. The intermediate horizontal line segment represented by the values v„ is determined by vertical four-point inteφolation as follows: v 0 = /(U,. 2 , U 0 . 2 , U.,. 2 , U. 2 . 2 , -α y ) v, = /(U,.,, Uo.,, U.,.,, . 2 .,, -α y ) v 2 = /(U, 0 , U 00 , U.,o, U. 20 , -α y ) v 3 = /(U n , U 0 „ U. I I , U. 2 „ -α y ) v 4 = /(U I2 , U 02 , U., 2 , U. 22 , -α y ) After the five intermediate pixels are calculated, inteφolations are performed on these pixels to calculate the value of the desired upsampled target pixel. The distance β, representing the horizontal distance from the target pixel w to the middle intermediate pixel, v 2 must first be calculated. The calculation of β for the other three quadrants is also shown in Figure 15. In the vertical direction case, β is simply equal to α x for all quadrants. In the case of Figure 15, upsampled target pixel w is in the Top-Left quadrant and β is negative. Thus, the upsampled target pixel is represented by: = /(v 3 , v 2 , v„ v 0 , -β) In the other quadrants around the reference pixel P R , the upsampled target pixel w can be similarly calculated. When the oblique up-right direction O^ is selected, the intermediate pixels are inteφolated along positively sloped 45 ° diagonals. Figure 16 shows the up-right case. The target pixel w, is positioned in the Top-Right quadrant with α x positive and α y negative. Using four-point inteφolation along the indicated diagonals yields: v 0 = /(U,. 3 , U 0 . 2 , U.,.„ U. 20 , -α y ) v 1 - /(U,. 2 , U 0 .„ U., 0 , U. 21 , -α y ) v 2 = /(U,.„ U 00 , U.„, U. a, -a,) v 3 = /(U, 0 , U 01 , U .12 , U .23 , -α y ) v 4 = /(U,,, U 02 , U. 13 , U .24 , -α y ) After the five intermediate pixels have been computed non-orthogonal, horizontal inteφolation is performed to determine the upsampled target pixel w. Since the inteφolation is on a 45 ° angle, the horizontal distance from the reference pixel P R to intermediate pixel v, is simply the vertical distance, namely, -α y . Thus, β is simply α x + α y . In the present case, β is positive so the upsampled target pixel is represented by: = /(v„ v 2 ,v 3 , v 4 , β) For other quadrants, a similar method may be used to determine the upsampled target pixel. The intermediate pixels used and β vary from quadrant to quadrant. Figure 16 also demonstrates the calculation of β for each quadrant. These results are summarized in Table A below. Inteφolating in the oblique up-left direction O^ is very similar to the up-right direction. Intermediate pixels are inteφolated along negatively sloped 45 ° diagonals. In Figure 17, the upsampled target pixel w is in the Bottom-Right quadrant with both α x and α y positive. Using four-point inteφolation along the diagonals: Vo = /(U.,. 3 , Uo. 2 , U M , U 2 o, α y ) v I =/(U.,. 2 , U 0.1 , U, 0 , U 21 , α y ) V 2 = /(U. M , U 0 o, U 11 , U 22 , O y ) V 3 = /(Uιo > Uo„ U, 2 , U 23 , α y ) v 4 = /(U . ,„ U 02 , U 13 , U 24 , α y ) The upsampled target pixel is computed by performing non- orthogonal, horizontal inteφolation on the intermediate pixels. Again, since the inteφolation is along a 45 ° diagonal, the horizontal distances to the intermediate pixels are equal to the vertical distances. For the Bottom-Right quadrant, β = α x - α y . With β positive, the upsampled target pixel is represented by: w = /(v„ v 2 ,v 3 , v 4 , β) Again a similar method applies for the other quadrants with β varying from quadrant to quadrant. Figure 17 demonstrates the calculation of β for the other quadrants with the results in Table A. When the oblique up-right-right (O URR ) or up-left-left (O^) inteφolation directions are selected, inteφolation is along the 26.6° diagonals. The source pixels/diagonals used for four-point inteφolation are shown for both the up¬ right-right and up-left-left directions in Figure 18. Figure 19 shows some of the source pixels used in up-right-right O υRR inteφolation for an upsampled target pixel w in the Bottom-Left quadrant, with α x negative and α y positive. Using four-point inteφolation along the positively sloped 26.6° diagonals: v 0 = /(U .10 ,U 0 . 2 ,U ,U 2 ^,α y ) v, =/(U.,„U 0 .„U,. 3 ,U 2 . 5 ,α y ) v 2 = /(U -12 ,U 00 ,U 1 . 2 ,U 2 ^α y ) v 3 = /(U., 3 ,U 01 ,U 1 . 1 ,U 2 . 3 ,α y ) v 4 = /(U , 4 , U 02 , U, 0 , U 2 . 2 α y ) The upsampled target pixel is calculated by horizontal inteφolation. Since inteφolation is along the 26.6° diagonals, horizontal distances to the intermediate pixels are twice the vertical distance. For the Bottom-Left quadrant β = 2α y - (-α x ) = α x + 2α y . With β positive, the upsampled target pixel is represented by: w = /(v„v 2 ,v 3 ,v 4 ,β) Similarly for other quadrants. Figure 19 shows the calculation of β for other quadrants as summarized in Table A. When the up-left-left inteφolation direction 0,^ is selected for inteφolation, intermediate pixels are inteφolated along negatively sloped 26.6° diagonals. Some of the source pixels used are shown in Figure 20 for the Top-Left quadrant with both α x and α negative. Using four-point inteφolation: v 0 = /(U 10 , UQ. 2 , U. M , U. 2 . 6 , -α y ) v, =/(U,„U 0 .„U. l . 3 ,U. 2 . 5 ,-α y ) v 2 = /(U l2 , U 00 , U.,. 2 , U^, -α y ) v 3 = /(U 13 ,U 01 ,U. 1 .„U. 2 . 3 ,-α y ) v 4 = /(U, 4 ,U 02 ,U., 0 ,U 2 . 2 ,-α y ) Again since inteφolation is along 26.6° diagonals, the horizontal distance to the intermediate pixels is equal to twice the vertical. For the Top-Left quadrant β = -2α y - (-α x ) = α x - 2α y . With β positive, the upsampled target pixel is represented by: w = /(v„v 2 ,v 3 ,v 4 , β) A similar method applies for the other quadrant with varying β. Figure 20 demonstrates the calculation of β for other quadrants. The results are summarized in Table A. When either the oblique up-up-right (O^) or up-up-left (O^) inteφolation directions are selected, the directional inteφolation involves inteφolating across more source lines than in the previous cases. To avoid requiring too many source lines, linear inteφolation is used for directional inteφolation for the up-up-right and up-up-left directions. Figure 21 illustrates the inteφolations required for the up-up-right, O UU ' inteφolation direction. The upsampled target pixel w, is in the Bottom-Right quadrant with both α x and α y positive. Inteφolation is along positively sloped, 63.4° diagonals. There are two types of these offsetting diagonals, namely the "inside" and "outside" diagonals as represented by the lines U,.,U., 0 and U 00 U 2 respectively. The linear upsampling parameter for the outside diagonal is given by the vertical distance α y from the intermediate pixel to the source pixel. Since inteφolation skips a source line, the linear upsampling parameter is halved, i.e. o. y /2. Similarly for the inside diagonal, the parameter is (l-α y )/2. Using linear inteφolation, the intermediate pixels are calculated as follows: v 0 = (l-0.5(l-α y ))U,., + 0.5(l-α y )U., 0 v, = (1- 0.5α y )Uoo + 0.5α y U 2 ., V 2 = (l-0.5(l-α y ))U, 0 + 0.5(l-α y )U n v 3 = (l- 0.5α y )U 01 + 0.5α y U 20 v 4 = (l-0.5(l-α y ))U n + 0.5(l-α y )U. 12 The upsampled target pixel is calculated by non-orthogonal horizontal inteφolation. Four-point inteφolation is still used horizontally. Since inteφolation is along the 63.4° diagonals, horizontal distances to the intermediate pixels are half the vertical distance. Additionally, since the spacing between intermediate pixels is half the spacing for the previous inteφolation directions, β is twice the distance from the centre intermediate pixel to the target pixel. For the Bottom-Right quadrant 0.5 = α x -0.5β + 0.5α y . So β = -1 + 2α x + α y . With β negative, the upsampled target pixel is represented by: w = /(v 3 , v 2 ,v„ v 0 , -β) Similarly for other quadrants. Figure 21 shows the calculation of β for other quadrants as summarized in Table A. For the oblique up-up-left O^, inteφolation direction shown in Figure 22 the upsampled target pixel w, is in the Top-Right quadrant with α x positive and α y negative. Inteφolation is along the negatively sloped 63.4° diagonals. The linear upsampling parameter for the inside diagonal is (1 + α y )/2 and the parameter for the outside diagonals is -α. y /2. Once again using linear inteφolation: v 0 = (l-0.5(l+α y ))U ,. 1 + 0.5(l+α y )U 10 v, = (l-0.5(-α y ))U 00 + 0.5(-α y )U_ 2 .- v 2 = (l-0.5(l+α y ))U. 10 + 0.5(l+α y )U„ v 3 = (l-0.5(-α y ))U 01 + 0.5(-α y )U. 20 v 4 = (l-0.5(l+α y ))U.„ + 0.5(1 +α y )U 12 Four-point horizontal inteφolation is performed on the intermediate pixels. Once again the horizontal distances to the intermediate pixels are half the vertical distances, and β is twice the distance from the centre intermediate pixel to the target pixel. For the case of the upsampled target pixel w being in the Top-Right quadrant, β = 2(α x + (-0.5α y ) - 1 ) = -1 + 2α x - α y . Since β is positive, the upsampled target pixel is represented by: w = /(v„ v 2 ,v 3 , v 4 , β) A similar method applies for the other quadrants. Figure 22 shows the calculation of β for other quadrants as summarized in Table A. Figure 24 shows a basic source data inteφolation apparatus 300 for performing the above method. As can be seen, apparatus 300 is the same as the apparatus used in the first embodiment. The same block diagram applies to the second embodiment just described. Source data D ιn is passed through a delay circuit 302 which extracts the necessary source pixels required for inteφolation. These source pixels are used by the decision circuit 304 to select an inteφolation direction. The selected interpolation direction is passed to the β calculator 308 to determine the value of β. The source pixels, inteφolation direction, and β are all passed to the oblique upsampler 306 for directional inteφolation to generate the upsampled target pixel w. Figure 25 better illustrates the delay circuit 302 of the present embodiment. It includes three line stores 344, 370, and 396 which give access to four consecutive source lines and forty-eight delay elements 320 to 342, 346 to 368, 372 to 394, and 398 to 420 which in turn give access to thirteen adjacent source pixels on each of the four source lines. The delay circuit extracts the 13x4 source matrix needed for interpolation. When inteφolating in the upper quadrants, the pixels extracted correspond to the source pixels labelled. The decision circuit 304 is better illustrated in Figure 26. Input source pixels are fed to six subtractors 446, 452, 458, 464, 470, and 476. Each subtractor calculates a difference value corresponding to one of the six possible oblique directions. Two delay elements for each difference value 448, 450, 454, 456, 460, 462, 466, 468, 472, 474, 478, and 480 provide access to three consecutive difference values for each direction. These difference values are passed to a selection means 482 which selects either one of the six possible oblique inteφolation directions or the vertical inteφolation direction. The source pixels labelled correspond to inteφolation in the top-left quadrant. The β calculator shown in Figure 27 comprises a three input adder 508. The adder inputs are the outputs of three multiplexers 502, 504, and 506. The output of multiplexer 502 is 0, 1, or -1 depending on the output of decoder 500 which takes the inteφolation direction selected and the quadrant of the upsampled target pixel. Multiplexer 504 outputs either α x or 2α x depending on the inteφolation direction selected. Finally multiplexer 506 outputs either α y , -α y , 2α y , or -2α y depending also on the inteφolation direction. The output of adder 508 is β. The oblique upsampler 306 is best illustrated in Figure 28. It comprises three main parts; namely an input decoder 532, a directional inteφolator 306a and a horizontal inteφolator 306b. The input source pixels are decoded in the input decoder 532 according to the quadrant in which the upsampled target pixel is located and the inteφolation direction. The required source pixels are sent to the directional inteφolator 306a which performs four 4-point inteφolations to generate four intermediate pixels. The 4-point directional inteφolation is performed by four 4- tap filters 534, 536, 538, and 540 whose coefficients are supplied from a ROM, 530, addressed by |α y |. The four intermediate pixels are passed to the 4-point horizontal inteφolator 306b to calculate the upsampled target pixel w. The horizontal inteφolator 306b is composed of a 4-tap filter 544 and a ROM, 542, addressed by β. Table A below outlines the directional inteφolations performed to generate the intermediate pixels for each of the seven inteφolation directions. The Table also includes the formula for calculating β for the various directions and quadrants. TABLE A Up-Up-Left Top-Left Vo = Uo.,+ (U. 2 . 2 -Uo.,X-0.50 y ) 2α γ -α„ α x <0, α y <0 v 1 =U.,. 1 +(U 10 -U. l . I χθ.5+0.5α y ) O UUL v 2 = Uoo + (U. 2 . 1 -U 00 )(-0.5ot y ) v 3 = U . , 0 + (U„-U. I oX0.5+0.5α y ) v 4 = U 0 ,+(U. 20 -U 0 ,)(-0.5α y ) Top-Right v 0 = U.,. I +(U, 0 -U. M χθ.5+0.5α y ) ■ l+2α x ot x ≥0, α y <0 v I =U 00 + (U J . 1 -U 00 X-0.5θ y ) ot„ V 2 = U. 1 o + (U I1 -U., 0 )(0.5+0.5ct y ) V 3 = U 0 ,+(U. 2 o-U 0 ,X-0.5α y ) V 4 = U.„+(U, 2 -U.„)(0.5+0.5cc y ) Bottom-Left v 0 = U,.,+ (U.,. 2 -U,.,X0.5-0.5ot y ) ct x <0, α y ≥0 v, = U 0 . I + (U 20 -U ( ,,χθ.5α y ) l+2α x - V 2 = U, 0 + (U.,,-U, 0 )(0.5-0.5α y ) ot„ v 3 = U o0 + (U 2l -U O0 )(0.5α y ) v 4 = U I .,+(U. 10 -U )(0.5-0.5θ y ) Bottom-Right v 0 = U 0 ., + (U 20 Uo,,)(0.5α y ) α x _:0, ot ≥O v,=U l0 + (U I,- . l -U 10 )(0.5-0.5ct y ) v 2 = UQO + (U 2 Uoo)(0.5ot y ) 2α x -α y v 3 = U, . , + (U, 0 - U,.,)(0.5-0.5α y ) v 4 = U 01 + (U 22 U 0 ,)(0.5α y ) As mentioned previously, once the intermediate pixels are generated four-point horizontal inteφolation is performed on the intermediate pixels to generate the desired upsampled target pixel w. w = /(v„ v 2 , v 3 , v 4 , β) β≥O w = f(v 3 , v 2 , v„ v 0 , -β) β<0 The present methods and apparatuses allow upsampled target pixels to be generated so that when an image of the source data is to be enlarged and recreated, the resolution of the enlarged image is high and stairstepping is minimized. As should be apparent to those of skill in the art, various modifications may be made to the present invention without departing from its scope as defined by the appended claims. For example, although two embodiments of the invention have been described herein, it should be apparent that other embodiments are possible and that the number of oblique directions in each set can be chosen arbitrarily.

Claims: WHAT IS CLAIMED IS: 1. A method of generating an upsampled target pixel from input source data comprising the steps of: (i) comparing pixels of different lines of said source data in a region surrounding an upsampled target pixel to be generated in at least two different directions; (ii) selecting an inteφolation direction based on the comparisons of step 0); (iii) inteφolating between selected pixels of different lines of said source data in the inteφolation direction determined at step (ii) and computing intermediate pixels on a line segment passing through said upsampled target pixel; and (iv) inteφolating between the intermediate pixels to generate said upsampled target pixel. 2. The method of claim 1 wherein said line segment is parallel to the lines of said source data. 3. The method of claim 2 wherein at step (i), pixels of different lines of said source data are compared in at least three different directions. 4. The method of claim 3 wherein at step (i) pixels of different lines of said source data are compared in only three different directions, said three different directions including a vertical direction, and opposite oblique directions forming an angle with said vertical direction, said angle being in the range 0<angle<90°, the pixels of said source data being compared in each of said oblique directions being located on opposite sides of said upsampled target pixel. 5. The method of claim 4 wherein during the comparisons of step (i), difference values between the compared pixels are generated, the difference values being used at step (ii) to select the inteφolation direction. 6. The method of claim 5 wherein prior to step (ii), the difference values resulting from the comparisons in said three directions are compared to determine whether the differences therebetween are within a threshold, the inteφolation direction associated with the smallest difference value being selected when none of the differences are within the threshold, the selection of said inteφolation direction at step (ii) being influenced when the difference between at least two difference values is within the threshold. 7. The method of claim 6 wherein at step (ii), when the differences between the difference values resulting from the comparisons in all three directions are within said threshold, the vertical inteφolation direction is selected at step (ii). 8. The method of claim 7 wherein when the difference between the difference values resulting from the comparisons in the vertical direction and only one of the oblique directions is within the threshold, that oblique inteφolation direction is selected at step (ii). 9. The method of claim 8 wherein when the difference between the difference values resulting from the comparisons in the two oblique directions is within the threshold, additional pixels of the different lines of source data are compared in the opposite oblique directions, the pixels of said source data being compared in each of said oblique directions being located on opposite sides of said upsampled target pixel, the difference values generated as a result of these comparisons being compared to influence the selection of said inteφolation direction at step (ii). 10. The method of claim 9 wherein when the difference between the difference values resulting from the comparisons of the additional pixels is within the threshold, the vertical inteφolation direction is selected at step (ii). 1 1. The method of claim 4 wherein during step (i), the pixels of the different lines of source data are examined to determine the closest pixel to said upsampled target pixel and wherein said region is defined by consecutive pixels in two lines of source data that form the corners of a rectangular region surrounding said upsampled target pixel, one of the pixels of which is said closest pixel, said oblique directions forming a 45° angle with said vertical direction and constituting diagonals of said rectangular region . 12. The method of claim 1 1 wherein during the comparisons of step (i), difference values between the compared pixels are generated, the difference values being used at step (ii) to select the inteφolation direction. 13. The method of claim 12 wherein prior to step (ii), the difference values resulting from the comparisons in said three directions are compared to determine whether the differences therebetween are within a threshold, the inteφolation direction associated with the smallest difference value being selected when none of the differences are within the threshold, the selection of said inteφolation direction at step (ii) being influenced when the difference between at least two difference values is within the threshold. 14. The method of claim 13 wherein at step (ii), when the differences between the difference values resulting from the comparisons in all three inteφolation directions are within said threshold, the vertical inteφolation direction is selected at step (ii). 15. The method of claim 14 wherein when the difference between the difference values resulting from the comparisons in the vertical direction and only one of the oblique directions is within the threshold, that oblique inteφolation direction is selected at step (ii). 16. The method of claim 15 wherein when the difference between the difference values resulting from the comparisons in the two oblique directions is within the threshold, additional pixels of the different lines of source data are compared in the opposite oblique directions, the difference values generated as a result of these comparisons being compared to influence the selection of said inteφolation direction at step (ii). 17. The method of claim 16 wherein the difference between the difference values resulting from the comparisons of the additional pixels is within the threshold, the vertical inteφolation direction is selected at step (ii). 18. The method of claim 3 wherein at step (i), pixels of different lines of said source data are compared in at least seven different directions. 19. The method of claim 18 wherein at step (i) pixels of said source data are compared in only seven different directions, said seven different directions including a vertical direction and two sets of opposite oblique directions forming an angle with said vertical direction, said angle being in the range of 0<angle<90°, each set of opposite oblique directions including three oblique directions, each forming a different angle with said vertical direction, the pixels of the source data being compared in each set of oblique directions, being located on opposite sides of said upsampled target pixel. 20. The method of claim 19 wherein one of the oblique directions in each set forms a 26.6° angle with the vertical direction, another of the oblique direction in each set forms a 63.4° angle with the vertical direction and another of the oblique directions in each set forms a 45 ° angle with said vertical direction. 21. The method of claim 20 wherein during the comparisons of step (i), difference values between the compared pixels are generated, the difference values being used at step (ii) to select the inteφolation direction. 22. The method of claim 21 wherein the difference values generated during comparisons in said oblique directions in each set are summed to yield a working difference value, the working difference values and the difference value associated with said vertical direction being compared to determine whether the differences therebetween are within a threshold, the inteφolation directions associated with the difference values within the threshold yielding a set of possible inteφolation directions, the inteφolation directions in said set being initially examined to eliminate inteφolation directions which inteφolate between pixels in a direction that cross a boundary, the remaining inteφolation directions being compared further at step (ii) to select said inteφolation direction. 23. The method of claim 22 wherein after inteφolation directions which cross a boundary have been eliminated, at step (ii) if only one oblique inteφolation direction remains in said set then that inteφolation direction is selected, if opposite oblique inteφolation directions remain in said set then said vertical inteφolation is selected and if more than one oblique inteφolation direction in the same direction exists in the set then the 45 ° oblique inteφolation direction is selected. 24. The method of claim 23 wherein at step (iii) inteφolations between selected pixels on four different lines of said source data are made in the selected inteφolation direction to yield five intermediate pixels. 25. An apparatus for generating an upsampled target pixel from input source data comprising: comparison means for comparing pixels of different lines of said source data in a region surrounding an upsampled target pixel, in at least two different directions; selection means for selecting an inteφolation direction in response to said comparison means; and upsampling means for inteφolating between selected pixels of different lines of said source data in the inteφolation direction selected by said selection means to compute intermediate pixels on a line segment passing through said upsampled target pixel and for inteφolating between the intermediate pixels to generate said upsampled target pixel. 26. An apparatus as defined in claim 25 wherein said upsampling means computes pixels on a line segment parallel to the lines of said source data. 27. An apparatus as defined in claim 26 wherein said comparison means compares pixels of different lines of said source data in at least three different directions. 28. An apparatus as defined in claim 27 wherein said comparison means compares the pixels of different lines of said source data in a vertical direction and in opposite oblique directions forming an angle with said vertical direction, said angle being in the range 0<angle<90°. 29. An apparatus as defined in claim 28 wherein said comparison means generates a difference value for each of said three comparisons and wherein said selection means compares the difference values with one another to determine whether the differences therebetween are within a threshold, said selection means selecting the inteφolation direction associated with the smallest difference value when none of the differences are within the threshold. 30. An apparatus as defined in claim 29 wherein said selection means selects the vertical inteφolation direction when the differences between the all of the difference values are within said threshold. 31. An apparatus as defined in claim 30 wherein when the difference between the difference values in the vertical direction and only one of the oblique directions is within the threshold, the selection means selects that oblique inteφolation. 32. An apparatus as defined in claim 31 wherein when the difference between the difference values in the two oblique directions is within the threshold, additional pixels of the different lines of source data are compared in the opposite oblique directions by the comparison means, the difference values generated as a result of these comparisons being compared by said selection means, when the difference between the difference values generated by the selection means as a result of the comparison of the additional pixels is within the threshold, the vertical inteφolation direction is selected by said selection means. 33. An apparatus as defined in claim 29 further comprising means to determine the closest pixel of said source data to said upsampled target pixel and the consecutive pixels in two lines of said source data that form the comers of a rectangular region surrounding said upsampled target pixel, one of the pixels of which is said closest pixel, said comparison means being responsive to said determination means and comparing between the pixels that define said rectangular region. 34. An apparatus as defined in claim 27 wherein said comparison means compares pixels of different lines of said source data in at least seven different directions. 35. An apparatus as defined in claim 34 wherein said comparison means compares pixels of different lines of said source data in seven different directions, said seven different directions including a vertical direction and two sets of opposite oblique directions forming angles with said vertical direction, each set of opposite oblique directions including three oblique directions, each of said three oblique directions forming a different angle with said vertical direction, the compared pixels in each set of three oblique directions being located on opposite sides of said upsampled target pixel. 36. An apparatus as defined in claim 35 wherein said comparison means compares pixels in oblique directions forming 26.6°, 45° and 63.4° angles with said vertical direction. 37. An apparatus as defined in claim 25 wherein said upsampling means includes a directional inteφolator for computing said intermediate pixels and a second inteφolator for computing said upsampled target pixel. 38. An apparatus as defined in claim 37 wherein each of said linear inteφolators includes a pair of adders and a multiplier. 39. An apparatus as defined in claim 35 wherein said comparison means includes a plurality of substractors, each substractor being associated with one of said oblique directions. 40. An apparatus as defined in claim 37 wherein said upsampling means includes a pair of linear inteφolators for computing said intermediate pixels and a third linear inteφolation for computing said upsampled target pixel. 41. An apparatus as defined in claim 40 wherein said directional inteφolator includes a plurality of polyphase filters, each of said polyphase filters receiving coefficients from a memory. 42. An apparatus as defined in claim 41 wherein said second inteφolator includes a polyphase filter receiving coefficients from a second memory. 43. An apparatus as defined in claim 36 wherein said comparison means generates a difference value for each of said seven comparisons, the difference values for said oblique directions in each set being summed to yield a working difference value. 44. An apparatus as defined in claim 43 wherein said selection means compares the working difference values and the difference value associated with the vertical direction with one another to determine whether the differences therebetween are within a threshold, said selection means selecting a set of possible inteφolation directions associated with the smallest difference value when none of the differences are within the threshold, the inteφolation directions in said set being initially examined to eliminate inteφolation directions which inteφolate between pixels in a direction that crosses a boundary. 45. An apparatus as defined in claim 44 wherein said selection means selects the vertical inteφolation direction when opposite oblique inteφolation directions remain in the set of possible inteφolation directions. 46. An apparatus as defined in claim 45 wherein if only one oblique inteφolation direction remains in the set of possible inteφolation directions, the selection means selects that oblique inteφolation direction.

Inventors: GREGGAIN LANCE, NGO CALVIN, GREGGAIN, LANCE, NGO, CALVIN
Applicants: GENESIS MICROCHIP INC, GREGGAIN LANCE, NGO CALVIN, GENESIS MICROCHIP INC., GREGGAIN, LANCE, NGO, CALVIN
Application year: 1996
Main classification: H04N5
IPC codes: G06T3, H04N1, H04N5, H04N7