Abstract:
A motion picture encoding method and apparatus which divides a previous frame of a motion picture into arbitrary quadrilateral objects, obtains a predictive error through movement trace and prediction for each quadrilateral object; and encodes each quadrilateral object independently by converting the predictive error from a quadrilateral unit into a square object having K×K dimensions, where K is an integer.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a system for encoding a motion picture, and more particularly to a method of encoding a motion picture using a conversion encoding technique and an apparatus thereof. The present application is based upon Korean Application No. 59425/1995, which is incorporated herein by reference. 
     2. Description of the Related Art 
     For the encoding of a motion picture, there have been many techniques in which each frame of the motion picture is divided into quadrilateral objects, the movement is traced by each quadrilateral object unit, and movement compensation is performed using image warping. The techniques are published under the title of &#34;A Novel Video Coding Scheme Based on Temporal Prediction using Digital Image Warping&#34; (J. Neiweglowski, G. Cambell, and P. Haavisto, pp. 141-150, IEEE Trams. on Consumer Electronics, August, 1993) (document 1) and &#34;Active Mesh-A Feature Seeking and Tracking Image Sequence Representation Scheme&#34; (Y. Wang and O. Lee, PP. 610-624, IEEE Trams. on Image Processing, September, 1994) (document 2). 
     The basic configuration of these techniques is shown in FIG. 1. 
     An initial mesh generator 2 divides each frame of a motion picture into square initial meshes (or objects). An object transformer 4 transforms the initial square objects into arbitrary quadrilateral objects. A movement tracer 6 traces, with respect to a time axis, the movement of each corner of the arbitrary quadrilateral object generated from the object transformer 4. A movement compensating and frame predictor 8 predicts a current frame from the previous frame through image warping on the basis of assumed movement vector. A predictive error encoder 10 obtains an error between the current frame and a frame predicted from the movement compensating and frame predictor 8 and encodes an error signal in accordance with the error. 
     The motion picture encoding method will now be described with reference to the structure of FIG. 1. 
     Here, it is noted that the frame input to be currently encoded according to a time sequence of motion picture input is referred to as a current frame and the frame just next to the current frame is referred to as a previous frame. The previous frame means a frame on which encoding and decoding has been completed and is available for both an encoder and a decoder. 
     When the current frame to be currently encoded is input, the decoded previous frame is divided in the initial mesh generator 2 into initial square objects (or meshes) having N×N dimensions. The initial square objects are represented by four corners as shown in FIG. 2A and the position of each corner representing the square object is transferred in accordance with the spatial or temporal complexity of each frame. During the transferal of the corners, spatial and temporal change rates of a pixel value at each position of each corner are used to determined the degree and location of the movement of the corner. The square objects are transformed into arbitrary quadrilateral objects, as shown in FIG. 2B, by transferring the position of each corner representing the square object. The movement in the time axis of each corner of the square object is traced by the movement tracer 6 with respect to the arbitrary square object generated in the object transformer 4. To trace the movement vector of each corner, there are tracing methods of using the pixel value change rate of space and time and using a modification of a general block matching technique. The movement vector is traced within a scope where the form of the square to be transformed by the movement vector does not destroy the basic structure of a square. When the movement vector to each corner of the square object is traced in the movement tracer 6, the current frame is predicted from the previous frame through the image warping in the movement compensating and frame predictor 8. The image warping is done through a method using linear interpolation suggested in the document 2 and using affine conversion after dividing the quadrilateral into two triangles which is suggested in the document 1. 
     In the predictive error encoder 10, an error signal is encoded after configuring an error frame constituted by a predictive error, through a process of obtaining a difference between the current frame and a frame predicted from the movement vectors of the corners of each quadrilateral object of the previous frame. To encode the error frame, each error frame is divided into square blocks having a K×K size and the block is encoded in accordance with a degree of the error by adaptively using a conversion encoding technique such as discrete cosine transform (DCT). 
     In the motion picture encoding technique using the known image warping as above, the previous frame is divided into quadrilateral objects and the movement vector with respect to the corners of each square is movement-compensated using trace and warping thereof. Thus, the predictive frame formed for the movement compensation is represented through arbitrary quadrilateral objects and the predictive error is also formed by a unit of an arbitrary quadrilateral object (or block). In the known technology, the predictive error frame is formed at a previous frame area and the predictive error is encoded using such conversion encoding technique as DCT by dividing again the predictive error frame into square objects. However, in case of prediction using warping, since each arbitrary quadrilateral object exhibits its feature independently, the known predictive error encoding method, in which the predictive error frame is divided again into the square objects, cannot reflect such features of the predictive errors. Accordingly, the known encoding method has a low efficiency in the predictive error encoding. 
     In a motion picture encoding algorithm using image warping or active mesh, predictive error according to movement prediction and compensation has an independent feature with respect to a quadrilateral object. Therefore, since the present invention can independently encode a quadrilateral object, the efficiency of encoding is improved, thereby providing a superior quality motion picture of at the same bit rate as the known encoding algorithm. 
     SUMMARY OF THE INVENTION 
     To overcome the above problems, it is an object of the present invention to provide a motion picture encoding method which improves the encoding efficiency of the predictive error and an apparatus thereof. 
     It is another object of the present invention to provide a method of converting an object represented in an arbitrary quadrilateral form into a square object and encoding the same using a general conversion encoding algorithm with respect to the converted square. 
     Those and other objects of the present invention can be accomplished with a method of encoding a motion picture, comprising the steps of: (a) dividing a previous frame of said motion picture into an arbitrary quadrilateral objects; (b) obtaining a predictive error through movement trace and prediction by a unit of each quadrilateral object; and (c) encoding each quadrilateral object independently by converting said predictive error represented as each quadrilateral unit in response to said obtaining step into a square object having a K×K size, wherein K is an integer. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     A more complete appreciation of this invention, and many of the attendant advantages thereof, will be readily apparent as the same becomes better understood by reference to the following detailed description when considered in conjunction with the accompanying drawings, in which like reference symbols indicate the same or similar components, wherein: 
     FIG. 1 is a prior art block diagram for the motion picture encoding; 
     FIGS. 2A and 2B are views showing spatial transformation of a prior art quadrilateral object; 
     FIG. 3 is a block diagram of the present invention for the motion picture encoding; and 
     FIG. 4 is a view showing a process of transforming from an arbitrary quadrilateral object having a predictive error therein to a square object according to the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
     In FIG. 3, an initial mesh generator 2, an object transformer 4, a movement tracer 6 and a movement compensation and frame predictor 8 which are indicated by a dotted block are the same elements as in the prior art technology. However, a predictive error forming unit 20 and an object re-forming unit 22 are added in the present invention. The predictive error forming unit 20 is for calculating a predictive error by a quadrilateral unit forming a predictive object and generating a predictive error signal of a quadrilateral form. The object re-forming unit 22 is for re-forming the predictive error signal from an arbitrary quadrilateral form into a square form. A predictive error encoder 24 is for encoding the predictive error signal of a square form transformed in the object reforming unit 22 using a conversion encoding method. 
     The operation of the present invention having such a structure will now be described in detail. 
     The encoded previous frame is divided into initial meshes (or objects) of a square form in the initial mesh generator 2. The initial square meshes are transformed into an arbitrary quadrilateral in the object transforming unit 4. The movement along a time axis of each quadrilateral object with respect to the arbitrary quadrilateral objects generated from the object transforming unit 4 is traced. Through image warping, a predictive object is made from the quadrilateral object of the previous frame based on the movement vector traced in the movement compensation and frame predictor 8. 
     The predictive error forming unit 20 generates a predictive error signal for each quadrilateral object. That is, the predictive error is present within the arbitrary quadrilateral object. The object re-forming unit 22 converts the predictive error signal defined in a quadrilateral form into a square object having a K×K size. 
     The operation of the object re-forming unit 22 will be described in detail with reference to FIG. 4. 
     In FIG. 4, assuming that the coordinates of the corners of the quadrilateral object are P 1 , P 2 , P 3  and P 4  with respect to the predictive error defined in a square form, the corners are mapped to P.sbsp.1, P.sbsp.2, P.sbsp.3 and P.sbsp.4 which are the corners of the square object through an object re-formation algorithm. All of the inside the rectangular object are converted into the points inside the square object according to the above mapping rule. The conversion is performed by the object re-formation algorithm by which an arbitrary rectangular object is converted into a square object. 
     Prior to the description of the algorithm, the coordinates of the rectangular object of FIG. 4 are defined as follows. 
     The spatial positions of respective corners of the quadrilateral object are defined that P 1  =(x1, y2) P 2  2=(x1, y2), P 3  =(x3, y3) and P 4  =(x4, y4) (here, P 1  indicates a left-most point among the four corners). The spatial positions of respective corners of the square object having a K×K size are defined that P 1  =(x 1 , y 1 ), P 2  =(x 2 , y 2 ), P 3  =(x 3 , y 3 ), and P 4  =(x 4 , y 4 ). The corners of the object are connected in order, forming a closed loop. In the square, P 1  denotes a point in the upper left, P 2  in the upper right, P 3  in the lower right, and P 4  in the lower left. 
     The object re-forming algorithm is made of the following four steps. 
     &lt;1st step of setting initial point&gt; 
     The corner P 1  which is the left-most among the corners of the quadrilateral object is selected to be set as the initial point P 1  of the square object. 
     &lt;2nd step of mapping corners of quadrilateral object&gt; 
     The initial point, P 1  has two neighboring corners P 2  and P 4 . A neighboring point having the greater value in the y-direction is mapped to P 2  and a neighboring point having the smaller value in the y-direction is mapped to P 4 , by comparing the position in the y-direction of the adjacent corners P 2  and P 4 . The corner of the quadrilateral object at a diagonal position of the initial point P 1  is automatically mapped to P 3 . 
     &lt;3rd step of calculating transformation vector at each corner of quadrilateral object&gt; 
     When the mapping of the corners of the quadrilateral object is determined in step 2, a transformation vector d 1  indicating a degree of mapping is calculated as follows. 
     
         d.sub.i =P.sub.i -P.sub.i i=1, 2, 3, 4 
    
     &lt;4th step of interpolation&gt; 
     The transformation vectors at respective points inside the quadrilateral object are determined by linear interpolation using the transformation vectors of the corners of the quadrilateral object. 
     Thus, when the transformation vector by which a quadrilateral object is mapped to a square object through such an object re-formation algorithm is determined, each position inside the quadrilateral object is moved inside the square. Accordingly, the value of the error signal at each position inside the square can be determined by the linear interpolation method. 
     Thus, in the predictive error encoder 24, the error signal defined to a square object is converted to be encoded using a two-dimensional DCT having dimensions of K×K. The encoding method using the two-dimensional DCT converts the K×K error signal using the two-dimensional DCT and a DCT coefficient is quantized at a conversion domain and encoded using variable length encoding. 
     In a decoder, the steps of the above process are reversed, and a variable length decoding is performed by receiving a variable-length-encoded bit stream. Through reverse-quatization and reverse-DCT, the K×K error signal is restored. The K×K size error signal re-forms the quadrilateral object in a reverse process of the object transformation algorithm and restores the error signal represented by the quadrilateral object. 
     In the present invention, as a technique to transform an arbitrary quadrilateral object into a square object, is a method of linearly interpolating transformation vectors of the corners of the quadrilateral object. However, an affine conversion method in which a quadrilateral object is divided into two triangular objects can be employed or an interpolation method of a high degree can also be used. 
     Also, in the present invention, a conversion encoding method of a two-dimensional DCT is used to encode an error signal of K×K size generated from the transformation from an error signal defined to a quadrilateral object to an error signal of K×K size. Another algorithm can also be used for that purpose. That is, a vector quatization method of a K×K size can be used and the K×K error signal can be divided again to be encoded. 
     Further, in the present invention, the inner value is applied as an error signal to a quadrilateral object. However, the object transformation algorithm can be used to encode a signal having a general gray value. 
     In a motion picture encoding algorithm using image warping or active mesh, predictive error according to movement prediction and compensation is performed independently with respect to a quadrilateral object. Therefore, since the present invention can independently encode a quadrilateral object, the efficiency of encoding is improved, thereby providing motion picture of superior quality at the same bit rate as the known encoding algorithm. 
     It should be understood that the present invention is not limited to the particular embodiments disclosed herein, except as defined in the appended claims.