Weighted median filter interpolator

Abstract: A weighted median filter interpolator for the interlaced to progressive conversion of video signals is proposed in which for example depending on the available or processable source fields the filter interpolator mode can be set to realize either a three-tap weighted median interpolator or a five-tap weighted median interpolator by respective selection of the weights such that the number of median samples to be processed at a certain time is always an odd number. An increased output quality is achieved if in the case of the five-tap weighted median IPC filter mode a three-dimensional filter aperture is set spreading over a horizontal, a vertical and a temporal dimension of three consecutive fields of an incoming interlaced video signal.

Description: The invention relates to a weighted median filter interpolator, in particular for an interlaced to progressive conversion process of video signals. Weighted median filters are known in the art (see e.g. Lit. [1]). They represent a more general approach to rank dependent median operators. The generalization relates to (a) sample dependent weight(s), which can be seen as a repetition operator of the respective samples. Following this understanding, a weight of "0" means, the respective sample is not considered in the ranking operation. Interlaced to progressive conversion refers to the problem of interpolating the missing lines in an interlaced scanned video signal by use of a signal interpolation algorithm (IPC algorithm) to represent a resulting signal in a progressive scan raster. More or less motion insensitive methods for the scan raster conversion have been proposed and are known (see e.g. Lit. [2] and [3]). For the IPC interpolation process, it is known to use so-called five-tap median filters. As disclosed in Lit. [2], the inputs to the filter are for example the corresponding pixels from the previous and the next frames, their linear average and the pixels from the line above and below. Similarly, three-tap median filters were also proposed for the 100 Hz interlaced to interlaced conversion (see Lit. [4]). Problems with the known or formally proposed filters are their poor behaviour in either the temporal domain, i.e. poor motion portrayal and remaining flicker artifacts in progressive display modes, or in the spatial domain the loss of resolution and fuzzy vertical edges. Further information regarding the prior art can be found in EP 0 629 083 which discloses an interlaced-to-progressive scanning converting apparatus and method having a double-smoothing function for preventing picture deterioration is provided wherein the scanning method for a television signal is converted from an interlaced scanning method into a progressive scanning method. The apparatus includes a double-smoothing circuit composed of a median-filter for median-filtering an interlaced scanning signal, a censoring means for censoring the median-filtered signal by a predetermined critical value, an order statistics filter for setting a predetermined weighting coefficient to the censored signal, and further includes an interlaced-to-progressive converter for the double-smoothed interlaced scanning signal into a progressive scanning signal. If there is no noise in the input signal, double-smoothing with respect to the input signal is omitted and only the interlaced-to-progressive conversion is performed. A combination of various filters can be embodied by an order statistics filter in accordance with the output of the censoring unit. EP 0 610 701 discloses that, when a digital video signal with the interlace ratio 2:1 is converted into a progressive video signal or into a video signal with the double field frequency, new lines are interpolated between the original lines of each received field by using some linear interpolation to generate each new pixel. However, the picture quality is not the best possible, because high frequency information is lost due to the characteristics of the interpolation. The picture can be essentially improved by supplying to a high-pass filter, for each interpolated pixel of the interpolated picture, that pixel in the previous original field having a position corresponding to the position of the interpolated pixel and the pixels above and below it. The filtered signal component obtained from the high-pass filter is added as high frequency information to the value of the interpolated pixel, obtained e.g. by averaging. US patent 5,126,843 teaches that, in an interpolation signal producing circuit, amplitudes of a plurality of proximate pixel signals are compared and the order of magnitudes of such pixel signals is determined, whereupon an interpolation signal is derived which is intermediate the largest and smallest amplitudes, for example, next to the largest or smallest amplitudes or an average thereof. The interpolation signal thus derived may be advantageously employed for subsampling, that is, doubling the number of pixels in each horizontal scanning line of a displayed video picture, for doubling the horizontal scanning lines in a field, or in compensating for drop-out and the like. Based on the known proposal of weighted median filter approaches, it is an object of the present invention to improve interpolation filters proposed for the interlaced to progressive conversion of video signals in the direction of more flexibility depending on available source fields at a certain time. A weighted median filter interpolator for the interlaced to progressive conversion of video signals is characterized according to the invention by means for adjusting specific filter modes by setting the weights such that the number of median samples to be processed at a certain time is always an odd number. Preferably, the weight of a single sample is either "0" or "1". As a most preferred embodiment, according to the invention a five-tap median filter is used of which the actual filter aperture depends on the selected filter mode defined by the respective number of sample weights according to the available source fields at a certain time. According to the invention a specific set of weights is selected to define a specific IPC interpolation filter. Thus a general IPC interpolation filter provides according to a selected mode a specific output quality depending on the available source fields. In particular, for a five-tap median interpolator, two sub-sets define two alternative interpolation filters included in a five-tap weighted median filter structure. For example, in the case of a five-tap weighted median IPC filter, a three-dimensional filter aperture is realizable spreading over a horizontal, a vertical and a temporal dimension of three consecutive fields of an incoming interlaced video signal, in particular if a spatial linear filter output sample is used. The actual filter aperture depends on the filter mode, and thus on the respective sample weights. The filter behaviour varies with the modes depending on the weights of the source signal samples, which preferably are a top pixel T, a bottom pixel B, a previous (field) pixel P, a successive (field) pixel S and a linear source signal sample, which preferably is a horizontal/vertical linear filter sample. The weight of a single sample can be either "0" or "1". The weight settings specified by the present invention are such that the number of median samples is always an odd number, i.e. preferably and in the case of a five-tap median filter "1", "3" or "5". By this selection according to the invention, the median operator becomes unambiguous. For example, if the number of weights = "1" is three, then the median is derived from these three samples, whereas if the number of weights = "1" is five, the median is derived from said five samples. Specific and advantageous embodiments of the invention and further details thereof are described in the following with reference to the accompanying drawings, which however are not to be understood as a limitation of the invention, the scope of which is defined by the main claim(s) and as the case may be by dependent claims in additional consideration of the general knowledge of the expert in this field of IPC Interpolation technology. Fig. 1 visualizes three vertical-temporal scan raster modules by use of a five-tap weighted median filter of which the filter apertures are defined by three different settings; Fig. 2 shows an IPC module with a five-tap weighted median operator in which the weights for all five-taps are set to "1"; Fig. 3 depicts an IPC module with realization of a three-tap median operator and selection of the weights to be "1" for a top pixel T, a bottom pixel B and a previous pixel P (see central part of Fig. 1); Fig. 4 shows an IPC module with realization of a three-tap median operator by selection of three weights to be "1", i.e. for consideration of a top pixel T, a bottom pixel B and a successor pixel S (see also right-hand picture part of Fig. 1); Fig. 5 visualizes a line delay scheme for an IPC filter synchronization with three and five weights of a multi-tap median operator being selected to be "1", respectively; Fig. 6 depicts the basic version of a functional operator scheme to generate the median output of five input values by sorting-out the maximum three times; and Fig. 7 shows a modified version of a five-tap median operator realizing an algorithm for finding out the median of five input values, one of which uses the output of linear filter part. In Fig. 1 to Fig. 4 the "center of gravity of the interpolator" or in other words the "center of filter operation" is underlayed and framed by a shaded area in each case. The left hand part of Fig. 1 shows the center of gravity to be applied to a five-tap median operator for which - in accordance with the invention - all weights are set to "1". Accordingly, the number of median samples is five. The filter accesses samples of three successive fields and the center of gravity is at the previous input field, thus causing a one-field output delay (see Fig. 2). For this "set 1" the median samples are taken from a top pixel T, a bottom pixel B, a previous (field) pixel P, a successive (field) pixel S and from a spatial linear filter output, in the present case a vertical filter sample FIR filtered according to the linear function FIR X = (T + B)/2 . As shown in Fig. 7, if compared against the basic version of a five input values median operator of Fig. 6, using the spatial linear filter output sample, two comparators may be saved thus simplifying the structure of the five-tap median operator, whereas in the case of Fig. 6 the median value is generated according to the function: MEDIAN (a, b, c, d, e) = MAX{MIN[MIN(a,W); MAX(X,Y)]; MAX[MIN(X;Y);Z]}, wherein W = MAX{b; MAX[c;MAX(d;e)]} X = MIN{b; MAX[c;MAX(d;e)]} Y = MAX{MIN[c;MAX(d,e)]; MIN(d;e)} Z = MIN{MIN[c;MAX(d,e)]; MIN(d;e)}. With the simplifying assumption a ≤ c ≤ e or e ≤ c ≤ d from Fig. 6, which leads to the following assumption in Fig. 7: T ≤ linear ≤ B or B ≤ linear ≤ T, the five-tap median operator of Fig. 7 is defined by the more simplified function: MEDIAN = MAX{MIN(W,X),MAX(Y,Z)}, wherein W = MIN{S, MAX[P,MAX(T,B)]} X = MAX{MIN[P,MAX(T,B]; linear} Y = MIN{MIN[P,MAX(T,B)], linear} Z = MIN{T,B}. Referring again to Fig. 1, the middle part of this figure visualizes as "set 2" a three-tap median mode using a previous field sample by setting three of five possible weights to "1" and two weights to "0", i.e. T = 1, B = 1, P = 1, S = 0, linear = 0. As shown in Fig. 3, thus an IPC module with a three-tap median operator is realized, which may be called a "three-tap median predecessor operator". Having again a look to the right hand part, Fig. 1 shows a third possible mode of operation by which the filter accesses samples of two successive fields and the center of gravity is at the current input field, thus causing no output delay. For this mode called "set 3", again three of the five possible weights are selected to be "1", i.e. T = 1, B = 1, S = 1, whereas two weights are set to be "0", i.e., P = 0 and linear = 0. As shown in Fig. 4, by this setting an IPC module is realized that may be called "three-tap median successor operator". The diagram of Fig. 5 visualizes the respective line and field delay(s) of each of the above explained IPC interpolation modes, i.e., for the three-tap median processor mode with case A: odd fields coming in, case B: even fields coming in; for the three tap median successor mode case C: odd fields coming in, case D: even fields coming in; and for the five-tap median mode with case E: vertical odd fields coming in, case F: even fields coming in. The fields with gray underlaying refer to the source lines needed for a respective IPC filter processing, whereas a vertical crossbeam indicates the respective fields to be interpolated. The shaded areas also indicate the filter apertures for each case and the respective delay for the incoming source lines is also shown. Using a weighted median filter interpolator according to the invention, the main advantages achieved are an improved IPC interpolation performance compared to median interpolators of the prior art and a higher flexibility for the adaptation to various source field situations. A particular advantage over prior art implementations is achieved with a three-dimensional filter aperture in the case where a linear sample used as one weight value for the median filter interpolator is generated as a spatial dimension sample. This is to be seen in contrast to the case in Lit. [2] where a linear sample generated as a purely temporal dimension sample is used as the fifth median sample. In this case, the temporal linear sample is derived as the average of the samples P and S. Prior Art Literature: Lit. [1] B. Arnold, N. Balakrishnan, H. Nagaraja: A first course in order statistics; JohnWiley & Sons, New York, 1992; Lit. [2] K. Oeistaemoe and Y. Neuvo: A Motion Insensitive Method for Scan Rate Conversion and Cross Error Cancellation; IEEE Transactions on Consumer Electronics, Volume 37, No. 3, August 1991, pp. 296 to 300; Lit. [3] US 5 483 288 Lit. [4] G. de Haan, P. Biezen, O. Ojo: An Evolutionary Architecture for Motion-Compensated 100 Hz Television, IEEE Transactions on Circuits and Systems for Video Technology, Volume 5, No. 3, June 1995, pp. 207 to 217.

Claims: A five-tap weighted median filter interpolator for converting an interlaced video signal to a progressive video signal, comprising: five taps for inputting a respective plurality of source signal samples from which a median output is derived; means for selecting a filter mode of said median filter interpolator from one or more filter modes by setting a weight for each of said source signal samples to either "0" or "1" such that the number of samples with corresponding "1" weights is always an odd number, wherein a filter aperture of said median filter interpolator depends on said selected filter mode; said source signal samples are a top pixel T, a bottom pixel B, a previous field pixel P, a successive field pixel S and a spatial linear filter output sample FIR X; and said one or more filter modes comprises a filter mode in which all five of said source signal samples are selected with the weight "1" and said spatial linear filter output sample is obtained via the function FIR X = (T + B)/2. The five-tap weighted median filter interpolator in accordance with claim 1, wherein said median output is derived in accordance with the function: MEDIAN=Max{Min(W,X); Max(Y,Z)}, wherein W=Min{S; Max[P; Max (T, B)]}; X=Max{Min[P; Max (T, B); FIR X}; Y=Min{Min[P,Max (T, B)], FIR X}; Z=Min{T, B}. The five-tap weighted median filter interpolator in accordance with claim 1 or 2, wherein said one or more filter modes comprises a filter mode in which a weight of three of said source signal samples is set to "1," and the weight of the other two source signal samples is set to "0." The five-tap weighted median filter interpolator in accordance with any of the preceding claims, wherein said one or more filter modes comprises a filter mode in which the weights of said source signal samples are T=1, B=1, P=1, S=0 and FIR X=0. The five-tap weighted median filter interpolator in accordance with any of the preceding claims, wherein said one or more filter modes comprises a filter mode in which the weights of said source signal samples are T=1, B=1, P=0, S=1 and FIR X=0. The five-tap weighted median filter interpolator in accordance with any of the preceding claims, wherein a weight of "0" indicates disregard of a respective source signal sample in derivation of said median output and a weight of "1" indicates regard of a respective source signal sample in derivation of said median output.

Inventors: ERDLER OLIVER, SCHWENDOWIUS JOERG, WAGNER PETER, ZIMMERMANN KLAUS, ERDLER, OLIVER, SCHWENDOWIUS, JOERG, WAGNER, PETER, ZIMMERMANN, KLAUS, Schwendowius, Jörg, c/o Sony Int. (Europe) GmbH, Wagner, Peter, c/o Sony Int. (Europe) GmbH, Zimmermann, Klaus, c/o Sony Int. (Europe) GmbH
Applicants: SONY INT EUROP GMBH, SONY INTERNATIONAL (EUROPE) GMBH
Application year: 1998
Main classification: H04N5
IPC codes: H04N5, G09G5, H04N7