Image preprocessing

阅读:900发布:2020-11-27

专利汇可以提供Image preprocessing专利检索,专利查询,专利分析的服务。并且Preprocessing for motion-compensated video encoding such as MPEG includes lowpass filtering, temporal (310) and/or spatial (312), locally per pixel in response to motion vector analysis and prediction error (304) and temporal change (306). This de-emphasizes image areas of rapid change which corresponds to human perception de-emphasis.,下面是Image preprocessing专利的具体信息内容。

What is claimed is:1. A method of preprocessing for motion-compensated video encoding, comprising: (a) providing a frame in a video sequence for motion-compensated encoding; (b) for a pixel in said frame, comparing a difference between (i) the value of said pixel and (ii) the predicted value of said pixel from motion compensation prediction of said frame to a first level; (c) when said comparing of step (b) indicates said difference is greater than said first level, apply lowpass filtering to said pixel; and (d) repeating steps (b)-(c) for other pixels of said frame; (e) motion-compensated encoding of said frame after said filtering. 2. The method of claim 1, wherein: (a) said filtering of step (c) of claim 1 is filtering is both spatial in said frame and temporal over other frames of said video sequence. 3. The method of claim 2, further comprising: (a) for said pixel, comparing said difference to a second level which is less than said first level; and (b) when said comparing of step (a) indicates said difference is greater than said second level but less than or equal to said first level, comparing the magnitude of the motion vector for the block containing said pixel to a first threshold; (c) when said comparing of step (b) indicates the magnitude of said motion vector is greater than said first threshold, spatial lowpass filtering to said pixel; and (d) wherein said step (e) of claim 1 encoding applies to said frame after filtering by both steps (b)-(d) of claim 1 and foregoing steps (a)-(c). 4. The method of claim 3, wherein: (a) said spatial filtering of step (c) of claim 3 depends upon the direction of said motion vector. 5. A method of preprocessing for motion-compensated video encoding, comprising: (a) providing a frame in a video sequence for motion-compensated encoding; (b) for a pixel in said frame, comparing a first difference between (i) the value of said pixel and (ii) the value of said pixel in a frame prior to said frame to a temporal threshold; (c) when said comparing of step (b) indicates said first difference is greater than said temporal threshold, comparing a second difference between (i) the value of said pixel and (ii) the predicted value of said pixel from motion compensation prediction of said frame to a first level; (d) when said comparing of step (b) indicates said second difference is greater than said first level, apply lowpass filtering to said pixel; and (e) repeating steps (b)-(d) for other pixels of said frame; (f) motion-compensated encoding of said frame after said filtering. 6. The method of claim 5, wherein: (a) said filtering of step (d) of claim 5 is filtering is both spatial in said frame and temporal over other frames of said video sequence. 7. The method of claim 6, further comprising: (a) for said pixel, comparing said second difference to a second level which is less than said first level; and (b) when said comparing of step (a) indicates said second difference is greater than said second level but less than or equal to said first level, comparing the magnitude of the motion vector for the block containing said pixel to a first threshold; (c) when said comparing of step (b) indicates the magnitude of said motion vector is greater than said first threshold, spatial lowpass filtering to said pixel; and (d) wherein said step (f) of claim 5 encoding applies to said frame after filtering by both steps (b)-(e) of claim 5 and foregoing steps (a)-(c). 8. The method of claim 7, wherein: (a) said spatial filtering of step (c) of claim 7 depends upon the direction of said motion vector.

说明书全文

CROSS-REFERENCE TO RELATED APPLICATIONS

&null;0001&null; This application claims priority from United States provisional patent applications serial no. 60/200,828, filed Apr. 28, 2000.

BACKGROUND OF THE INVENTION

&null;0002&null; The invention relates to electronic image methods and devices, and, more particularly, to digital communication and storage systems with compressed images.

&null;0003&null; Video communication (television, teleconferencing, Internet, digital camera, and so forth) typically transmits a stream of video frames (pictures, images) along with audio over a transmission channel for real time viewing and listening or storage. However, transmission channels frequently add corrupting noise and have limited bandwidth. Consequently, digital video transmission with compression enjoys widespread use. In particular, various standards for compression of digital video have emerged and include the various JPEG and MPEG standards.

&null;0004&null; Tekalp, Digital Video Processing (Prentice Hall 1995), Clarke, Digital Compression of Still Images and Video (Academic Press 1995), and Schafer et al, Digital Video Coding Standards and Their Role in Video Communications, 83 Proc. IEEE 907 (1995), include summaries of various compression methods, including descriptions of the JPEG, H.261, MPEG-1, and MPEG-2 standards

&null;0005&null; For encoding a single frame as in JPEG or an I frame in MPEG, Shapiro, Embedded Image Coding Using Zerotrees of Wavelet Coefficients, 41 IEEE Tr.Sig.Proc 3445 (1993) provides a wavelet hierarchical subband decomposition which groups wavelet coefficients at different scales and predicts zero coefficients across scales. This provides a quantization and fully embedded bitstream in the sense that the bitstream of a lower bitrate is embedded in the bitstream of higher bitrates.

&null;0006&null; Further compression can be achieved by segmenting a picture into subjectively important regions and unimportant regions and then reducing the number of information bits used for the unimportant regions. The segmenting into regions is a preprocessing operation as illustrated in FIG. 1; see Yoshihisa Yamada, Masahide Kaneko, Hiroshi Harashima: &null;MPEG Encoding Simulator for Enhancing the Image Quality by Manual Operation,&null; 1996 ITE Annual Convention, 23-5. In particular, functional block A partitions a frame (picture) into and combines regions. The method of extracting regions in an I picture is a manual processing operation, and in P and B pictures, manual processing operations only adjust detail point of results. Functional block B selects a type of preprocessing and sets up parameters for quantization in each region. Functional block C preprocesses by, such as, low pass filtering regions which an operator considers as needless. Several types of filter with different bandwidths are prepared and block C is able to choose one of them according to the importance of the region. Functional block D applies MPEG coding with quantization steps determined in each region.

&null;0007&null; One aspect of preprocessing by manual operation is that an operator can partition regions as he or she likes; however, the other aspect is that it takes time to operate so that it is not suitable for realtime MPEG encoding and that manual operation may cause inaccurate region segmentation. For example, FIG. 2 shows an image with a center of human which can be considered as subjectively important object. Therefore, we should partition the region between human and his background. However, the region boundary is extremely complex so that it is difficult to partition accurately. Even if the region is partitioned as blocks including its boundaries, it may cause noticeable block distortion. Therefore, it is difficult for this method to preprocess images such as this example.

&null;0008&null; Hardware and software implementations of JPEG, H.261, MPEG-1, and MPEG-2 compression and decoding exist. Further, programmable microprocessors or digital signal processors, such as the Ultrasparc or TMS320C6xxx, running appropriate software can handle most compression and decoding in real time, and less powerful processors may handle lower bitrate compression and decompression.

SUMMARY OF THE INVENTION

&null;0009&null; The present invention provides a preprocessing for a video sequence prior to motion compensation encoding with filtering in response to the temporal and spatial neighborhoods of a pixel and the motion compensation of the pixel's macroblock.

&null;0010&null; This has advantages including the control of preprocessing at each pixel in realtime to improve picture quality of MPEG or other motion compensated necoded and decoded images

BRIEF DESCRIPTION OF THE DRAWINGS

&null;0011&null; The figures are heuristic for clarity.

&null;0012&null; FIG. 1 shows known MPEG preprocessing.

&null;0013&null; FIG. 2 illustrates a picture with regions of differing importance.

&null;0014&null; FIG. 3 is a block diagram of a preferred embodiment preprocessor.

&null;0015&null; FIG. 4 shows motion vector decision regions.

&null;0016&null; FIG. 5 is a flow diagram.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

&null;0017&null; 1. First preferred embodiment

&null;0018&null; FIG. 3 illustrates a first preferred embodiment MPEG encoding preprocessing method which proceeds as follows. Input video signal (luminance plus chroma for a frame) enters interface functional block 302 which sends luminance signal and chroma signal to different blocks. Motion estimation functional block 304 receives luminance signal for the input frame and for each macroblock of the input frame outputs a motion vector and motion estimation residual just as in standard MPEG encoding; the output motion vector and residual are inputs for control block 308. Temporal difference detection functional block 306 calculates temporal difference in the luminance signal Y (i.e., difference of current input frame and the prior input frame) and outputs the difference for each pixel to control block 308. Control block 308 controls adaptive filters 310 and 312 plus motion estimation block 304. Filter 310 is a temporal low pass filter and filter 312 is a two-dimensional filter according to temporal differences, motion vectors, and motion estimation residuals. In particular, functional block 310 is a temporal low pass filter which filters in response to control signals from 308. Functional block 308 is a two-dimensional spatial low pass filter; it selects a two-dimensional filter according to size and direction of the motion vector. Functional block 314 delays chroma signal to synchronize it with luminance signal Y. Functional block H is an interface, which sends luminance signal Y and chroma signal to MPEG encoder. The net effect of this preprocessing is the filtering of the luminance signal Y by temporal low pass filter 310 and spatial low pass filter 312 prior to a standard MPEG encoding. The low pass filtering adapts to the macroblock being filtered, and in this manner the unimportant regions can be effectively simplified.

&null;0019&null; Control block 308 operates to control filters 310 and 312 as follows. Control block 308 uses three kinds of parameters to control filters 310 and 312: Motion vector v&null;(vx, vy) and motion estimation residual MR from Motion estimation block 304 plus temporal difference TD from temporal high pass filter 306. With respect to motion estimation residual MR (the difference between the pixel value and the predicted pixel value from the reference macroblock of the prior frame defined by the motion vector), predetermine a threshold of prediction error in advance in order that MR falls into one of three results: small, medium, or large. Control block 308 contains thresholds TA, TB, TC, and TD for the motion vector and threshold TT for temporal difference; these thresholds and the prediction error levels for small-medium and medium-large are programmed by the user. Then proceed as follows for each pixel of an input frame.

&null;0020&null; First consider the temporal difference TD and proceed as follows:

&null;0021&null; 1. If TD&null;TT, then the pixel can be considered as stationary in time and control blocks 310 and 312 to omit any filtering.

&null;0022&null; 2. If TD>TT, then consider the motion estimation residual MR at the pixel.

&null;0023&null; For this case 2, in the motion estimation residual MR of the macroblock including the pixel under consideration:

&null;0024&null; 3. If MR is small, then the motion prediction can be considered correct, so control blocks 310 and 312 to omit any filtering.

&null;0025&null; 4. If MR is large, then the motion prediction is not very reliable, so control blocks 310 and 312 to apply a narrow bandwidth lowpass filter.

&null;0026&null; 5. If MR is medium, then consider the motion vector v.

&null;0027&null; For this case 5, control block 308 classifies the motion vector v&null;(vx, vy) for the macroblock which includes the pixel under consideration into seven regions according to the motion vector size and direction as shown in FIG. 4:

&null;0028&null; If &null;vx&null;&null;&null;vy&null;&null;TA, then control block 312 to process a filter of class 1 (no filter)

&null;0029&null; Else if &null;vx&null;&null;&null;vy&null;&null;TB and TC&null;vx&null;&null;&null;vy&null;, then control block 312 to apply a filter of class 2.

&null;0030&null; Else if &null;vx&null;&null;&null;vy&null;&null;TB and TD&null;vx&null;&null;&null;vy&null;, then control block 312 to apply a filter of class 3.

&null;0031&null; Else if &null;vx&null;&null;&null;vy&null;&null;TB, then control block 312 to apply a filter of class 4.

&null;0032&null; Else if TC&null;vx&null;&null;&null;vy&null;, then control block 312 to apply a filter of class 5.

&null;0033&null; Else if TD&null;vx&null;&null;&null;vy&null;, then control block 312 to apply a filter of class 6.

&null;0034&null; Else, then control 312 to apply a filter of class 7.

&null;0035&null; The filters for the classes are as follows: class 1: no filter; class 2: spatial filter with narrow band lowpass only in x direction; class 3: spatial filter with narrow band lowpass only in y direction; class 4: spatial filter with narrow band lowpass in both x and y directions; class 5: same as class 2 but with narrower band; class 6: same as class 3 but with narrower band; and class 7: same as class 4 but with narrower band in both directions.

&null;0036&null; The spatial lowpass filters could be separable (a two-dimensional filter kernel equal to the product of an x-direction one-dimensional filter kernel and a y-direction one-dimensional filter kernel). And an example of a narrow band lowpass one-dimensional filter kernel could be the five-tap kernel &null;1/8, 2/8, 6/8, 2/8, &null;1/8 and an example of a narrower band lowpass one-dimensional filter kernel could be the nine-tap kernel &null;1/15, 0, 2/15, 4/15, 5/15, 4/15, 2/15, 0, &null;1/15. Of course, all sorts of other filter kernels could be used, such as the simple kernels of 1/N, 1/N, . . . , 1/N, with increasing N yielding progressively narrower bands. The temporal lowpass filter is just a one-dimensional filter and could be a simple kernel such as the three-tap 1/4, 2/4, 1/4 or two-tap 1/2, 1/2 or any of the one-dimensional kernels of the spatial filters.

&null;0037&null; For FIG. 4 the thresholds TC and TD are roughly 1/4 and 4, respectively, and the motion vector magnitude thresholds TA and TB could be 3-5 (pixel intervals) and 5-10, respectively. For luminance values in the range 0-255 the temporal threshold TT could be on the order of 5. A small MR could be (for luminance values in the range 0-255) less than on the order of 5 and large if greater than on the order of 50. Of course, all of these thresholds and sizes may be adjusted in response to the perceived quality and bits saved of various types of video sequences of interest.

&null;0038&null; FIG. 5 illustrates the decision flow for the division of the motion vector magnitude into three classes and as in FIG. 4. In FIG. 5 the &null;strong&null; filtering is narrower band than the other filterings.

&null;0039&null; 2. Illustration

&null;0040&null; As an illustration of the effects of the time and space filterings, first consider case of the motion vector falling into class 2 as shown in FIG. 4. This implies that the pixel's object is moving in a horizontal direction. Therefore, in this case, apply a two-dimensional lowpass filter with narrow bandwidth only in the horizontal direction. Analogously, in the case of the motion vector falling into class 5, apply a lowpass filter with horizontal bandwidth narrower than that for a class 2 motion vector pixel. In this design, the fact is used that human visual response becomes more inaccurate as an object moves faster. As for filters for pixels with motion vectors falling into class 4 and class 7, which indicate the object moves in diagonal directions, apply lowpass filters with especially narrower bandwidths because human visual system is less sensitive in diagonal directions as compared to horizontal and vertical direction even if the spatial frequency responses are the same.

&null;0041&null; In this way, the control block 308 enables the filtering of each pixel independently using parameters such as the temporal difference TD, the motion estimation residual MR, and the motion vector v through the temporal filter 310 and the two-dimensional filter 312 which make use of human visual system characteristics. Therefore, the preferred embodiment preprocessing can reduce information bits effectively, which allows for enhanced picture quality of MPEG and other motion compensated encoded and decoded images.

&null;0042&null; 3. Modifications

&null;0043&null; The preferred embodiments may be varied while retaining the feature of pixel based preprocessing adapted to a pixel's temporal and/or spatial neighborhood.

&null;0044&null; For example, the temporal difference detection may be omitted and the pixel neighborhood analysis started with the motion prediction error (residual); the motion vector magnitude could be measured by the sum of squares of the components or any analogous vector norm rather than the sum of absolute values; the threshold values could be varied according to frame parameters such as quantization level; the number of regions for classifying the motion vector could be increased or decreased, such as only four regions: small magnitude, primarily horizontal, primarily vertical, and diagonal; the inequalities used for decisions could be a mixture of (i) &null;less than&null; or (ii) &null;less than or equal to&null; and (iii) &null;greater than&null; or &null;greater than or equal to&null;, . . .

高效检索全球专利

专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。

我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。

申请试用

分析报告

专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。

申请试用

QQ群二维码
意见反馈