Joint spatial-temporal alignment of video sequences

Abstract: A joint spatial-temporal alignment of video sequences uses a subsampled version of a reference video sequence for correlation with a corresponding subsampled version of a test video sequence in an iterative manner. The subsampled reference video sequence is obtained by detecting a temporal transition field in the reference video sequence, and then selecting a pair of fields from the reference video sequence that straddle the transition field separated by a given number of fields (time interval). Then starting from a current field of the test video sequence a pair of fields is selected separated by the same number of fields and correlated with the subsampled reference video sequence. If the correlation criteria are not satisfied, the current field in the test video sequence is incremented by one and the correlation process repeated until spatial-temporal alignment is achieved.

Description: BACKGROUND OF THE INVENTION The present invention relates to the testing of video signals, and more particularly to a joint spatial-temporal alignment of video sequences that aligns a test video signal with a reference video signal for testing video fidelity. In video processing and/or transmission systems temporal latency and spatial shift may be introduced into the video signal. An example is a video transmission system using MPEG-2 compression for bandwidth reduction and digital bit stream transport. In order to test video signal fidelity of a video processing system, it is necessary to accurately align the signal under test to that of an original reference signal both spatially and temporally. The alignment task includes spatial and temporal shift detection and correction. A video sequence has sampled images equally spaced in time. For interlaced video each sampled image is called a video field. There are many alignment methods for two-dimensional images, such as the well-known phase correlation method for spatial shift detection, as discussed in "The Phase Correlation Image Alignment Method" by C.D. Kuglin and D.C. Hines, Jr. in the Proceedings of the IEEE 1975 International Conference on Cybernetics and Society, September 1975, pp. 163-165. The phase correlation method is based upon the fact that most of the information about the alignment between two images is contained in the phase of their cross-power spectrum. The discrete phase correlation function is obtained by first computing the discrete two-dimensional Fourier transforms, F1 and F2, of two sampled images, calculating the cross-power spectrum and extracting its phase for each frequency bin. The phase array is calculated by multiplying Fourier transform F1 and the conjugate of F2, and dividing by the magnitude of the product. By performing inverse Fourier transform of the phase array, a phase correlation surface is obtained. The location of the peak of the phase correlation surface provides information about the amount of the spatial shift between the two images: the height of the peak corresponds to the similarity of the two images. As an example of an ideal case, an image is shifted by a vector translation S, and equation (2) from the Kuglin et al article yields a unit height delta function centered at the location S of the correlation surface. For fractional pixel shift some form of curve fitting around the peak may be used to refine the peak location to fractional pixel precision. The phase correlation alignment method provides a basic tool for solving the problem of spatial-temporal alignment of video sequences. To detect spatial-temporal shift of the video sequences relative to each other, the ambiguities of spatial shift or temporal shift uncertainties that exist in certain video signals need to be considered. For example temporal shift may not be determined with certainty for static scenes. For video captured by perfect camera panning, the shift may be caused by either temporal or spatial shift. The ambiguity may be resolved only when significant spatial-temporal changes occur in the video sequences. Beakley G. et al: "Video Compression: The Need for Testing" SMPTE Journal, U.S. SMPTE Inc. Scarsdale, N.Y., Vol. 104, No. 11, 1 st November 1995, Pages 742-750, XP 000540389 ISSN: 0036-1682 discloses a two part spatial registration algorithm using a still frame of a real video test sequence, 2-D cross correlation and then horizontal sub-pixel registration. The reference uses the measured registration to spatially realign a degraded signal before computing degradation errors. What is desired is a joint spatial-temporal alignment of video sequences that resolves in a robust way the inherent ambiguities possible in the video sequences. SUMMARY OF THE INVENTION According to this invention there is provided a method as claimed in claim 1 herein. Thus, the present invention provides a joint spatial-temporal alignment of video sequences. Using a well-known phase correlation method for spatial shift a video field is detected where a temporal transition takes place by the sudden drop of correlation peak of the neighboring fields of the reference sequence. Two fields from the reference sequence are selected that straddle the transitional field, which serves as the basis for the joint spatial-temporal alignment detection. A field pair from the test sequence having the same temporal distance as the reference field pair is used to perform spatial alignment against the reference pair. The temporal alignment is found if the spatial shifts for the two pairs are the same and the sum of the correlation peaks exceed a certain minimum. In this way spatial and temporal alignment detection is carried out simultaneously, achieving economy of computation and reduction of ambiguities of spatial versus temporal alignment detection. The objects, advantages and other novel features of the present invention are apparent from the following detailed description when read in conjunction with the appended claims and attached drawing. BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING Fig. 1 is a block diagram view of a system for testing a video processing system using joint spatial-temporal alignment according to the present invention. Fig. 2 is an illustrative view of the joint spatial-temporal alignment of video sequences according to the present invention. DETAILED DESCRIPTION OF THE INVENTION Referring now to Fig. 1 a reference video sequence is input to a video processing system under test (SUT) 10 and to a spatial-temporal alignment processor 12 . The output from the video processing system under test 10 is a test video sequence that also is input to the spatial-temporal alignment processor 12 . The reference and test video sequences are output from the spatial-temporal alignment processor 12 , corrected for any spatial-temporal misalignment, and input to a fidelity test processor 14 . The fidelity test processor 14 provides an analysis of the degradation of the test video sequence from the reference video sequence caused by the video processing system under test 10 . The spatial-temporal alignment processor 12 and fidelity test processor 14 may be part of a test and measurement instrument 16 , such as the PQA200 manufactured by Tektronix, Inc. of Wilsonville, Oregon, USA. To solve the potential spatial-temporal ambiguities that may exist in the video signal, the first step is to find a video field R(T) in the reference sequence which contains a significant temporal transition. The temporal transition in the time domain is analogous to an edge signal in the spatial domain. By calculating phase correlation across neighboring fields in the reference, a sudden drop of the correlation peak magnitude indicates that a temporal transition has taken place. The transition may be due to switching from one camera to another in a multi-camera production, or some other scene change in the video signal. Instead of trying to correlate the whole or a long part of the reference and test video sequences, the reference video sequence is shrunk to two fields, R(L) and R(R), that bracket the transition field R(T), as shown in Fig. 2A. In fact the two fields form a subsampled video sequence from the original reference video sequence. As represented in Fig. 2B, the following operations are carried out repeatedly from the start of the test sequence until spatial and temporal shifts are found: (1) Two video fields, T(C) and T(C+K), from the test sequence with the same temporal distance K as between R(L) and R(R) are selected from a current field position T(C) and paired with the subsampled, two field, reference video sequence in temporal order -- the early field R(L) of the reference pair of fields is paired with the early field T(C) of the test pair of fields, and vice versa. (2) Spatial alignment is calculated for each pair to find the spatial shift and correlation magnitude. (3) If the spatial shifts are the same for the two pairs and the sum of the correlation magnitudes exceed a minimum threshold, then spatial-temporal alignment is achieved. Spatial shift has already been calculated and the temporal shift is found by the difference of the time codes between the respective reference and test field pairs. If the spatial-temporal alignment is not successful, then the test cycle repeats to step (1) with the advancement of the current position of the test sequence pair by one field. Thus the present invention provides a joint spatial-temporal alignment of video sequences by detecting a transition field in a reference video sequence corresponding to a scene change, selecting a pair of reference fields straddling the transition field as a subsampled reference sequence, and iteratively comparing two fields from a test sequence space apart by the same time as the reference sequence fields until spatial-temporal alignment is achieved.

Claims: A method of joint spatial-temporal alignment of a reference video sequence (R) with a test video sequence (T) comprising the steps of: detecting a temporal transition field (R(T)) in the reference video sequence (R); selecting as a subsampled reference video sequence a pair of fields (R(L), R(R)) from the reference video sequence that straddle the transition field separated by a given time interval (K); correlating a pair of fields (T(C), T(C + K)) from the test video sequence that are spaced apart by the given time interval (K) with the subsampled reference video sequence (R(L), R(R)), whereby the early field (R(L)) of the reference pair of fields is paired with the early field (T(C)) of the test pair of fields, and similarly the later field (R(R)) of the reference pair of fields is paired with the later field (T(C + K)) of the test pair of fields; and incrementing by one field the position of the pair of fields of the test video sequence and iterating the correlating step until the results of the correlating step meet specified criteria which indicate that spatial-temporal alignment has been achieved. The method as recited in claim 1 wherein each iteration of the iteratively correlating step comprises the steps of: calculating for each corresponding pair of fields (R(L), T(C); R(R), T(C+K)) a spatial shift and a correlation magnitude; determining a difference between the spatial shifts and a sum of the correlation magnitudes; and indicating spatial-temporal alignment when the spatial shifts are equal and the sum of correlation magnitudes exceeds a minimum threshold.

Inventors: HU SHANE CHING-FENG, HU, SHANE CHING-FENG
Applicants: TEKTRONIX INC, TEKTRONIX, INC.
Application year: 1999
Main classification: H04N17
IPC codes: H04N17