The invention relates to a segmentation unit for assigning a first pixel of a first image of a sequence of images to a segment.
The invention further relates to a method of assigning a first pixel of a first image of a sequence of images to a segment.
The invention further relates an image processing apparatus comprising:
Segmentation is an essential step in numerous image processing and pattern recognition tasks. Segmentation is a process of deciding, for pixels in an image, membership to one of a finite set of segments, where a segment is a connected collection of pixels. Membership can be decided on the basis of color, luminance, texture, or other attributes. The measure of correspondence between pixels is called homogeneity. Usually, the intended meaning of a segment is “the projected image of an object in the scene”.
For compression, depth or motion estimation, object tracking or other purposes of video segmentation, a segmentation process should ideally fulfill the following two requirements:
An embodiment of the method of the kind described in the opening paragraph is known from the article “Spatio-Temporal Video Segmentation Using a Joint Similarity Measure” by J. G. Choi et al., in IEEE Transactions on Circuits and Systems for Video Technology, vol. 7, no. 2, April 1997. This article describes a morphological spatio-temporal segmentation algorithm. The algorithm incorporates luminance and motion information simultaneously and uses morphological tools such as morphological filters and a watershed algorithm. The procedure towards complete segmentation consists of three steps: joint marker extraction, boundary decision, and motion-based region fusion. First, the joint marker extraction identifies the presence of homogeneous regions in both motion and luminance, where a simple joint marker extraction technique is proposed. Second, the spatio-temporal boundaries are decided by the watershed algorithm. For this purpose, a joint similarity measure is proposed Finally, an elimination of redundant regions is done using motion-based region fusion. The core of the algorithm is the joint similarity measure for the morphological spatio-temporal segmentation. The joint similarity measure for spatio-temporal segmentation is the weighted sum of the intensity difference plus the motion difference. It is defined as similarity:
Similarity=β(intensity difference)+(1−β)k motion difference (1)
where is k a scaling factor and β is a weighting factor. The weighting factor allows more importance to be given to the intensity difference or to the motion difference. The intensity difference is the gray tone difference between the pixel under consideration and the mean of the pixels that have already been assigned to the region. The motion difference is the motion error between the estimated motion vector at pixel (x, y) and the motion vector generated at pixel (x, y) by a motion model of the region. By incorporating spatial and temporal information simultaneously visually meaningful segmentation results can be obtained. However the algorithm does not perform well in the case that new objects come into the scene, i.e. it is not time stable.
It is an object of the invention to provide a segmentation unit of the kind described in the opening paragraph which is arranged to make a pixel accurate segmentation which is relatively time stable.
The object of the invention is achieved in that the segmentation unit for assigning a first pixel of a first image of a sequence of images to a segment comprises:
After the average homogeneity value has been calculated the comparing unit compares this average homogeneity value with a threshold. Depending on the type of homogeneity and on the type of segmentation, the first pixel is assigned to the segment if the average homogeneity value is above or below the threshold. The threshold might be a predetermined value. Preferably the threshold is calculated based on properties of the images to be segmented.
The assignment unit for assigning the first homogeneity value to the first pixel can be designed to calculate this value based on comparing luminance values or color values of pixels in the neighborhood of the first pixel, e.g. a variance value or a maximum operator or another nonlinear operator. However the luminance value or color value of a pixel might also be applied as a homogeneity value.
An embodiment of the segmentation unit according to the invention is arranged to calculate the average homogeneity value by also taking into account further homogeneity values of further images of the sequence. The advantage of this embodiment is that even more reduction of noise can be achieved. Preferably the segmentation unit is arranged to perform a recursive calculation of the average homogeneity value. This means that the average homogeneity value of a current image, e.g. the first image, is being calculated based on a homogeneity value related to this current image and an average homogeneity value being calculated for a previously calculated image. The advantage of a segmentation unit with a recursive approach is that relatively little memory is required to store further homogeneity values of further images.
In an embodiment of the segmentation unit according to the invention the averaging unit is arranged to calculate a weighted average homogeneity. For this purpose the averaging unit has an interface by which a weighting factor can be controlled. This weighting factor determines the ratio between the first homogeneity value and another homogeneity value in the weighted average homogeneity value. With another homogeneity value is meant e.g. the second homogeneity value or the further homogeneity values. The advantage of calculating a weighted average homogeneity value is that it allows to make a trade-off between a pixel accurate segmentation primarily based on a single image on the one hand and a time stable segmentation on the other hand based on multiple images.
An embodiment of the segmentation unit according to the invention is characterized in that the segmentation unit is arranged to control a weighting factor on a pixel base, with the weighting factor influencing the weighting for the calculation of the weighted average homogeneity value. The weighting factor might be fixed for a complete image. However, in the case that there is knowledge about the quality of the homogeneity value of a pixel in one of the images under consideration it is preferred that the averaging is adapted accordingly. With a quality indicator is also possible to indicate that there is no valid homogeneity value. This can e.g. happen in the case of occlusion of objects in the scene. e.g. the quality of a particular motion vector is a good indication for the quality of the homogeneity value of the corresponding pixel.
An embodiment of the segmentation unit according to the invention comprises a motion estimation unit for estimating the motion vector, with the motion estimation unit being controlled by the comparing unit. A motion estimation unit is required to provide motion vectors. In principle this might be any type of motion estimation unit, e.g. a block based motion estimation unit. But preferably the motion estimation unit is a segment based motion estimation unit. In this embodiment the output of the comparing unit, i.e. segments, are provided to the motion estimation unit in order to estimate relatively good motion vectors.
An embodiment of the segmentation unit according to the invention is characterized in comprising a motion estimation unit for estimating the motion vector and characterized in that the motion estimation unit is designed to control the weighting factor. As said above, the quality of motion vectors is an indication of the quality of the assigned homogeneity values. By providing indicators related to the quality of motion vectors to the averaging unit, the averaging unit is able to control the weighting factor.
Modifications of the segmentation unit and variations thereof may correspond to modifications and variations thereof of the method and of the image processing apparatus described.
These and other aspects of the segmentation unit, of the method and of the image processing apparatus according to the invention will become apparent from and will be elucidated with respect to the implementations and embodiments described hereinafter and with reference to the accompanying drawings, wherein:
Corresponding reference numerals have the same meaning in all of the Figures.
First a mathematical description of the working of the segmentation unit will be provided. Second, the tasks of the separate units 102-108 will be described briefly by means of the steps which are successively made by the segmentation unit 100.
Let Ht(x,y) denote the homogeneity value for image with index t at pixel position (x,y). In contrast with prior art segmentation methods the segmentation is not based on Ht(x,y), but on a quantity Ĥt(x,y) which is defined in Equation 2:
Ĥt(x,y)=α{tilde over (H)}t−1(x,y)+(1−α)Ht(x,y) (2)
where {tilde over (H)}t−1(x,y) is defined in Equation 3:
{tilde over (H)}t−1(x,y)=Ht−1(x+Δx,y+Δy) (3)
This means that for a particular pixel with coordinates (x,y) the motion compensated homogeneity value of the previous image and the homogeneity value of the current image are combined by means of calculating a weighted average.
Next, the tasks of the separate units 102-108 will be described briefly by means of the steps which are successively made by the segmentation unit 100. Images It−1, It, It+1, It+2, . . . are provided to the motion estimation unit 108 at the input connector 116 in order to calculate motion vectors. This gives for each pixel a motion vector (Δx,Δy). The images It−1, It, It+1, It+2, . . . are also provided to the input connector 110 of the segmentation unit 100. The assignment unit 102 assigns to each of the pixels of It a homogeneity value Ht(x,y). Then the averaging unit 103 calculates a weighted average homogeneity value Ĥt(x,y) by means of averaging the homogeneity value Ht(x,y) with a previously determined homogeneity value {tilde over (H)}t−1(x,y). The average homogeneity value Ĥt(x,y) is then provided to the comparing unit 106 for comparing the average homogeneity value with a threshold in order to assign the pixel with coordinates (x,y) to a particular segment. Optionally other segmentation steps are performed by the comparing unit 106, e.g. morphological operations, such as growing, erosion, dilatation. The segmentation result is a matrix of values indicating to which segment the corresponding pixels belong to. This segmentation result is provided at the output connector 112. The average homogeneity value Ĥt(x,y) is also provided to the motion compensation unit 104 in order to calculate {tilde over (H)}t(x,y), a motion compensated version of Ĥt(x,y) to be used for segmentation of succeeding images.
The averaging unit 103 comprises a control interface with connector 114 by means which an appropriate value of the weighting factor a can be provided. The value of α is between 0 and 1. In the case that α=0 the homogeneity values of other images are not taken into account for the segmentation of the current image. In the case that α=1 only the homogeneity values of other images are taken into account for the segmentation of the current image. Optionally this weighting factor α(x,y) is controlled on a pixel base. See
Ĥt(x,y)=α(x,y){tilde over (H)}t−1(x,y)+(1−α(x,y))Ht(x,y) (4)
The motion estimation unit 108 optionally comprises an output connector 113 at which the motion vector are provided too. That means that by means of this output connector other units than the motion compensation unit 104 can access motion vectors. In connection with
Alternatively the image processing unit 406 might be arranged to perform a depth estimation. It is known that the steps of a method of motion estimation may be followed by a calculating step to obtain a method of depth estimation. The following problem is considered: given a sequence of images of a static scene taken by a camera with known motion, depth information should be recovered. All apparent motion in the sequence of images results from parallax. Differences in motion between one segment and another indicate a depth difference. Indeed, analyzing two consecutive images, the parallax between a given image segment at time t and the same segment at t+1 can be computed. This parallax corresponds to the motion of different parts of the scene. In the case of translation of the camera, objects in the foreground move more than those in the background. By applying geometrical relations, the depth information can be deduced from the motion. This concept is described by P. Wilinski and C. van Overveld in the article “Depth from motion using confidence based block matching” in Proceedings of Image and Multidimensional Signal Processing Workshop, pages 159-162, Alpbach, Austria, 1998.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be constructed as limiting the claim. The word ‘comprising’ does not exclude the presence of elements or steps not listed in a claim. The word “a” or “an” preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitable programmed computer. In the unit claims enumerating several means, several of these means can be embodied by one and the same item of hardware.
Number | Date | Country | Kind |
---|---|---|---|
02075493 | Feb 2002 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB03/00186 | 1/23/2003 | WO | 00 | 8/3/2004 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO03/067868 | 8/14/2003 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6240211 | Mancuso et al. | May 2001 | B1 |
6252974 | Martens et al. | Jun 2001 | B1 |
6473461 | Wang | Oct 2002 | B1 |
6625333 | Wang et al. | Sep 2003 | B1 |
6853753 | Kimoto | Feb 2005 | B2 |
7120277 | Pelagotti et al. | Oct 2006 | B2 |
7245782 | Le Meur et al. | Jul 2007 | B2 |
8045812 | Friedrichs et al. | Oct 2011 | B2 |
20020076103 | Lin et al. | Jun 2002 | A1 |
20020180870 | Chen | Dec 2002 | A1 |
20020196362 | Yang et al. | Dec 2002 | A1 |
20030007667 | Ernst et al. | Jan 2003 | A1 |
20030035583 | Pelagotti et al. | Feb 2003 | A1 |
20030194151 | Wang et al. | Oct 2003 | A1 |
20050147170 | Zhang et al. | Jul 2005 | A1 |
20050264692 | Hoshino et al. | Dec 2005 | A1 |
20060110038 | Knee et al. | May 2006 | A1 |
20080107307 | Altherr | May 2008 | A1 |
20090060359 | Kim et al. | Mar 2009 | A1 |
20100271554 | Blume | Oct 2010 | A1 |
20100328532 | Wu et al. | Dec 2010 | A1 |
20130011020 | Kamoshida et al. | Jan 2013 | A1 |
Entry |
---|
I. Grinias et al, “A semi-automatic seeded region growing algorithm for video object localization and tracking”, Signal Processing: Image Communication, vol. 16, No. 10, Aug. 2001. |
“Spatio-Temporal Video Segmentation Using a Joint Similarity Measure” by J.G. Choi et al., in IEEE Transactions on Circuits and Systems for Video Technology, vol. 7, No. 2, Apr. 1997. |
Number | Date | Country | |
---|---|---|---|
20050129312 A1 | Jun 2005 | US |