METHOD AND APPARATUS FOR DETECTING OCCLUSION

Abstract: The present invention provides a method and apparatus for detecting occluded areas in a video frame. A previous displacement vector field, DVF, is motion compensated (402) and used to provide an occlusion test parameter (404) which is compared to an optimal threshold (408) to detect occluded areas. The optimal threshold is calculated based on the previous DVF and a predetermined threshold (406).

Description: METHOD AND APPARATUS FOR DETECTING OCCLUSION Field of the Invention The present invention relates generally to video coding, and more particularly to using occlusion detection in video coding. Background of the Invention Very low bit rate, VLBR, coding of video necessitates the ultimate exploitation of implicit correlations present in images sequences in order to achieve targeted bit rates as low as 8 Kbits/sec, kbps. One of the most obvious correlations that all of today's codecs incorporate is the correlation of the intensity fields of two consecutive frames , i.e., the graceful motion of objects from one frame to another. The two most popular approaches to motion compensation are block-matching, BM, and spatio-temporal gradient techniques. While BM methods assume that all pixels in a given block move the same way, spatio-temporal gradient motion estimation algorithms minimize the displaced frame difference, DFD, at each pixel based on an initial estimate of the displacement vector field, DVF. One of the main differences between the two ME algorithms is that spatio-temporal gradient algorithms provide a dense vector field, i.e., one vector per pixel, while BM algorithms provide a coarse vector field, i.e., one vector per a block of pixels. One of the important existing challenges of any type of motion compensation is the accurate representation and compensation of information in the occluded areas of the image. Occluded areas are defined as the areas a) where the background part of the scene is covered by a moving object, and b) where the background part of the scene is uncovered by a moving object. The two problems associated with occluded areas are the detection and the efficient transmission of information in these areas. Most of the existing codecs today fail in these areas due to either inaccurate detection or inefficient encoding of the information in these areas. For instance, motion compensated discrete cosine transform (DCT) coding schemes, such as those specified by H.261. MPEG1, and MPEG2, take the brute force approach in which the occluded areas are simply encoded as part the DFD. However, since the characteristics of these areas are quite different than that of the typical motion compensation failures, such as the failures around moving edges, the occluded areas are transmitted inefficiently in terms of both the bit rate and the reconstructed image quality. On the other hand, object-based coding schemes take the approach of detecting and encoding the information in the occluded areas as a separate process from the DFD encoding process. These schemes, however, suffer from the inefficient encoding of information since they require the transmission of the position overhead for these areas. This overhead can be very costly in achieving the target bit rates. Currently, few approaches for the detection and transmission of the occluded area information in the context of very low bit rate coding have been reported. Most of the existing techniques take the approach of segmenting the scene into four regions; stationary background, moving object, covered background and uncovered background. According to these approaches, first a change detection mask is obtained based on two consecutive frames. Then motion estimation is performed resulting in a motion model for each object that is identified. Based on the change detection mask and the motion model the uncovered and covered regions are separated from the moving objects. However, these approaches have several disadvantages. First, either the position information of the detected occluded areas or the change detection mask along with the motion vectors must be transmitted over the channel in order for the decoder to generate the occlusion information according to the proposed algorithm. The position information, however, can be very costly depending on the amount of motion from one frame to another. Second, the proposed algorithms fail in detecting the uncovered areas in cases of sub-pixel motion since it simply considers the reverse motion in order to detect these areas. In order to get around that problem, for instance, backward motion estimation, i.e. from the current frame to the previous frame has been proposed; however, this process simply increases the computational expense substantially. Third, no consideration of the temporal continuity of motion between successive frames is incorporated into these algorithms. Fourth, such techniques tend to break down considerably in the presence of noise. Finally, these approaches make use of the intensity fields instead of the DVFs. However, this in turn can be the limiting factor in the performance of these approaches, since the characteristics of the occluded areas are captured more efficiently with the DVFs than the intensity fields due to the fact that occluded areas are inherently caused by inefficiencies in motion estimation and compensation. Thus, there is a need for a method and apparatus for the accurate detection of occluded areas based on the DVF to achieve the desirable reconstructed image quality at targeted very low bit rates. Brief Description of the Drawings FIG. 1 is a block diagram of a preferred embodiment of an apparatus for detecting occlusion in accordance with the present invention. FIG. 2 is a block diagram of a preferred embodiment of an apparatus for detecting occlusion and encoding the effected area in accordance with the present invention. FIG. 3 is a block diagram of a preferred embodiment of an apparatus for detecting occlusion and decoding the effected area in accordance with the present invention. FIG. 4 is a flow diagram of a preferred embodiment of steps of a method for detecting occlusion in accordance with the present invention. FIG. 5 is a flow diagram of a preferred embodiment of steps of a method for detecting occlusion and encoding the effected area in accordance with the present invention. FIG. 6 is a flow diagram of a preferred embodiment of steps of a method for detecting occlusion and decoding the effected area in accordance with the present invention. Detailed Description of Preferred Embodiments A video sequence consists of temporally sampled projections of a three dimensional, 3-D, scene onto the two dimensional, 2-D, image plane. The 3-D motion that occurs within this scene is captured as 2-D displacements of these projections. The displacement of a particular picture element, pixel, in the current 2- D image plane, can be represented by a vector which points to the location of the particular pixel in a previous image plane. This vector is referred to as the displacement vector and is represented by the symbol d k (r) , where the subscript k refers to the corresponding image frames acquired at time instants k and k - \. The vectors r and d k (r) contain horizontal, v, and vertical, x, components which span the two dimensional, 2-D, intensity frame using the upper left corner as the origin. The following notation is used for describing these vectors and their components, d k (r) = [d Xt (r),d yt (r)f. The displacement vector field, DVF, describes the motion of all pixels between a given set of image planes, and therefore represents the 3-D motion of objects projected onto the image plane. The present invention provides a method and apparatus for efficiently detecting occluded areas in a video frame. A previous DVF is used to provide an occlusion test parameter which is compared to an optimal threshold to detect occluded areas. By utilizing the previous DVF, this detection procedure can be performed in both the video encoder as well as the decoder, thus eliminating the requirement that the motion vectors be transmitted to the decoder. FIG. 1 , numeral 100, is a block diagram of a preferred embodiment of an apparatus for detecting an occlusion in accordance with the present invention. The apparatus comprises a motion compensation unit (102), an occlusion test parameter generator (104), an optimal threshold generator (106), and an occlusion comparison unit (108). The motion compensation unit (102) receives the previous displacement vector field, DVF, (110) for providing a predicted DVF (112). The predicted DVF (112) is the previous DVF (110) motion compensated by itself and takes the form: d k (r) = d^r - d^ir)) or χ k ( r ) = d x^ (x ~ d Xk i (x,y\y - d yt __ (x,y)) d yt (r) = d yt ι (x - d Xk x,y),y- d yk x,y)), where d k _ x (r) is the previous DVF (110) and d k {r) is the predicted DVF (112). The occlusion test parameter generator (104) receives the previous DVF (110) and the predicted DVF (112) for calculating an occlusion test parameter (114) based on the difference between the previous DVF (110) and the predicted DVF (112). The occlusion test parameter (114) is the absolute value of the difference between the previous DVF and the predicted DVF given by the following formula for each component: The optimal threshold generator (106) receives the previous DVF (110) and a predetermined threshold (116) for calculating an optimal threshold (118). The predetermined threshold (116) is equal to the ratio of the probability that a point in a video frame is stationary to the probability that it belongs to a moving object. The optimal threshold, T,, (118) for each component, , is given by the following formula: where T, is the predetermined threshold (116), o^ is a local variance, and σ g 2 is a global variance for each component. The local variance is calculated for each component using the following formula: where A and B define a predetermined local neighborhood of a pixel. The local neighborhood extends from B pixels to the left of pixel (i,j) to B pixels to the right and from A pixels below to A pixels above. The local mean, m d , for each component is given by: - m, j — n) . where m and n are integers. The global variance is calculated using the following formula: where and N define the boundaries of the entire predetermined intensity frame. The global mean, m , for each component is given by: 1 M-l N-l m e (r) = Σ ∑d k _ {i- m,j- n). Λ X N m =0n=0 The occlusion comparison unit (108) receives the occlusion test parameter (114) and the optimal threshold (118) to determine a presence of occlusion (120). Occlusion is detected when the occlusion test parameter (114) is greater than the optimal threshold (118). FIG. 2, numeral 200, is a block diagram of a preferred embodiment of an apparatus for detecting an occlusion, coupled to a occlusion DVF encoder, in accordance with the present invention. The apparatus comprises a motion compensation unit (202), an occlusion test parameter generator (204), an optimal threshold generator (206), an occlusion comparison unit (208), and an occlusion DVF encoder (210). The motion compensation unit (202), occlusion test parameter generator (204), optimal threshold generator (206), and occlusion comparison unit (208) operate as described above. The detected occlusion areas (220) are provided to the occlusion DVF encoder (210) along with the present DVF (224). The motion vectors contained in the present DVF (224) that correspond to the occluded areas (220) are encoded using entropy encoding and transmitted over the channel to the corresponding decoder unit (310). FIG. 3, numeral 300, is a block diagram of a preferred embodiment of an apparatus for detecting an occlusion, coupled to a occlusion DVF encoder, in accordance with the present invention. The apparatus comprises a motion compensation unit (302), an occlusion test parameter generator (304), an optimal threshold generator (306), an occlusion comparison unit (308), and an occlusion DVF decoder (310). The motion compensation unit (302), occlusion test parameter generator (304), optimal threshold generator (306), and occlusion comparison unit (308) operate as described above. The detected occlusion areas (320) are provided to the occlusion DVF decoder (310) along with the encoded DVF (324). The motion vectors contained in the encoded DVF (324) are decoded an placed into the corresponding occluded areas (320) . FIG. 4, numeral 400, is a flow diagram of a preferred embodiment of steps of a method for detecting occlusion in accordance with the present invention. The first step is motion compensating a previous displacement vector field, DVF, to provide a predicted DVF (402). The next step is calculating an occlusion test parameter based on the difference between the previous DVF and the predicted DVF (404). The occlusion test parameter is the absolute value of the difference between the previous DVF and the predicted DVF. At any time prior to the next step an optimal threshold based on the previous DVF and a predetermined threshold is calculated. (406). The optimal threshold includes calculating a local variance of the previous DVF and a global variance of the previous DVF. Then the occlusion test parameter is compared to an optimal threshold to determine a presence of occlusion (408). FIG. 5, numeral 500, is a flow diagram of a preferred embodiment of steps of a method for detecting occlusion in accordance with the present invention. The first step is motion compensating a previous displacement vector field, DVF, to provide a predicted DVF (402). The next step is calculating an occlusion test parameter based on the difference between the previous DVF and the predicted DVF (404). The occlusion test parameter is the absolute value of the difference between the previous DVF and the predicted DVF. At any time prior to the next step an optimal threshold based on the previous DVF and a predetermined threshold is calculated. (406). The optimal threshold includes calculating a local variance of the previous DVF and a global variance of the previous DVF. Then the occlusion test parameter is compared to an optimal threshold to determine a presence of occlusion (408). As a final step, the motion vectors from the present DVF contained in the areas determined to be occlusions are encoded are transmitted to the decoder (502). FIG. 6, numeral 600, is a flow diagram of a preferred embodiment of steps of a method for detecting occlusion and decoding the effected pixels in accordance with the present invention. The first step is motion compensating a previous displacement vector field, DVF. to provide a predicted DVF (402). The next step is calculating an occlusion test parameter based on the difference between the previous DVF and the predicted DVF (404). The occlusion test parameter is the absolute value of the difference between the previous DVF and the predicted DVF. At any time prior to the next step an optimal threshold based on the previous DVF and a predetermined threshold is calculated (406). The optimal threshold includes calculating a local variance of the previous DVF and a global variance of the previous DVF. Then the occlusion test parameter is compared to an optimal threshold to determine a presence of occlusion (408). As a final step, the motion vectors sent from the encoder are decoded and place in the areas determined to be occlusions (602). Although exemplary embodiments are described above, it will be obvious to those skilled in the art that many alterations and modifications may be made without departing from the invention. Accordingly, it is intended that all such alterations and modifications be included within the spirit and scope of the invention as defined in the appended claims.

Claims: Claims We claim: 1. A method for detecting occlusion, comprising: motion compensating, using a motion compensator, a previous displacement vector field, a previous DVF, to provide a predicted DVF; calculating an occlusion test parameter, using an occlusion test parameter generator, based on a difference between the previous DVF and the predicted DVF; calculating an optimal threshold, using an optimal threshold generator, based on the previous DVF and a predetermined threshold; and comparing, using an occlusion comparison unit, the occlusion test parameter to an optimal threshold to determine a presence of occlusion. 2. The method according to claim 1, wherein at least one of 2A-2H: 2A) the occlusion test parameter is an absolute value of the difference between the previous DVF and the predicted DVF; 2B) calculating the optimal threshold includes calculating a local variance of the previous DVF and a global variance of the previous DVF; 2C) the occlusion test parameter and the optimal threshold are compared; 2D) further comprising encoding a present displacement vector field, DVF, based on the presence of occlusion; 2E) further comprising decoding an encoded displacement vector field, DVF, based on the presence of occlusion; 2F) the steps of the method are embodied in a tangible medium of/for a Digital Signal Processor, DSP; 2G) the steps of the method are embodied in an Application Specific Integrated Circuit, ASIC; and 2H) the steps of the method are embodied in a gate array. 3. The method of claim 1 wherein the steps of the method are embodied in a tangible medium of/for a computer. 4. The method of claim 3 wherein the tangible medium is a computer diskette. 5. The method of claim 3 wherein the tangible medium is a memory unit of the computer. 6. An apparatus for detecting occlusion, comprising: a motion compensation unit, operably coupled to receive a previous displacement vector field, a previous DVF, for providing a predicted DVF; an occlusion test parameter generator, operably coupled to receive the previous DVF and operably coupled to the motion compensation unit, for calculating an occlusion test parameter based on a difference between the previous DVF and the predicted DVF; an optimal threshold generator, operably coupled to receive the previous DVF and a predetermined threshold, for calculating an optimal threshold: and an occlusion comparison unit, operably coupled to the occlusion test parameter generator and the optimal threshold generator, for comparing the occlusion test parameter to an optimal threshold to determine a presence of occlusion. 7. The apparatus according to claim 6 wherein at least one of 7A-7G: 7A) wherein the occlusion test parameter is an absolute value of the difference between the previous DVF and the predicted DVF; 7B) the optimal threshold generator includes a local variance calculator and a global variance calculator; 7C) further comprising an occluded DVF encoding unit, coupled to the occlusion comparison unit, for encoding a present displacement vector field, DVF, based on the presence of occlusion; 7D) further comprising an occluded DVF encoding unit, coupled to the occlusion comparison unit, for decoding an encoded displacement vector field, DVF. based on the presence of occlusion; 7E) the apparatus is embodied in a tangible medium of/for a Digital Signal Processor, DSP; 7F) the apparatus is embodied in an Application Specific Integrated Circuit, ASIC; and 7G) the apparatus is embodied in a gate array. 8. The apparatus of claim 6 wherein the apparatus is embodied in a tangible medium of/for a computer. 9. The apparatus of claim 8 wherein the tangible medium is a computer diskette. 10. The apparatus of claim 8 wherein the tangible medium is a memory unit of the computer.

Inventors: BRAILEAN JAMES C, KATSAGGELOS AGGELOS K, OZCELIK TANER, BRAILEAN, JAMES, C., KATSAGGELOS, AGGELOS, K., OZCELIK, TANER
Applicants: MOTOROLA INC, MOTOROLA INC.
Application year: 1996
Main classification: H04N7
IPC codes: G06T7, H04N5, H04N7