Method for predicting move compensation

Abstract: The present invention provides a method for predicting motion compensation of an input image based on a motion vector of the input image from this input image to a reference image which has been sampled at a first set time. The method includes a unit for calculating a motion vector of the input image based on motion at a second set time, of a block unit which is a part of the input image and consists of a plurality of pixels, and a unit for calculating a motion vector of the reference image based on motion at the first set time, of a block unit which is a part of the reference image and consists also of a plurality of pixels. Motion compensation of the input image is calculated both from the motion vector of the input image and from the motion vector of the reference image.

Description: BACKGROUND OF THE INVENTION FIELD OF THE INVENTION The present invention relates to a method for motion compensated prediction of a moving image to be utilized in an apparatus which requires a prediction of a moving image such as an image transmission and an image compression. DESCRIPTION OF THE PRIOR ART With the progress of the semiconductor technologies, methods for motion compensated prediction to be utilized for a transmission of an image and a compression of an image have been widely used in many fields in the recent years. Among such,conventional methods for compensating a move of a moving image, there is one method for compensating a motion of a moving image based on one piece of reference image. Fig. 6 is a diagram for showing the concept of the conventional method for compensating a motion of an image. Referring to Fig. 6, a moving image signal is a set of image which are sampled with an equal time interval tO on the time axis. For example, an NTSC signal has images sampled at every 1/60 second for each field and a PAL signal has images sampled at every 1/50 second for each field. When a certain object of which images are to be picked up is moving, for example, the spatial position of an object A in an M-th image has deviated from the spatial position of an object A' in an (M-1)-th image by a portion of a motion of the object during a period of tO. Now, consider a case for predicting the M-th image from the (M-1)-th image. In order to make a prediction of the M-th image with a high level of precision by compensating a motion of the object from an input image to a reference image during a time difference of tO, the M-th image is divided into blocks including at least one pixel, and a motion of each block from the (M-1)-th image to the M-th image is detected so that a pixel value of the image at a position deviated by the portion of this motion is set as a predicted value. This will be explained with reference to Fig. 6. To obtain a predicted value of a pixel X of the M-th image, a pixel X' at the same spatial position as the spatial position of the pixel X in the (M-1)-th image is deviated by a detected motion MV of a block unit including the pixel X', so that a pixel X" is obtained. This pixel X" is then used as a predicted value of the pixel X. In Fig. 6, the block is assumed to have a size of 3 × 3. When a signal is an interlace signal, there are many alternative cases considered for motion compensated prediction of an image. For example, either a frame or a field is used for the image, and a frame is used for a reference image and a field is used for an input image, etc. The basic principle is as explained with reference to Fig. 6 above. As one of the examples of the above method for motion compensated prediction there is Recommendation 723, "Transmission of component-coded digital television signals for contribution-quality at the third hierarchical level of CCITT Recommendation G.702" which was standardized by the CMTT (Commission Mixte CCIR/CCITT pour les Transmissions Televisuelles et Sonores 3). In this recommendation, a motion compensated prediction between frames and a motion compensated prediction between fields are suitably changed over between the two cases. As described above, according to the conventional method for motion compensated prediction of an image, a prediction is made by compensating a move of the image based on a detected motion of the image. Therefore, the conventional predicting method can predict move compensation with a high level of precision even if an image is a moving image including a move. The above-described conventional method for motion compensated prediction, however, has problems that it is not possible to accurately predict and that, even if it is possible to make a correct motion compensated prediction, the image density of an image to be referred to becomes the image density of a reference image, which makes it impossible to make prediction at a higher level of precision. For example, in the case of motion compensated prediction by using an interlace signal as a frame and generating a block from this frame, frames are combined together to compensate a motion of an image by disregarding a difference in sampling positions, due to a time difference, between two fields within a frame. Accordingly, when correct sampling positions of the fields are considered, there is such a case that motions compensated in the first field and motions compensated in the second field do not coincide with each other. An example of this case is shown in Figs. 7A to 7C. Referring to Figs. 7A to 7C, an input signal is an interlace signal (Fig. 7A). Interlace signals are combined together in a frame for motion compensated prediction. When a vertical component of a motion detected now is 1, the first field of the M-th frame is predicted from the second field of the (M-1)-th frame and the second field of the M-th frame is predicted from the first field of the (M-1)-th frame, as shown in Fig. 7B. Motions in the correct field positions are shown in Fig. 7C. As is clear from Fig. 7C, the motions for effecting compensation in the first field of the M-th frame do not coincide with the motions for effecting compensation in the second field of the M-th frame. As explained above, when motion compensated prediction of an image is made by handling an interlace image as a frame, the motions for effecting compensation are different between the first field and the second field. In a vector in which this phenomenon occurs, there is a problem that the precision level of prediction is deteriorated. Next, consider a case of motion compensated prediction of an image as an image of a correct position without disregarding a time difference of sampling between images as described above. As examples of this case, there are a case where motion compensated prediction is calculated for an interlace signal by generating a block from a field, and a case where motion compensated prediction is calculated for a noninterlace signal. In the above cases, motion compensated prediction is calculated by using an image at a position of a correct time. Therefore, there arises no such problem which occurs in the case of motion compensated prediction by generating a block from a frame of the interlace signal as described above. However, in this case, motion compensated prediction is calculated from one piece of reference image and the pixel density of an image to be referred to becomes the pixel density of the reference image, so that there is a limit to carrying out a motion compensated prediction at a higher level of precision. Fig. 8 shows a case of motion compensated prediction by generating a block from a field for an input of an interlace signal. In this case, motion compensated prediction is carried out by using a field image as a reference image. Therefore, when a motion vector is O there is no sampling point at a position necessary for making a prediction on the reference image and, accordingly, a pixel value, or a predicted value, must be calculated by an interpolation within the field, as shown in Fig. 8, for example. As compared with the case for compensating a motion by generating a block based on a pixel value within a frame, the case for compensating a motion based on the field has a pixel density in a vertical direction which is half of the pixel density in the case of compensating a motion based on a frame. Thus, there is a limit to carrying out a motion compensated prediction at a high level of precision when motion compensation is carried out based on a field. This problem also arises when motion compensation is carried out by using a non-interlace signal as an input. In both cases, the pixel density of the image to be referred to becomes the pixel density of the reference image, and there is a limit to carrying out a motion compensated prediction at a higher level of precision. It is also known from EP-A-0447068 to provide a motion data image compression system which comprises means for dividing an I'th frame, occurring between two frames F O and F N out of N frames (where N is an integer of two or more) of digital motion image data, into blocks B I formed of a plural number of pixels. The system determines a motion vector MVOI between frames F O and F I for each of the divided blocks B I , determines the block B O that uses the motion vector MVOI to predict the block B I , determines the motion vector MVNI between frames F N and F I for each block B I and determines the block B N that uses the motion vector MVNI to predict the block B I . The system also comprises means for determining motion vectors MVON and MVNO of frame F N and F O for each block B I , for determining the predictive motion vectors MVOI' and MVNI' between frames F O and F I by interpolation of the motion vectors MVON and MVNO, and for determining the blocks B O and B N that predict the block B I . The system also determines a block B ON that is the linear sum of blocks B O and B N , determines a block B DC from the average value of block B I , and selects a block out of the blocks B O , B N , B ON and B DC for which the correlation with block B I is greatest. A further known system is disclosed in US-A-4 864 394. In the document an apparatus for processing motion vectors associated with a digital television image is provided. The apparatus comprises a vector filter and a vector calculator for deriving a plurality of motion vectors representing the motion of a pixel in the image. The apparatus also comprises a circuit for testing the accuracy of each motion vector by differencing pixels shifted in dependence on the motion vector from two successive fields of the image to a common position in a field interpolated between the two fields. A vector selector selects the motion vector which produces the minimum pixel difference. SUMMARY OF THE INVENTION With a view to eliminating the above-described problems of the prior-art technique, it is an object of the present invention to provide a method for motion compensated prediction with a very high level of precision by utilizing a plurality of pieces of reference images. In accordance with the present invention there is provided a method of compensating for errors in prediction of an input image as specified in the claims. Also, the method of the present invention calculates motion compensated prediction of a plurality of pieces of input images based on a motion vector of a reference image from an original position of the reference image to a position of the reference image sampled at a first set time, and the method includes a unit for calculating motion vectors of input images by calculating motion at a second set time of block units, each block forming a part of each input image and also consisting of a plurality of pixels, and a unit for calculating a motion vector of the reference image by calculating a motion at the first set time of a block unit which is a part of the reference image and also consists of a plurality of pixels, regarding these motion vectors of the input images to be the same, to thereby calculate motion compensation of the input images at a desired set time both from the motion vectors of the input images and the motion vector of the reference image. Therefore, according to the present invention, a time position of a reference image is compensated by using a certain motion vector depending on the need so that a plurality of pieces of reference images sampled at different times according to the motion of a block unit, including at least one pixel, which is detected at a certain time interval, become images of the input image at the above time intervals from the position of the input image. Thus, it is possible to obtain a plurality of pieces of images at positions of the above-described time intervals from the position of the input image. By combining these images together, it is possible to obtain a reference image of high pixel density. Based on this reference image of high pixel density, a pixel value at a position compensated by the detected motion portion is calculated and this is used as a predicted value. Accordingly, it is possible to calculate motion compensated prediction at a very high level of precision. Further, according to the present invention, a vector for carrying out compensation of a time position of the reference image can be calculated from a motion of the image detected at a certain time interval, so that it is not necessary to detect again the motion vector for correcting the time, and motion compensated prediction at a high level of precision can be ensured. Further, by using an interlace signal as an input signal and using two fields in a certain frame for a reference image, it becomes possible to suitably apply the above method for motion compensated prediction to a frame image, thus ensuring a prediction at a high precision level of move compensation based on a frame. Further, since the same value is used for a block of each input image, of which whole or part of spatial position of each block is superposed, among blocks of a plurality of pieces of input images, as a motion detected at a certain time interval in a block unit including at least one pixel, it is not necessary to carry out motion detection by a plurality of times for many blocks of the plurality of input images, thus ensuring a motion compensated prediction at a high level of precision. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram for explaining the first embodiment of the present invention; Figs. 2A and 2B are diagrams for explaining the second embodiment of the present invention; Fig. 3 is a diagram for explaining a block for motion compensated prediction using a frame as a base; Figs. 4A and 4B are diagrams for explaining the third embodiment of the present invention; Fig. 5 is a diagram for explaining the fourth embodiment of the present invention; Fig. 6 is a conceptional diagram for showing the conventional method for motion compensated prediction; Fig. 7A to Fig. 7C are diagrams for explaining problems of the conventional method for motion compensated prediction between frames; and Fig. 8 is a diagram for explaining the conventional method for motion compensated prediction between fields. DESCRIPTION OF THE PREFERRED EMBODIMENTS Fig. 1 is a diagram for explaining a first embodiment of the present invention. Fig. 1 assumes the motion compensated prediction based on an interlace signal as an input signal so that a block is generated from an image within a field and a field image is used as a base. In this case, the input image is in the M-th field and a reference image is in both the (M-1)-th field and the (M-2)-th field. Now, assume that a motion vector (MV) for motion compensated prediction of a certain block is to be detected in a two-field instance, that is, between the M-th field and the (M-2)-th field. To simplify the explanation, of the detected motions, only the motion in the vertical direction will be considered, and a pixel value is expressed as a(x, y). In this case, x represents a field number and y represents a line number. Line numbers are placed in the order of 1, 2, ..., starting from the bottom in a line interval of the frame. A position of each pixel in a vertical direction is expressed always in the unit of a frame line. Now, consider a case for obtaining a predicted value of (M, 1). When a vertical component of a detected MV is 1, a motion compensated prediction value of a (M, 1) becomes a pixel value at a position of (M-2, 2). Next, a time position is corrected so that the position of the reference image in the (M-1)-th field becomes an image at the position of the (M-2)-th field. A vector for correcting this time position is set as MV adj. In calculating the MV adj from the MV, the following relationship can be easily drawn when it is assumed, for example, that moves from the (M-2)-th field to the M-th field are constant: MV adj = -MV/2 Therefore, when the vertical component of the MV is 1, the vertical component of the MV adj becomes -0.5. When this is applied to the positional correction for correcting the positions of the (M-1)-th field to the positions of the (M-2)-th field, a (M-1, 2) in the (M-1)-th field is corrected to the position of (M-2, 2.5) in the (M-2)-th field, as shown in Fig. 1. After the above operation, the position of (M-2, 2) which is the motion compensated prediction value of the a (M, 1) is obtained from pixel values of the (M-2)-th field and the (M-1)-th field which is the result of a time positional correction. In this case, when a necessary pixel value is to be obtained by a weighted average, which is inverse proportional to a distance, from near-by pixel values, for example, the pixel value at the position of the (M-2, 2), that is the motion compensated prediction value of the a (M, 1), is obtained by the following expression: a(M-2, 1)/3 + 2 * a(M-1*2)/3 Although the above explains a motion compensated prediction taking account of only vertical components, a similar operation is also applied to the case for motion compensated prediction for an image having both vertical and horizontal components. As described above, according to the first embodiment of the present invention, a time position of a reference image is corrected by using a motion vector as required so that a plurality of pieces of reference images sampled at different times become an image at a time which is positioned with a vertain time interval from the position of the input image, according to detected motions at the above time interval of a block unit including at least one pixel. Therefore, it is possible to obtain a plurality of pieces of images at positions which are separated from the input image by the above time intervals. A reference image with high pixel density is obtained by combining these pieces of images, and a pixel value at a position which compensates the detected motion is calculated by using the reference image of high pixel density, and the calculated pixel value is used as a predicted value. As a result, there is an effect that it is possible to carry out a motion compensated prediction of an image at a very high precision level. The assumptions used in the above description of the first embodiment are plexible and the following alternative assumptions can also be accepted. Instead of assuming two images for a reference image, any plurality of number of pieces of images can also be used. Instead of assuming the positions of the plurality of reference images as the previous image and the previous image, these positions can also be set flexible. Instead of assuming a constant motion of an image for calculating the MV adj from the MV, any assumption of a motion can also be used according to a certain rule for calculating the MV adj from the MV. Instead of using a weighted average which is inverse proportional to a distance from near-by pixel values to obtain a pixel value at a necessary position, a coefficient of a low-pass filter, for example, can also be used to obtain the pixel value at a necessary position. Instead of using an interpolation for obtaining a necessary pixel value, an extrapolation, for example, can also be used to obtain the necessary pixel value. Further, although the vector M adj for correcting positions of a plurality of pieces of reference images is calculated from a motion vector MV which is detected in a block unit in the above-described first embodiment of the present invention, the MV can also be detected independently between the (M-1)-th field and the (M-2)-th field. In this case, by an independent detection of the MV, the time correction can be effected based on a more accurate motion of the image. Thus, this method has an effect that a motion compensated prediction of an image at a higher level of precision can be ensured. Further, although an interlace signal is used as an input signal and a field image is assumed as each image in the above-described first embodiment of the present invention, a non-interlace image can also be used, with an effect that a motion compensated prediction of an image can be ensured at a higher level of precision, for the same reason as explained above. Next, a second embodiment of the present invention for motion compensated prediction of an image by using an interlace signal as an input signal and using a frame as an input, will be explained. Figs. 2A and 2B are diagrams for explaining the second embodiment of the present invention. Referring to Figs. 2A and 2B, a reference image is in two fields of the previous frame, that is, the (M-1)-th field and the (M-2)-th field, and an input image is in two fields of the current frame, that is, the M-th field and the (M+1)-th field. In Figs. 2A and 2B, it is assumed that a motion vector for motion compensated prediction of a certain block is obtained within an input image and a reference frame and between fields of the same phase as that of the M-th field, for each two fields of the current frame. The motion vector for motion compensated prediction of the M-th field is expressed as MV(M) and the motion vector for the (M+1)-th field is expressed as MV(M+1). A pixel value of each pixel position is expressed in the same manner as that of the first embodiment. To simplify the explanation of Figs. 2A and 2B, of the detected motions, only the motion in the vertical direction will be considered. In Figs. 2A and 2B, a prediction of a pixel within the M-th field is carried out by using images in the (M-1)-th field and the (M-2)-th field, in exactly the same operation as that of the first embodiment of the present invention. For example, when th vertical component of the MV(M) is 1.5, the predicted value of a(M, 1) becomes the pixel value at the position of (M-2, 2.5) according to the operation which is the same as that of the first embodiment, and this value is obtained by the following expression: a(M-2, 1)/7 + 6*a(M-1, 2)/7 Similarly, in the same manner as that of the prediction of a pixel within the M-th field, a pixel within the (M+1)-th field is predicted from the two fields of the reference frame, that is, the (M-1)-th and (M-2)-th fields. The method of prediction in this case is the same as the method for predicting a pixel within the M-th field, except that the (M-2)-th field needs to be corrected to the position of the (M-1)-th field. A vector for correcting this time position is set as MV adj (M+1). In calculating the MV adj (M+1) from the MV(M+1), when the motions from the (M-2)-th field to the (M+1)-th field, for example, are constant, the following relationship can be obtained easily: MV adj (M+1) = MV(M+1)/2 Therefore, when the vertical component of the MV(M+1) is 1, the vertical component of the MV adj (M+1) becomes 0.5. As shown in Figs. 2A and 2B, when the (M-2)-th field is positionally corrected to the position of the (M-1)-th field, the a(M-2, 3) is positionally corrected to the position of th (M-1, 2.5). After the above operation, the position of the (M-1, 3) which is a predicted value of the a(M+1, 2) is obtained from the pixel value of the (M-1)-th field and the pixel value of the (M-2)-th field of which time position has been corrected. When a necessary pixel value is to be obtained by a weighted average, inversely proportional to a distance, from near-by pixel values, for example, a predicted value at the position of the (M-1, 3), that is, a motion compensated prediction value of the a(M+1, 2), is obtained by the following expression: a(M-1, 4)/3 + 2*a(M-2, 3)/3 Although the above explains the motion compensated prediction of an image for only the vertical component, a similar operation is also applied to the case for motion compensated prediction of an image having both vertical and horizontal components. As described above, according to the second embodiment of the present invention, the above-described motion compensated prediction can be applied to a frame image, by using an interface signal as an input signal and by setting a reference image in two fields of a certain frame. As a result, there is an effect that it is possible to calculate a motion compensated prediction of an image at a high level of precision by using a frame as a base. The above-described second embodiment also has a flexibility in the assumptions used, in the same manner as that of the first embodiment. For example, the number of reference frames, the positions of the reference frames, the assumptions for obtaining the MV adj (M) or MV adj (M+1) from either the MV(M) or the MV(M+1), the calculation method for obtaining a pixel value at a necessary position, and either interpolation or extrapolation, can also be selected freely. Further, although it is assumed in the present embodiment that a motion vector for motion compensated prediction can be obtained within the input image and reference frame and between fields of the same phase as that of the input image, it is also possible to obtain the motion vector between fields of opposite phases, in the same manner of operation, with the similar effect. Further, when a position correction vector is obtained independent of a detection motion vector, in the same manner as that of the first embodiment, there is an effect that it is possible to calculate a motion compensated prediction at a higher level of precision. Next, as a third embodiment of the present invention, another method for motion compensated prediction for an interlace input signal based on a frame unit will be explained. Fig. 3 and Figs. 4A and 4B are diagrams for explaining the third embodiment of the present invention. Referring to Fig. 3, a reference image is in the (N-1)-th frame, that is, the (M-2) and (M-1) fields, and an input image is in the N-th frame, that is, the M-th and (M+1)-th fields. Now assume that a block for carrying out motion compensation is being generated from the frame. Assume that a motion vector MV is to be obtained in the block unit generated from the pixels of the N-th frame, from the (N-1)-th frame. The status of the block in this case is shown in Fig. 3. In terms of the method for motion compensated prediction based on a field, the following method can be considered. The reference image is in the two fields of the (N-1)-th frame and the input image is in the two fields of the N-th frame. The detecting interval of the MV is the two-field interval. However, the pixels included in the above block have the same motion vector MV for both the pixels in the M-th field and the pixels in the (M+1)-th field. In other words, in the case of the third embodiment, motion vectors to be used for pixels within a block generated from th above frame take the same value regardless of whether the pixels belong to the M-th field or the (M+1)-th field. The other operations become the same as those of the second embodiment. Figs. 4A and 4B show the case that the vertical component of the MV is 1. Although the above explains the case of motion compensated prediction of an image for only the vertical component, a similar operation is also carried out for the case of motion compensated prediction of an image having both vertical and horizontal components. As described above, according to the third embodiment of the present invention, the same motion vector is used for pixels in the two input fields positioned within a predetermined spacial area such as a block generated by the frame. Accordingly, it is not necessary to detect motion vectors for each field according to this method which also has an effect that it is possible to calculate a motion compensated prediction at a high level of precision. The above-described third embodiment also has a flexibily in the assumptions used, similar to the case of the second embodiment. For example, th number of reference frames, the positions of the reference frames, the assumption for obtaining the MV adj from the MV, the calculation method for obtaining a pixel value at a necessary position, and whether interpolation or extrapolation is to be used, can all be selected freely. Although description has been made of the case for predicting move compensation based on a frame as a unit in the present embodiment, it is needless to mention that there is no change in the effect of prediction if the prediction is carried out based on a field as shown in the first embodiment or if the prediction is carried out based on a noninterlace image. Further, when a block to be used for having the same value of the motion vector is selected from among blocks of a plurality of pieces of input images in such a way that the block selected is a block of each input image of which part or whole of the spatial position superposes with those of the other blocks selected, there is no change in the effect of prediction. Further, similar to the case of the second embodiment, by obtaining a position correction vector independent of a detection motion vector, there is an effect that it is possible to calculate a motion compensated prediction at a higher level of precision. Fig. 5 is a diagram for explaining a fourth embodiment of the present invention. The fourth embodiment takes the same assumptions as those of the first embodiment, and an interlace signal is used as an input signal, an input image is in the M-th field and a reference image is in both the (M-1)-th field and the (M-2)-th field. Assume in Fig. 5 that a motion vector (MV) for motion compensated prediction of a certain block is to be detected in a two-field interval, that is, between the M-th field and the (M-2)-th field. To simplify the explanation, of the detected motions, only the motion in a vertical direction will be considered, and a pixel value at each pixel position is expressed in the same manner as that of Fig. 1. Now consider the case of obtaining a predicted value of a(M, 1). When it is assumed that the vertical component of the detected MV is 3, the motion compensated prediction value of the a(M, 1) becomes the pixel value at th position of (M-2, 4). First, this pixel value is obtained from the pixel value within the (M-2)-th field. When the pixel value is to be obtained based on a weighted average, inversely proportional to a distance, from near-by pixel values, for example, th pixel value at the position of the (M-2, 4) is obtained by the following expression: a(M-2, 3)/2 + a(M-2, 5)/2 Next, based on the above MV, a move of the input image from the (M-1)-th field to the M-th field is calculated. The time difference between the M-th field and the (M-1)-th field is 1/2 of the time difference between the M-th field and the (M-2)-th field. Accordingly, this motion vector can be considered to be MV/2. Since the vertical component of the MV is now 3, the vertical component of MV/2 becomes 1.5. Accordingly, when a motion compensated prediction value of the a(M, 1) is obtained from the image in the (M-1)-th field, this becomes the pixel value at the position of (M-1, 2.5). This pixel value is obtained from a pixel value within the (M-1)-th field. When the pixel value is to be obtained by a weighted average, inversely proportional to a distance, from near-by pixel values, for example, the pixel value at the position of (M-1, 2.5) can be obtained by the following expression: 3 * a(M-1, 2)/4 + a(M-1, 4)/4 Based on the two predicted values obtained above, a mean of the two predicted values is obtained and the result is used as the predicted value of the a(M, 1). Although the above explains the case for motion compensated prediction of an image for only the vertical component, a similar operation is also carried out for the case of motion compensated prediction of an image having both vertical and horizontal components. As described above, according to the fourth embodiment of the present invention, a motion of an input image from a plurality of pieces of reference images sampled at different times according to a detected motion at certain time intervals of a block unit including at least one pixel is calculated based on the above detected motion, and a pixel value at a position which has been compensated by the calculated motion portion for each reference image is calculated, so that it is possible to obtain a plurality of motion compensated prediction values from the plurality of pieces of reference images. Since a predicted value of the input image is calculated from the plurality of predicted values, a noise can be eliminated if a noise is included in the motion compensated prediction values, thus ensuring a prediction at a high precision level. In the manner similar to the case of the first embodiment, it is also possible in the fourth embodiment to freely select the number of pieces of reference images, the positions of the reference images, the calculation method for obtaining a pixel value at a necessary position within each reference image, and either interpolation or extrapolation. For calculating predicted values from a plurality of pixel values obtained from the respective reference images, there are other alternative methods than a simple averaging method such as a weighted average method and a method for calculating by using a coefficient of a low-pass filter. Although description has been made of the case for motion compensated prediction based on a field of an interlace signed in the present embodiment, it is needless to mention that the effect of the prediction does not change if a frame is used as a base or a noninterlace image is used as a base as shown in the second and third embodiments respectively. According to the present invention, as is clear from the above-described embodiments, a time position of a reference image is corrected by using a motion vector as required so that a plurality of pieces of reference images sampled at different times according to a detected motion at certain time intervals of a block unit including at least one pixel become images at times separated from the input image by the above time intervals, so that it is possible to obtain a plurality of pieces of images at positions separated by the above time intervals from the input image. By combining the plurality of pieces of images together, a reference image of high pixel density can be obtained and a pixel value at a position which has been compensated by the detected motion is calculated by using the reference image of high pixel density, so that the calculated pixel value is used as a predicted value. Thus, there is an effect that it is possible to calculate a motion compensated prediction of an image at a very high level of precision. Further, according to the present invention, a vector for correcting a time position of the above reference image can be calculated based on a motion detected at a certain time interval, which does not require a detection again of a motion vector for correcting the time position, so that this has an effect that motion compensation at a high precision level can be ensured. Further, since an interlace signal can be used as an input signal and a reference image can be in two fields of a certain frame, the above motion compensated prediction can be applied to a frame image, thus ensuring a motion compensated prediction, at a high precision level, based on a frame. Further, since the same value can be used for a block of each input image among blocks of a plurality of pieces of input images, each block having its whole or part of spatial position superposed with that of the other blocks, as a motion detected at a certain time interval of a block unit including at least one pixel, it is not necessary to carry out a plurality of detections of motions of many blocks in a plurality of input images so that there is an effect that a motion compensated prediction at a high precision level can be ensured.

Claims: A method of compensating for errors in prediction of an input image, comprising the steps of: generating a first predictive motion vector (MV(M), (MV(M+1)) corresponding to movement of a portion of an image between a first reference image sampled at a first predetermined time and the said input image: generating at least one secondary predictive motion vector, each one of which corresponds to movement of a portion of an image between the first reference image and a secondary reference image sampled at a predetermined time different from the first predetermined sampling time and the predetermined sampling time of each other secondary reference image; providing a combined reference image comprising the primary reference image and a plurality of pixels projected from the or each said secondary reference image, the position of each projected pixel in the combined reference image being determined by projection along the respective secondary predictive motion vector; and interpolating values for pseudo pixels of the combined reference image on the basis of pixel values of adjacent combined reference pixels in the combined reference image, each pseudo pixel value corresponding to a pixel value of an input image pixel predicted by the first predictive motion vector. A method of compensating for errors in prediction of an input image comprising the steps of: generating a first predictive motion vector (MV) corresponding to movement of a portion of an image between a first reference image sampled at a first predetermined time and the said input image; generating at least one secondary predictive motion vector, each one of which corresponds to movement of a portion of an image between a secondary reference image and the said input image, the said secondary reference image being sampled at a predetermined time different from the first predetermined sampling time and the predetermined sampling time of each other secondary reference image; interpolating values for pseudo reference pixels on the basis of adjacent pixel values in the first reference image and the secondary reference image(s), each pseudo reference pixel value corresponding to a pixel value of an input image pixel predicted by the first predictive motion vector; and calculating each pixel value of the input image pixels from the pseudo reference pixels corresponding thereto. A method as claimed in claim 2, wherein each input image pixel value is calculated by averaging the corresponding pseudo reference pixel values of the first and secondary reference images. A method as claimed in any one of claims 1 to 3, wherein the secondary predictive motion vector is derived from the first predictive motion vector. A method as claimed in any one of claims 1 to 4, wherein a single secondary reference image is provided, the first and secondary reference images being first and second fields of an interlaced image. A method as claimed in any one of the preceding claims, wherein the pixel value for each said pseudo pixel is interpolated by calculating a weighted average of pixel values adjacent each said pseudo pixel, the contribution of each adjacent pixel being inversely proportional to the distance of the said adjacent pixel from the said pseudo pixel. A method as claimed in any one of the preceding claims, wherein the pixel value for each pseudo pixel is interpolated by use of a coefficient of a low pass filter.

Inventors: INOUE SHUJI, YUKITAKE TAKESHI, INOUE, SHUJI, YUKITAKE, TAKESHI
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1992
Main classification: H04N7
IPC codes: G06T9, H04N7, H04N5