Motion estimation using orthogonal transform-domain block matching
Abstract
A block matching system matches a motion block in one video image frame to a matching block another video image frame. The system includes a plurality of Hadamard transform processors which transform the motion block and a plurality of trial matching blocks from the other video image frame. The transformed matching blocks are ten compared to the transformed motion block, and the transformed matching block which has the smallest difference relative to the transformed motion block is determined. The matching block which corresponds to the determined transformed matching block is selected as the matching block for the motion block. The block matching system may transform motion blocks having different numbers of rows and columns. In one application, the system matches a relatively large motion block in the one frame to a corresponding large matching block in the other frame and determines a displacement between the matching block and the motion block. This displacement is used to guide the selection of trial matching blocks when smaller motion blocks in the one frame are matched to blocks in the other frame.

Term
Term ended
Projected expiry passed 10 January 2020, 6.7 years ago.
- Priority
- Filed
- Published
- Projected expiry
- Today
13 claims: 4 independent, 9 dependent
- 1A method for processing pixel data representing first and second images to identify a matching block of pixel values in a second image which corresponds to a motion block of pixel values in a first image, the method comprising the steps of:transforming the motion block of pixel values using a predetermined orthogonal transform operation to produce a transformed motion block;selecting a plurality of trial matching blocks from the second image;transforming each of the trial matching blocks using the predetermined orthogonal transform operation to produce a corresponding plurality of transformed matching blocks;generating a plurality of measures of difference between the transformed motion block and each of the respective plurality of transformed matching blocks;and selecting, as the matching block, the trial matching block which corresponds to the transformed matching block having the measure of difference which is least among the plurality of measures of difference.
- 7A method for processing pixel data representing first and second images to identify a matching block of pixel values in a second image which corresponds to a motion block of pixel values in a first image, the method comprising the steps of:selecting an M by N block of pixel values in the first image, the M by N block of pixel values including the motion block of pixel values as a proper subset;transforming the M by N block of pixel values using a predetermined orthogonal transform operation to produce a transformed M by N block of pixel values;selecting a plurality of trial M by N matching blocks from the second image;transforming each of the plurality of trial M by N matching blocks using the predetermined transform operation to produce a corresponding plurality of transformed M by N matching blocks;generating a plurality of measures of difference between the transformed M by N motion block and each of the respective plurality of transformed M by N matching blocks;comparing the generated measures of difference to identify a minimum measure of difference and determining which transformed M by N matching block corresponds to the minimum measure of difference;determining a displacement between the M by N block and the selected M by N matching block;transforming the motion block of pixel values using a predetermined orthogonal transform operation to produce a transformed motion block;selecting a plurality of trial matching blocks from the second image, the selected trial matching blocks being clustered around a trial matching block which is displaced from the motion block by the determined displacement;transforming each of the trial matching blocks of pixel values using the predetermined orthogonal transform operation to produce a corresponding plurality of transformed matching blocks;generating a plurality of measures of difference between the transformed motion block and each of the respective plurality of transformed matching blocks;and selecting, as the matching block, the trial matching block which corresponds to the transformed matching block having the measure of difference which is less than any of the other measures of difference of the plurality of measures of difference.
- 8Apparatus for processing pixel data representing first and second images to identify a matching block of pixel values in a second image which corresponds to a motion block of pixel values in a first image, the apparatus comprising:a transform processor which transforms the motion block of pixel values using a predetermined orthogonal transform operation to produce a transformed motion block;a plurality of further transform processors which select a respective plurality of trial matching blocks from the second image and transform the respective trial matching blocks of pixel values using the predetermined orthogonal transform operation to produce a corresponding plurality of transformed matching blocks;a comparator which generates a plurality of measures of difference between the transformed motion block and each of the respective plurality of transformed matching blocks and identifies one of the measures of difference as a minimum measure of difference, wherein the trial matching block which corresponds to the transformed matching block having the minimum measure of difference is identified as the matching block of pixel values which corresponds to the motion block of pixel values
- 13A carrier including a computer program, the computer program including a plurality of instructions which cause a computer to perform the steps of:identifying a motion block of pixels from a first image;transforming the motion block of pixel values using a predetermined orthogonal transform operation to produce a transformed motion block;selecting a plurality of trial matching blocks from the second image;transforming each of the trial matching blocks of pixel values using the predetermined orthogonal transform operation to produce a corresponding plurality of transformed matching blocks;generating a plurality of measures of difference between the transformed motion block and each of the respective plurality of transformed matching blocks;and selecting, as a matching block, the trial matching block which corresponds to the transformed matching block having the measure of difference which is less than any of the other measures of difference of the plurality of measures of difference.
Independent claims4
57 paragraphs in 4 sections, as filed
BACKGROUND OF THE INVENTION
0001The present invention relates to image block matching methods and in particular to a method of matching blocks of pixels between two images which operates in the domain of an orthogonal transform.
0002Motion estimation a fundamental type of digital video processing. Motion estimation can be found in many digital video applications, for example, video coding, motion compensated video standards conversion and machine vision. Motion information in the context of video coding is useful to reduce signal entropy so that a compressed video signal can be transmitted through a bandwidth-constrained channel. Motion information in the context of video standards conversion helps the converter to recover missing data, spatially and/or temporally, by interpolating the signal along the motion path. Motion information is useful in machine vision applications to allow a robot to find or follow a workpiece through various processing steps. In each of these instances, motion estimation typically uses a pixel-domain block matching (BM) technique and the matching criterion is the minimum mean-square-error (MSE) between the motion block in the current frame and the trial matching blocks in the search frame. The minimum MSE may be replaced by minimum mean absolution difference (MAD) for a more cost-effective hardware implementation.
0003Pixel-domain BM techniques are well suited to these applications because of their algorithmic simplicity and because they may be implemented using very large scale integrated (VLSI) circuitry. These existing BM techniques may provide less than optimal results, however, because they are based on pixel-domain comparison and because the best match is determined based on the minimum error index (MAD/MSE). It is generally agreed that the pixel-domain MSE (or cross-correlation) measure is not frilly consistent with image visual error as perceived by humans. Consequently the error measure currently used in motion estimation requires further modification. In other words, the characteristics of human visual system should be considered during the matching process.
SUMMARY OF THE INVENTION
0004This invention is embodied in a motion estimation technique that takes human visual characteristics into consideration. The scheme uses transform-domain block matching techniques to achieve more accurate motion vectors than can be achieved using pixel-domain block matching techniques.
0005According to one aspect of the invention the motion estimation method performs a transform operation on the motion block and on all trial matching blocks. The method then compares the transformed motion block to each of the transformed trial matching blocks and selects, as the matching block, the trial matching block which exhibits the smallest difference with the motion block in the transform domain.
0006According to another aspect of the invention, the transform operation is a Hadamard transform operation.
0007According to another aspect of the invention, the method calculates the mean-squared error (MSE) between the transformed motion block and each of the transformed trial matching blocks and selects, as the matching block, the transformed trial matching block having the minimum MSE.
0008According to another aspect of the invention, the method calculates the mean absolute difference (MAD) between the transformed motion block and each of the transformed trial matching blocks and selects, as the matching block, the transformed trial matching block having the minimum MAD.
0009According to yet another aspect of the invention, the method allows the size of the motion block to be changed.
BRIEF DESCRIPTION OF THE DRAWINGS
0010<ul id="ul0001" list-style="none" compact="compact"><li>Fig. 1 (prior art) is a multi-frame image diagram which is useful for describing block matching techniques.</li><li>Fig. 2 is a block diagram of an exemplary block matching processor according to the present invention.</li><li>Fig. 3 is a block diagram of another exemplary block matching processor according to the present invention.</li><li>Fig. 4 is a block diagram of yet another exemplary block matching processor according to the present invention.</li><li>Fig. 5 is a block diagram of a video signal encoding system which uses a block matching processor such as that shown in Fig. 4.</li><li>Fig. 6 is a block diagram of a machine vision system which generates a motion vector field using a block matching technique according to the present invention.</li><li>Fig. 7 is a flow-chart diagram which illustrates the operation of one of the processors shown in Fig. 6.</li><li>Figs. 8A and 8B are multi-frame image diagrams which are useful for describing one block matching technique according to the present invention.</li><li>Fig. 9 is a multi-frame image diagram which is useful for describing another block matching technique according to the present invention.</li></ul>
DETAILED DESCRIPTION
0011Motion estimation techniques are widely used in video analysis, coding and standards conversion. In video coding, motion information is used to reduce image entropy and so reduce the number of bits that are needed to transmit or store an image. In video standards conversion applications, motion information is often used to aid interpolation of the missing pixels. In machine vision, motion estimation may be used to limit the portion of the image which needs to be analyzed. In all cases, the quality of the coded or converted images is directly linked to the accuracy of the motion estimation. Although in the real world the observable data captured by a camera is image intensity and not image motion. The perceived temporal displacement of intensity patterns in an image sequence owing to relative motion of the objects and the viewer is a significant aspect in image analysis and is called optical flow. Optical flow provides information pertaining to the spatial arrangement and structure of moving objects. Therefore, especially in machine vision and standards conversion applications, it is desirable to model true motion by estimating the optical flow in the image sequence.
0012Block-based motion estimation and compensation techniques are among the most popular approaches for video coding and standards conversion. One exemplary block-based motion estimation and compensation technique is described in U.S. Patent No. 5,198,091 entitled DERIVATION AND USE OF MOTION VECTORS IN A DIFFERENTIAL PULSE CODE MODULATION SYSTEM, which is incorporated herein by reference for its teaching on block-based motion estimation techniques. Block-based motion estimation has been adopted in the international standards for digital video compression, such as H.261 and MPEG 1-2. These standards, however, do not specify a particular motion estimation method. Block-based motion estimation is also widely used in several other digital video applications, including motion-compensated filtering (interpolation) for standards conversion and machine vision.
0013The block-motion model assumes that a video image is composed of moving blocks. To reduce the computational complexity, a simple 2-D translational motion is often assumed. Among many other block-based motion estimation algorithms, block matching can be considered as the most popular method for practical motion estimation realization due to its lesser hardware complexity. As a result, it's widely used in VLSI, and almost all H.261 and MPEG 1-2 codecs use block matching for motion estimation. Many of these block matching techniques use a pixel-domain search procedure to identify the best motion vector estimate for a given motion block.
0014The basic block matching algorithm is shown in Fig. 1, where the displacement for a pixel x(u<sub>1</sub>,v<sub>1</sub>) in current frame (reference frame) 100 is determined by considering a N<sub>1</sub> x N<sub>2</sub> motion block 102 centered at (u<sub>1</sub>,v<sub>1</sub>) and searching next/previous frame (search frame) 104 for the location of the best-matching block 110, of the same size. Once the best matching block is found, the motion vector is determined relative to a block 108 which occupies the same position in the search image as the motion block occupies in the current image. The search is usually limited to a <maths id="math0001"><math display="inline"><mrow><msub><mrow><mtext>N</mtext></mrow><mrow><mtext>1</mtext></mrow></msub><msub><mrow><mtext>+2M</mtext></mrow><mrow><mtext>1</mtext></mrow></msub><msub><mrow><mtext> x N</mtext></mrow><mrow><mtext>2</mtext></mrow></msub><msub><mrow><mtext>+2M</mtext></mrow><mrow><mtext>2</mtext></mrow></msub></mrow></math><img file="EP1024456A2_D0001.tif" /></maths> region (search window) 106 for computational reasons. Block matching algorithms may differ in the following aspects: the matching criteria (e.g., minimum cross-correlation, minimum MSE, minimum MAD), the search strategy (e.g., 3-step fast search), or the determination of block size (e.g., hierarchical)
0015The focus is on the matching criterion used to find the best matching block from among the plurality of trial matching blocks.
0016Typically, matching criteria are based on pixel-domain error index measures such as the maximum cross-correlation and the minimum MSE. To reduce computational requirement in block matching, the minimum mean absolute difference (MAD) or the maximum matching pixel count (MPC) may replace MSE or MAD, at the expense of compromising the performance. In the minimum MSE criterion, a MSE is defined by equation (1).<maths id="math0002"><img file="EP1024456A2_D0002.tif" /></maths> Where <img file="EP1024456A2_D0003.tif" /> denotes a N<sub>1</sub>xN<sub>2</sub> block, for a set of candidate motion vectors (d<sub>1</sub>, d<sub>2</sub>). The estimation of the motion vector is taken to be the value of (d<sub>1</sub>, d<sub>2</sub>) which minimizes the MSE, as shown in equation (2).<maths id="math0003"><img file="EP1024456A2_D0004.tif" /></maths> Because it is difficult to efficiently realize the square operation in hardware, a minimum MAD criterion, defined by equation (3), may be used instead of the MSE criterion.<maths id="math0004"><img file="EP1024456A2_D0005.tif" /></maths> Then the displacement estimate is given by equation (4).<maths id="math0005"><img file="EP1024456A2_D0006.tif" /></maths>
0017If the difference between the two frames represents inter-frame motion, the displacement may be translated directly into a motion vector as an ordered pair of values which represents the displacement of a predetermined pixel of the motion block along, for example, x and y coordinate axes, between the current frame and the search frame.
0018In real-world video applications, the accuracy of the motion estimation schemes is ultimately judged by viewers regardless of which matching criterion is employed. It is generally agreed that the pixel-domain error measure (e.g., MSE, MAD) is not filly consistent with image visual error as it is perceived by the human eye. Consequently the error measures currently used in motion estimation require further modification to accommodate characteristics of the human visual system. The present invention takes these characteristics into account by performing block matching not in the pixel domain but in a transform (sequence/frequency) domain. The use of a sequence/frequency domain transform may provide more effective block matching because perceived image block errors are more noticeable if they occur in lower spatial frequency components rather than in higher spatial frequency components. The typical pixel-based block matching technique, because it operates only in the pixel domain, treats all pixels equally during the match.
0019The inventive method first transforms the motion block and the trial matching blocks into an orthogonal domain and then conducts a coefficient-by-coefficient comparison using, for example, a MSE/MAD matching criterion. There are several advantages of using transform-domain block matching over conventional pixel-domain block matching: <ul id="ul0002" list-style="none" compact="compact"><li>(1) The lower-order transform components are more likely to have an effect on the matching outcome which is consistent with human's perception;</li><li>(2) The effective noise power in the transform domain is reduced;</li><li>(3) The motion estimation error is smaller than that of a pixel-domain block matching technique if the assumption that the image exhibits only transnational motion is violated.</li></ul>
0020There are a number of transformations that could translate image block into a sequence/frequency domain. The Fourier transform (FT), the discrete cosine transform (DCT) and the Hadamard transform (HT) are three representative methods. Since the FT and DCT operations are complex and real number transforms, respectively, they are not considered due to their relatively high cost in hardware implementation. HT is more suitable to the task due to its pure +1 and -1 transform kernel and the existence of a fast transform algorithm. Therefore it takes much less hardware logic to realize HT processing than FT or DCT processing. Although the subject invention is described in terms of the Hadamard transforms, it is contemplated that it may be practiced with any frequency/sequence domain transform or other orthogonal transform in which signal energy is compressed into a relatively small number of components. In addition, although the subject invention is described as using the minimum mean absolute difference (MAD) of the transformed blocks to identity the best matching block, it is contemplated that other matching measures may be used, such as maximum cross-correlation, minimum MSE or maximum matching pixel count (MPC).
0021A Hadamard matrix, <maths id="math0006"><math display="inline"><mrow><msub><mrow><mtext>H = (h</mtext></mrow><mrow><mtext>ij</mtext></mrow></msub><mtext>)</mtext></mrow></math><img file="EP1024456A2_D0007.tif" /></maths> is defined as a square matrix of dimension nxn where <ul id="ul0003" list-style="none" compact="compact"><li>i. All entries are ±1;</li><li>ii. Any two distinct rows are orthogonal, i.e., ∀ i, j, i ≠ j,<maths id="math0007"><img file="EP1024456A2_D0008.tif" /></maths></li><li>iii. The order of the Hadamard matrix must be 1, 2, 4, 8, 16, ..., 4m, where m = 1, 2, ......</li></ul>
0022Without the loss of generality, we consider a commonly used subset of the Hadamard matrix for transform, namely the Sylvester-Hadamard matrix of rank 2<sup>n</sup>. Its recursive form is defined by equation (5).<maths id="math0008" num="(5)"><math display="block"><mrow><msub><mrow><mtext>H</mtext></mrow><mrow><mtext>n</mtext></mrow></msub><msub><mrow><mtext> = H</mtext></mrow><mrow><mtext>1</mtext></mrow></msub><msub><mrow><mtext> ⊗ H</mtext></mrow><mrow><mtext>n-1</mtext></mrow></msub></mrow></math><img file="EP1024456A2_D0009.tif" /></maths> Where ⊗ denotes Knonecker product, and<maths id="math0009"><img file="EP1024456A2_D0010.tif" /></maths> Thus<maths id="math0010"><img file="EP1024456A2_D0011.tif" /></maths> and<maths id="math0011"><img file="EP1024456A2_D0012.tif" /></maths>
0023The 2-D square Hadamard transform is defined by equation (6).<maths id="math0012" num="(6)"><math display="block"><mrow><msub><mrow><mtext>F = H</mtext></mrow><mrow><mtext>m</mtext></mrow></msub><msub><mrow><mtext> f</mtext></mrow><mrow><mtext>N1N2</mtext></mrow></msub><msub><mrow><mtext> H</mtext></mrow><mrow><mtext>n</mtext></mrow></msub></mrow></math><img file="EP1024456A2_D0013.tif" /></maths> Where H<sub>m</sub> and H<sub>n</sub> are <maths id="math0013"><math display="inline"><mrow><msub><mrow><mtext>N</mtext></mrow><mrow><mtext>1</mtext></mrow></msub><msub><mrow><mtext> x N</mtext></mrow><mrow><mtext>1</mtext></mrow></msub><msup><mrow><mtext> (2</mtext></mrow><mrow><mtext>m</mtext></mrow></msup><msup><mrow><mtext> x 2</mtext></mrow><mrow><mtext>m</mtext></mrow></msup><mtext>)</mtext></mrow></math><img file="EP1024456A2_D0014.tif" /></maths> and <maths id="math0014"><math display="inline"><mrow><msub><mrow><mtext>N</mtext></mrow><mrow><mtext>2</mtext></mrow></msub><msub><mrow><mtext> x N</mtext></mrow><mrow><mtext>2</mtext></mrow></msub><msup><mrow><mtext> (2</mtext></mrow><mrow><mtext>n</mtext></mrow></msup><msup><mrow><mtext> x 2</mtext></mrow><mrow><mtext>n</mtext></mrow></msup><mtext>)</mtext></mrow></math><img file="EP1024456A2_D0015.tif" /></maths> Hadamard matrices, respectively. The matrix f<sub>N1N2</sub> is an image data matrix wit dimension of N<sub>1</sub> x N<sub>2</sub>. Note: It is also possible to Hadamard-transform an image data matrix with order that conforms to the third property of Hadamard matrixes, defined above.
0024Like the traditional pixel-domain BM, the Hadamard transform-domain BM determines the displacement for a pixel f(u<sub>1</sub>,v<sub>1</sub>) in current frame (reference frame) by considering a N<sub>1</sub> x N<sub>2</sub> motion block centered at (u<sub>1</sub>,v<sub>1</sub>) and searching the next (or previous) frame (search frame) for the location of the best matching block of the same size. The search is also limited to a <maths id="math0015"><math display="inline"><mrow><msub><mrow><mtext>N</mtext></mrow><mrow><mtext>1</mtext></mrow></msub><msub><mrow><mtext>+2M</mtext></mrow><mrow><mtext>1</mtext></mrow></msub><msub><mrow><mtext> x N</mtext></mrow><mrow><mtext>2</mtext></mrow></msub><msub><mrow><mtext>+2M</mtext></mrow><mrow><mtext>2</mtext></mrow></msub></mrow></math><img file="EP1024456A2_D0016.tif" /></maths> region. The difference is that the blocks in the reference and in the search frames both undergo individual Hadamard transformations, as defined by equations (7) and (8).<maths id="math0016"><math display="block"><mrow><mtable><mtr><mtd><mrow><mtable><mtr><mtd><mrow><mtable><mlabeledtr><mtext>(7)</mtext><mtd><mrow><msub><mrow><mtext>F</mtext></mrow><mrow><mtext>ref</mtext></mrow></msub><msub><mrow><mtext> (R)= H</mtext></mrow><mrow><mtext>m</mtext></mrow></msub><msub><mrow><mtext> f</mtext></mrow><mrow><mtext>ref</mtext></mrow></msub><msub><mrow><mtext>(R) H</mtext></mrow><mrow><mtext>n</mtext></mrow></msub></mrow></mtd></mlabeledtr></mtable></mrow></mtd></mtr><mtr><mtd><mrow><mtable><mlabeledtr><mtext>(8)</mtext><mtd><mrow><msub><mrow><mtext>F</mtext></mrow><mrow><mtext>search</mtext></mrow></msub><msub><mrow><mtext>(R) = H</mtext></mrow><mrow><mtext>m</mtext></mrow></msub><msub><mrow><mtext>f</mtext></mrow><mrow><mtext>search</mtext></mrow></msub><msub><mrow><mtext>(R) H</mtext></mrow><mrow><mtext>n</mtext></mrow></msub><mtext>;</mtext></mrow></mtd></mlabeledtr></mtable></mrow></mtd></mtr></mtable></mrow></mtd></mtr></mtable></mrow></math><img file="EP1024456A2_D0017.tif" /></maths> Where R denotes a block of pixels of size N<sub>1</sub> x N<sub>2</sub>.
0025The MAD criterion can be used to calculate transform-domain block difference according to equation (9).<maths id="math0017"><img file="EP1024456A2_D0018.tif" /></maths> Then the displacement estimate can be calculated by equation (10).<maths id="math0018"><img file="EP1024456A2_D0019.tif" /></maths>
0026Although the matching criteria for BM is changed, the proposed transform-domain BM (TBM) can be used with other variations of the BM algorithm family. For example, TBM can be used in hierarchical motion estimation algorithms in which the matching block is identified by initially searching using a decimated, low-resolution version of the current and search images and using the match determined for these images to refine the search for successively higher resolution images. Alternatively, rather than filtering and decimating the image, a larger block size and corresponding higher-order Hadamard matrix may be used to find a coarse motion vector and then the block size and matrix size may be successively reduced to translate the coarse motion vector into one or more fine motion vectors.
0027The technique may also be used with fast-search motion estimation algorithms such as the three-step search method disclosed by J.N. Kim and T.S. Choi in their article entitled "A Fast Three-Step Search Algorithm With Minimum Checking Points Using Unimodal Error Surface Assumption" <u>IEEE Trans. on Consumer Electronics</u>, Aug. 1998, pp 638-648, which is incorporated by reference for its teaching on fast-search motion estimation algorithms. Using these fast search techniques, the motion block from the current frame and each trial matching block from the search frame may be transformed before each step of the technique is performed. In addition, because the TBM technique is more sensitive to the spatial frequency content of the image, it is applicable to image sequences which exhibit non-translational motion such as rotation or zoom.
0028Fig. 2 is a block diagram of circuitry suitable for use in implementing a transform block matching algorithm according to the present invention. The circuitry shown in Fig. 2 maps motion blocks from a current frame 210 into matching blocks from a next frame 212. The block matching processor 200 includes a Hadamard transform processor 214 which selects the motion block from the current frame 210 under control of microprocessor 226.
0029The block matching processor 200 also includes a plurality of Hadamard transform processors 216, 218, 220 and 222 which, under control of the microprocessor 226, select trial matching blocks from the next frame memory 212. The microprocessor 226 may control the Hadamard transform processors 214 through 222 to select blocks from the current frame 210 and next frame 212 according to a fill search algorithm, or a fast search algorithm. If the block matching processor 200 is used in a system which employs a hierarchical block matching technique, the size of the blocks of pixels fetched from the current frame and the next frame may be varied in one or both of the X and Y directions and a corresponding Hadamard transformation may be applied to the fetched blocks of pixels as described above with reference to equations (7) and (8).
0030The transformed blocks of pixel data provided by the transform processors 214 through 222 are applied to a prediction block decision processor 224. The processor 224 may, for example, apply the minimum MAD criteria, as described above with reference to equations (9) and (10) to the various transformed blocks of pixel values to select the transformed search block having the least mean absolute difference with respect to the transformed motion block.
0031The prediction block decision processor 224 is also coupled to receive block identification signals from the microprocessor 226. Upon identifying the search block which satisfies the criterion of equation (10), the displacement between the motion block and this search block may be calculated by the prediction block decision processor 224. This displacement is expressed as a motion vector which is the output signal provided by the prediction block decision processor 224.
0032Fig. 3 is a block diagram of an alternative block matching processor 200'. This processor extends the block matching processor 200 shown in Fig. 2 by searching for matching blocks in both a prior frame 310 and a next frame 212. As shown in Fig. 3, the exemplary block matching processor 200' includes Hadamard transform processors 312, 314, 316 and 318 which are controlled by a microprocessor 226' to fetch and transform trial matching blocks from a prior frame 310 before applying these blocks to the prediction block decision processor 224'. The remainder of the circuitry shown in Fig. 3 is identical to that shown in Fig. 2 and is not described. The block decision processor 224' calculates the minimum absolute difference between the transformed motion block from the current frame 210 and any of the provided transformed blocks from the prior frame 310 or the next frame 212.
0033The exemplary embodiment of the invention shown in Fig. 3 processes the trial matching blocks from the next frame and the prior frame in parallel. Fig. 4 shows an alternative embodiment of the invention in which the trial matching blocks from the next frame and prior frame are processed in three sequential steps. The system shown in Fig. 4 includes a multiplexer/block average processor 410 which is coupled to receive trial matching blocks from the next frame 212 and prior frame 310. The processor 410 is also coupled to receive a control signal from microprocessor 226''. The block matching processor 200'' operates as follows. In a first interval, the motion block from the current frame 210 is applied to the Hadamard transform processor 214 and then to the prediction block decision processor 224''. Also in this interval, the trial matching blocks from the prior frame are applied to the respective Hadamard transform processors 216, 218, 220 and 222, via the multiplexer/block average processor 410 to produce transformed trial matching blocks which are applied to the prediction block decision processor 224''.
0034During this first interval, the prediction block decision processor 224'' chooses the transformed matching block from the prior frame which has the least mean absolute difference with respect to the transformed motion block.
0035During a second time interval, while the transformed motion block is still applied to the prediction block decision processor 224'', the microprocessor 226'' switches the multiplexer/block average processor 410 to provide trial matching blocks from the next frame 212. During this second time interval, the matching blocks from the next frame are transformed by the Hadamard transform processors 216, 218, 220 and 222 to produce transformed matching blocks for application to the prediction block decision processor 224''. In this second time interval, the prediction block decision processor 224'' selects one of the matching blocks from the next frame, based on the mean absolute difference between each of the transformed matching blocks and the transformed motion block.
0036In a third time interval, the prediction block decision processors 224'' notifies the microprocessor 226'' of the selected matching blocks from the next frame 212 and prior frame 310. The multiplexer/block average processor 410, then averages the selected blocks from the next frame and prior frame and provides the averaged block to one of the Hadamard transform processors, for example, processor 216. This transformed block is applied to the prediction block decision processor 224'' which, during the third time interval, calculates the mean absolute difference between the transformed motion block, as provided by the Hadamard transform processor 214, and the transformed average block as provided by the transform processor 216.
0037The prediction block decision processor 224'' ten compares the mean absolute difference for the transformed averaged block to the mean absolute difference for the transformed selected blocks from the next frame 212 and prior frame 310. The block having the minimum mean absolute difference determines the motion vector that is applied by the block matching processor 200''. in comparing the mean absolute difference of the transformed averaged block to mean absolute differences of the matching blocks from the next and prior frames, the prediction block decision processor 224'' may store the MAD values from the next and prior frames or it may receive the transformed matching blocks from the next and prior frames at the same time that it receives the transformed average block. In this instance, the transformed matching blocks may be routed, by the multiplexer/block average circuitry 410 to respective ones of the Hadamard transform processors 216, 218, 220 and 222, for example, processors 218 and 220.
0038The circuitry shown in Fig. 4 may, for example, be used in a transcoding processor such as an MPEG-2 encoder, which employs both forward-predictive and bidirectionally-predictive motion compensated encoding techniques.
0039The exemplary block matching processors shown in Figs. 2, 3, and 4 are shown as providing 4 trial matching blocks from the next frame and/or prior frame for comparison to the motion block from the current frame. These figures are only illustrative. It is contemplated that, for example, using a full search motion estimation technique, as many as 256 trial matching blocks may be provided from each of the prior frame and next frame. For a fast search process, such as that described in the above referenced article, each of the next frame and prior frame may provide 8 motion blocks during each step of the 3 step process.
0040Fig. 5 is a block diagram of a conventional motion adaptive video encoder circuit which has been adapted to include an embodiment of the present invention and which may, for example, produce encoded video signals according to the MPEG-2 standard. In the system shown in Fig. 5, an input video signal is applied to a frame memory 212' which is coupled to the motion compensation processor 200''. The motion compensation processor accesses the frame memory to obtain trial matching blocks from the next frame. A frame memory 212' in the exemplary embodiment of the invention is also coupled to a frame delay 210'. While the frame memory 212' holds one frame of video information, the immediately prior frame is provided to the decoding circuitry via the frame delay 210'. The output signal provided by the frame delay 210' is the current video frame which is coupled to the motion compensation processor 200'' to provide the motion blocks as described above with reference to Fig. 4. The motion compensation processor 200'' is also coupled to a frame delay 310' to receive trial matching blocks from the previous image frame.
0041In general terms, the encoder shown in Fig. 5 operates by encoding differential pixel values obtained by subtracting current video information, provided by the frame delay 210', from motion compensated video data provided by the motion compensation processor 200''.
0042In the exemplary embodiment of the invention, the motion compensated video data provided by the processor 210'' is subtracted from the current video data by the subtracter 510. The resulting difference signals are subject to a discrete cosine transform (DCT) process in the DCT processor 512. The transformed difference signals provided by the processor 512 are applied to a quantization circuit 514. As described below, the quantization resolution of the DCT encoded difference signal is controlled responsive to a buffer control processor 526. The output signals of the quantization processor 514 are applied to a variable length coder 522 which also receives motion vectors provided by the motion compensation processor 200''. The variable length coder 522 applies entropy coding to the quantized transformed differential code values and to the motion vectors to produce an encoded output video stream. The encoded video stream is applied to a first in first out (FIFO) buffer 524 which provides the bit rate reduced encoded video signal at an output port to a transport channel.
0043Depending on the detail and the amount of motion in the video image, the video data provided to the FIFO buffer 524 may be at a higher rate than can be supported by the transport channel. As the transport channel limit is approached, the FIFO buffer 524 signals the buffer control circuitry 526 to reduce the quantization resolution applied by the quantizer 514 in order to reduce the volume of data which is used to represent the encoded video signal. Because of the buffer control circuitry 526, he encoding processor shown in Fig. 5 is able to reliably encode image sequences having different level of detail and motion into a uniform bit-rate video signal.
0044The previous frame of video data provided by the frame delay circuitry 310' is regenerated from the encoded video signal. In the exemplary embodiment of the invention, an inverse quantization circuit 516, reverses the quantization operation that is performed by the quantizer 514 and applies the dequantized, transformed differentially coded video signal to an inverse discrete cosine transform processor 518. The processor 518 reverses the DCT operation performed by the processor 512 to provide decoded differential video signal to a summing circuit 520. The summing circuit 520 reconstitutes the data from the current frame by adding the motion compensated video data to the decoded differential video data. The reconstituted data is applied to the frame delay circuit 310' which delays the current frame data by one frame interval to provide previous frame video data to the motion compensation processor 200''.
0045Fig. 6 is a block diagram of a highly parallel processor system which may be used to generate motion vector fields in accordance with an exemplary embodiment of the present invention. This processor system includes NH times NV processors <sup>P</sup>0,0 through <sup>P</sup>N<sub>v-1,</sub> N<sub>h-1.</sub> Thus, the processor system has one processor for each block of the image where the image includes NH horizontal blocks by NV vertical blocks or NH times NV blocks.
0046As shown in Fig. 6, input samples corresponding to a current field, F<sub>k</sub> at previous field, F<sub>k-1</sub> and a next field, F<sub>k+1</sub>, are applied to an input/output (I/O) processor 612. This processor stores the samples into a multiport memory 614 under control of a control processor 610. The memory 614 may be, for example, a distributed memory having a respectively different portion co-resident with each of the plurality of processors <sup>P</sup>0,0 through <sup>P</sup>N<sub>v-1,</sub> N<sub>h-1</sub>. The controller 610 and the plurality of processors, <sup>P</sup>0,0 through <sup>P</sup>N<sub>v-1,</sub> N<sub>h-1</sub> operate according to the method described above with reference to Figs. 2, 3, and 4 to produce samples representing a motion vector field for the current image from samples representing 2 or 3 image fields.
0047Although the I/O processor 612 is shown as receiving 3 frames of data, it is contemplated that in steady state operation, only one new frame of data may be applied to the processor 612 at any given time. Two of the previously stored frames may simply be redesignated such that the stored data corresponding to the frame F<sub>k</sub> will become data representing frame F<sub>k+1</sub> and the stored data corresponding to the frame F<sub>k-1</sub> will become data representing frame F<sub>k</sub>. In the exemplary embodiment of the invention, each processor, for example <sup>P</sup>0,0, obtains a respectively different motion block of pixel data from frame F<sub>k</sub> via one port of the memory 614. The processor also obtains the trial matching blocks from frame F<sub>k-1</sub> and frame F<sub>k+1</sub> via the memory port.
0048Each processor, <sup>P</sup>0,0 through <sup>P</sup>N<sub>v-1,</sub> N<sub>h-1</sub> operates according to the flowchart shown in Fig. 7. The first step in the flowchart, step 710, fetches the motion block from frame F<sub>k</sub> and applies the Hadamard transform. Step 712 fetches the trial matching blocks from frame F<sub>k-1</sub> and optionally from frame F<sub>k+1</sub>. In addition, step 712 initializes a variable MINMAD to a large value. Next, step 714 selects one of the trial matching blocks and applies the Hadamard transform to the selected block. This operation is described above with reference to equation (8). Step 714 also calculates the mean absolute difference (MAD) between the selected transformed matching block and the transformed motion block. The calculation of the mean absolute difference is described above with reference to equation (9). At step 716, the value of MAD calculated in step 714 is compared to MINMAD. If MAD is less than MINMAD then step 718 is executed which assigns the value of MAD to the variable MINMAD and records the block identifier (BLOCK ID) of the block that was processed at step 714 into a variable MINMATCH. If MAD is not less than MINMAD at step 716 or after step 718, step 720 is executed. In step 720, the processor determines if any more matching blocks need to be processed. If so, control returns to step 714 to select the next matching block. If no other matching blocks are to be processed, step 722 is executed which calculates the motion vector for the block MINMATCH as described above with reference to equation (10).
0049The flowchart shown in Fig. 7 illustrates a software implementation of the invention. This software implementation may be in the form of a computer program which is conveyed via a carrier such as a diskette, CD-ROM or modulated carrier wave.
0050The result provided by the processor system shown in Fig. 6 is a motion vector field which includes a motion vector for each motion block the frame F<sub>k</sub>. As set forth above with reference to equations (7) and (8), the Hadamard matrix and thus the reference block and the search blocks may include different numbers of pixels in each of the horizontal and vertical directions. Thus, the processor shown in Fig. 6 may operate on a 4 x 4 block as well as on a 16 x 16 block. Because the Hadamard transform operation, as defined by equation (6), uses two Hadamard matrixes of different order, the processor shown in Fig. 6 may also operate on a 16 x 4 block or on an 8 x 16 block.
0051Figs. 8A and 8B illustrate the application of the subject invention to a hierarchical motion block search algorithm. In Fig. 8A, a motion block 140 including sixteen 8 x 8 blocks of pixel values is transformed using a 32 x 32 Hadamard matrix and matching blocks 150 and 152 in the prior frame 104 are also subject to a 32 x 32 Hadamard transformation. A mean absolute difference is calculated for each of the transformed blocks 150 and 152. Because block 150 has the same location in the prior frame 104 as block 140 has in the current frame 100, the displacement between block 150 and block 152 defines the motion vector for block 140. Alternatively, a motion vector may be calculated for the 32 x 32 block of pixel values by low-pass filtering the 32 x 32 block of pixel values and decimating the filtered pixel values to produce, for example, an 8 x 8 block of pixel values. The low-pass filtering of the 32 x 32 block of pixel values acts to reduce aliasing distortion when the filtered block is subsampled to produce the 8 x 8 block of pixel values. The 8 x 8 block of pixel values may then be subject to a Hadamard transformation and compared to similar filtered, decimated and transformed trial matching blocks to find the best match. The low-pass filters and decimators are not shown in the drawing figures.
0052The motion vector calculated as shown in Fig. 8A covers 4 macroblocks under the MPEG-2 standard. Using the motion vector 160 identified by the method disclosed in Fig. 8A, a motion vector for a single macroblock may be generated as shown in Fig. 8B. In Fig. 8B, when a single macroblock 170 is used as the motion block, the motion vector 160 may be used to limit the search area 106' that is used to locate the matching block in the prior frame 104. As shown in Fig. 8B, the blocks 172, 174, 176 and 178 may be identified as trial matching blocks.
0053According to the algorithm, a 16 x 16 Hadamard transform is applied to the motion block 170 and to each of the trial matching blocks 172, 174, 176, and 178. The transformed blocks are then compared using the minimum mean absolute difference algorithm as described above with reference to equations (9) and (10) in order to select one block in the search region 106' as the matching block of the motion block 170. As set forth above, instead of using a 16 x 16 block of pixel values and a 16 x 16 Hadamard transform, the algorithm may filter and decimate the 16 x 16 block to produce an 8 x 8 block and apply an 8 x 8 Hadamard transform to the motion block and to each of a set of similar filtered and subsampled trial matching blocks.
0054The algorithm described with reference to Figs. 8A and 8B employs Hadamard transforms of two different orders. In Fig. 8A, an order 32 Hadamard transform is performed. While in Fig. 8B an order 16 Hadamard transform is performed. As described above with reference to Figs. 2 though 5, the processing circuitry used to perform the Hadamard transform may employ different orders of Hadamard transforms at different times in its processing. It is further contemplated tat a single sequence of images may employ transforms of multiple orders. A high order transform may be used for large regions of the sequence of images which do not change significantly from image to image while a lower order Hadamard transform may be used in portions of the image which change more frequently. For example, in a news broadcast, the background may be encoded using relatively large order Hadamard transforms while the face of the newscaster is encoded using relatively low order Hadamard transforms.
0055In the motion estimation techniques described above with reference to Figs. 8A and 8B, the hierarchical motion estimation is from large blocks to small blocks. It is contemplated, however, that a hierarchical technique may also proceed from small blocks to large blocks. Fig. 9 is an image diagram which illustrates an exemplary motion estimation method in which the motion of small blocks is used to infer a motion vector for a larger block. In Fig. 9, a motion block 118 of the current frame 100 includes 4 subblocks 120, 122, 124, and 126. In the exemplary embodiment of the invention, separate motion vectors are determined for each of the sub blocks. This is illustrated in Fig. 9 in the search frame 104, the block 118' represents a block in the same position and the search image as the motion block 118 is in the current image. Once the motion vectors have been determined, the sub blocks 120, 122 and 126 of the motion block are mapped into sub blocks 120', 122' and 123' of block 130 in the search image while the sub block 124 is mapped into sub block 124' of the search block 132. As with the conventional block motion algorithms described above with reference to Fig. 1, the search area is limited to a region 106 of the search image 104. Because three of the sub blocks of the motion block mapped into matching block 130 while only one of the sub blocks mapped into block 132, block 130 is selected as the matching block for the motion block 118.
0056In the block matching method shown in Fig. 9, each of the sub blocks 120, 122, 124, and 126 is first subject to a Hadamard transform as are all of the sub blocks in the search area 106 of the search frame 104. The block matching algorithm described above is then applied on a sub-block basis in the search area 106 of the search image 104.
0057While the subject invention has been described in terms of exemplary embodiments, it is contemplated that it may be practiced as outlined above within the scope of the appended claims.
Contents4
27 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9 Sheet 10 Sheet 11 Sheet 12 Sheet 13 Sheet 14 Sheet 15 Sheet 16 Sheet 17 Sheet 18 Sheet 19 Sheet 20 Sheet 21 Sheet 22 Sheet 23 Sheet 24 Sheet 25 Sheet 26 Sheet 27
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| CN102845060A | Cited by | China | Search report |
| WO2011101442A3 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US7542614B2 | Cited by | United States of America | Applicant |
| US9609342B2 | Cited by | United States of America | Applicant |
| WO2011101442A2 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US9819358B2 | Cited by | United States of America | Applicant |
| US9819358B2 | Cited by | United States of America | Applicant |
| WO2008112315A3 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US7924316B2 | Cited by | United States of America | Applicant |
| US8724705B2 | Cited by | United States of America | Applicant |
| WO2011101452A3 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| WO2011101452A3 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US9078009B2 | Cited by | United States of America | Applicant |
| US7599566B2 | Cited by | United States of America | Applicant |
| WO2011101452A2 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US9313526B2 | Cited by | United States of America | Applicant |
| EP1833259A4 | Cited by | European Patent Office (EPO) | Search report |
| US8913661B2 | Cited by | United States of America | Applicant |
| CN102792688A | Cited by | China | Search report |
| US9609342B2 | Cited by | United States of America | Applicant |
| EP1833259A1 | Cited by | European Patent Office (EPO) | Search report |
| EP2944085A4 | Cited by | European Patent Office (EPO) | Search report |
| WO2008112315A2 | Cited by | World Intellectual Property Organization (WIPO) | International search |
| US6950495B2 | Cited by | United States of America | Applicant |
| US9609342B2 | Cited by | United States of America | Applicant |
| US7920746B2 | Cited by | United States of America | Applicant |
| US8681873B2 | Cited by | United States of America | Applicant |
| EP0639925A2 | Cites | European Patent Office (EPO) | Search report |
| EP0696002A2 | Cites | European Patent Office (EPO) | Search report |
| US5544263A | Cites | United States of America | Search report |
| US5815602A | Cites | United States of America | Search report |
11 members in 6 offices; this record represents the family
Priority claims2
| Document | Office | Kind | Date |
|---|---|---|---|
| 239089 | United States of America | – | |
| 23908999 | United States of America | A |
Members11
| Document | Office | Kind | |
|---|---|---|---|
| EP1024456A2This record | European Patent Office (EPO) | A2 | |
| CN1262496A | China | A | |
| JP2000222587A | Japan | A | |
| KR20000076522A | Republic of Korea | A | |
| EP1024456A3 | European Patent Office (EPO) | A3 | |
| KR100378902B1 | Republic of Korea | B1 | |
| US6625216B1 | United States of America | B1 | |
| JP2004229315A | Japan | A | |
| TWI224290B | Taiwan Province of China | B | |
| CN1179302C | China | C | |
| JP3768507B2 | Japan | B2 |
13 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Application deemed to be withdrawnWithdrawn18D | 18D | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWNSTAA | STAA | |
| Party data changed (applicant data changed or rights of an application transferred)RAP1 | RAP1 | |
| First examination report despatched17Q | 17Q | |
| First examination report despatched17Q | 17Q | |
| Designation fees paidDE FR GBAKX | AKX | |
| Request for examination filed17P | 17P | |
| Designated contracting statesAK | AK | |
| Request for extension of the european patentAL;LT;LV;MK;RO;SIAX | AX | |
| Search report despatchedORIGINAL CODE: 0009013PUAL | PUAL | |
| Designated contracting statesAK | AK | |
| Request for extension of the european patentAL;LT;LV;MK;RO;SIAX | AX | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI |
Numbers
- Publication
- 1024456
- Application
- 1001494
Titles3
- German
- Bewegungsschätzung in Orthogonaler Transformationsdomäne durch Blockübereinstimmung
- English
- Motion estimation using orthogonal transform-domain block matching
- French
- Evaluation de mouvement par correspondence de blocs de domaine d'une transformee orthogonale
Classification
- CPC, 5
- H04N19/547
- G06T7/00
- G06T2207/10016
- G06T2207/20048
- G06T7/238
- IPC, 6
- H04N7 32
- G06F17 14
- G06T7 00
- G06T7 20
- H04N7 01
- H04N7 26
Designated states25
- Contracting states, 19
- Austria
- Belgium
- Switzerland
- Cyprus
- Germany
- Denmark
- Spain
- Finland
- France
- United Kingdom
- Greece
- Ireland
- Italy
- Liechtenstein
- Luxembourg
- Monaco
- Netherlands (Kingdom of the)
- Portugal
- Sweden
- Extension states, 6
- Albania
- Lithuania
- Latvia
- North Macedonia
- Romania
- Slovenia