MOTION ESTIMATION AND SEGMENTATION

Abstract: A method and a device for simultaneous motion estimation and segmentation based on the Hough transform and using statistical kernels. The method improves the performance obtained with existing techniques by only updating the scale after every k step at a finer resolution. Also, at a coarser resolution a non-iterative technique is applied, which is switched to a Hough transform technique at a finer resolution stage. Other advantageous features for improving the convergence and performance are also described. Such features include the use of scaled derivatives in the iteration process and keeping track of the value of the error function in order to provide a good starting point for iterations on finer resolutions.

Description: MOTION ESTIMATION AND SEGMENTATION TECHNICAL FIELD The present invention relates to a method and a device for simultaneous motion estimation and segmentation of digitized images, in particular moving pictures. BACKGROUND OF THE INVENTION AND PRIOR ART In compression of digitized motion pictures the use of motion estimation is a widely used and powerful tool. One commonly used technique for motion estimation is Block Matching (BM) and variants, see for instance A.N. Netravali, B. G. Haskell "Digital Pictures Representation, Compression and Standards", Plenum Press, ISBN 0-306-44917-X. Block matching techniques usually make the following assumptions: 1) A block moves with translational motion in the image plane. 2) There is only one moving object within a block. 3) The intensities of the pixels are preserved in time. There are several problems with the Block Matching technique and its variants: i) They give an erroneous estimate if a block covers several moving objects or uncovered background. ii) They are sensitive to noise in the input frames. iii) The accuracy of the estimate is generally poor, especially if no sub-pixel matching is performed. If subpixel matching is performed the technique is computationally expensive and real-time implementation is difficult to obtain. iv) The estimate is poor for blocks moving with non-translatory motion. v) The estimates are sensitive to illumination changes. Other frequently used techniques for motion estimation are based on phase-correlation. Their deficiencies are similar to the ones of block matching, i.e. a poor estimate accuracy and robustness to noise, and inability to cope with complex motions, i.e. non- translational and ultimodal motions. Another possible technique is to perform motion estimation based on an image which has been segmented into regions. The image can for example be segmented into regions of slowly varying intensity. A region based technique, which is conceptually based on the Hough transform and uses Robust Statistical Kernels has been presented in the papers M. Bober and J. Kittler, "Robust Motion Analysis", in the CVPR Conference proceedings, 1994, pages 947-952; M. Bober and J. Kittler, "Estimation of Complex Multi-modal Motion: An Approach based on Robust Statistics and Hough Transform", Proceedings of the British Machine Vision Conference, 1993 pages 239-248 and M. Bober and J. Kittler, "Estimation of general multimodal motion: an approach based on robust statistics and Hough transform", Image and Vision Computing, 1994, vol 12, No 12, pages 661-668, which are incorporated herein by reference. This method performs simultaneous motion estimation and segmentation by iteratively maximising the support defined by a sum of errors weighted by a robust kernel between two regions: one in a reference frame and the other in the consecutive frame. The position and size of the reference block are arbitrary, whereas the position of the consecutive region is determined by a geometric transformation of the reference block. This prior art technique is also illustrated by the flow diagram in fig. 8, which shows how input frames are low-pass filtered in a block 801. Then a coarse resolution is set in a block 803, and motion parameters are initialised in a block 805. Thereafter derivatives are calculated in a block 807, which are used for updating the estimate in a block 809. Based on the estimate a new scale is computed in a block 811. After this it is checked in block 813 if the path has retraced. If that condition is false the process returns to the block 807, else a new check is made in a block 815 if the finest resolution is reached. If that is the case the process is terminated in a block 819, and else the resolution is changed to a finer resolution in a block 817 and then the process returns to the block 807. The parameters of the transformation which maximise the support measure are assumed to describe the motion of the block or image. According to the prior art technique described in the papers by M. Bober and J. Kittler, cited above, the statistical properties of the transformed frame difference are computed after each iteration and the shape of the kernel function is adjusted accordingly. Contributions to the support measure from pixels with large motion compensation errors are weighted down or removed by the robust kernel. Such pixels usually belong to objects moving independently or a covered/occluded background and are termed outliers. Thus, a mechanism for simultaneous motion estimation and segmentation is introduced by the robust kernel. The technique described in the above cited prior art papers solved some of the problems associated with the block matching and correlation-based techniques. Hence, the technique can cope with non-translatory motions, e.g. affine models, and with multiple moving objects within a block. However, the technique still exhibits several deficiencies, such as failing to converge for regions with complicated motions and still being computationally expensive. SUMMARY OF THE INVENTION It is an object of the present invention to overcome the problems associated with the prior art technique and to increase its robustness and the quality of the motion segmentation. This object is obtained by adding new steps and by modification of some parts of the prior art technique. In particular, the invention aims at solving the problem with the convergence of the prior art technique as described in the above cited papers by M. Bober and J. Kittler, and to increase the computational efficiency thereof. According to the invention, a modified gradient-based search technique is used and the centre of the coordinate system is placed in the centre of the region, image or block, where the estimation is applied. The use of such modified gradients, i.e. gradients scaled by different factors reduce the number of iterations needed, and thus also the complexity of the technique. It also improves the convergence, i.e. the modified search is more likely to converge to the true motion parameters. Further, the median absolute deviation is used in the prior art technique as scale estimate. This has turned out to cause problems with convergence and accuracy. When there is only one moving object within a block, during iterations on finer resolutions, the values of scale become very small and many pixels, which are not outliers, are removed from the estimation process. To overcome this deficiency, a small constant is added to the MAD (Median Absolute Deviation) estimate of scale. Further, in the prior art technique, the scale of residual errors has to be recomputed after each update of motion parameters. This has been found to be very inefficient, and the efficiency of the method has been found to be significantly improved by introducing the following modification. When iterations proceed on the coarse resolution in the parameter space, the scale is updated after each step. However, on finer resolutions, i.e. subpixel resolution in case of a translational motion model, the scale is only updated every k steps, k being an integer greater than one. Moreover, the optimisation on the discrete grid, as described in the prior art, does not specify how to select a good starting point for the iterations after a change of resolution in the parameter space. The description only defines the condition for change of the resolution in the parameter space when the path retraces. It has now been found that if during iterations, a record of the point in the parameter space corresponding to the lowest value of the error function is saved and used as the starting point at finer resolution, a significant improvement of the computational efficiency is obtained. In addition, a good iteration termination condition is not stated in the prior art. However, it has been found that the iteration can be terminated, and provide a good result when one of the following conditions is fulfilled: i) the number of iterations at a given resolution exceeds the iteration threshold, or ii) the value of the median estimate of scale is below the scale threshold, or iii) the path is retraced on the finest resolution. Furthermore, the speed and convergence of the prior art technique have been found to be possible to improve, e.g. for sequences with large motion. In order to improve the speed and convergence, a hybrid scheme where the initial estimate at coarse resolution is determined by a non-iterative technique, such as the phase-based technique, can be used. That is, first at the low resolution stage a fast non-iterative technique is used. Then, at the medium or fine resolution stages the modified Hough Transform using Robust Statistical Kernels is used. Further, the prior art technique is only applied to a block, i.e. regions of rectangular size, and the centre of the coordinate system is placed in the corner of the image. However, it has been found that the framework is not limited to block shaped regions, but can be extended to regions of any shape. In the latter case, the placement of the centre of the coordinate system however becomes crucial for the performance of the technique. It has been found that by using the centre of gravity of the reference region as the origin of the coordinate system, a good performance is obtained. Further, in the prior art technique, it is not specified what the specific resolution for motion parameters al..a6 nor what the relation between parameters should be. A solution to this problem is to relate the resolution in parameter space to the maximum displacement which the estimator is expected to estimate and to the size of the region. Finally, the accuracy of the prior art technique has been found to be improved by prefiltering the initial image with a low-pass filter, preferably Gaussian shaped, and then storing the resulting image in an array with increased dynamic range. All successive processing is performed on the images stored with increased dynamic range. The technique can employ any parametric motion model. It is particularly suited to be used in: 1) a translational motion model, that is : dx = a * dy = a 2 2) a four-parameter motion model, that is: dx = a 1 x - a 2 y + a 3 dy = a 2 x + a^ ^ y + a 4 3) an affine motion model, that is: dx = a^x + a 2 y + 3 dy = a 4 x + a 5 y + a 6 Where dx, dy are the components of the displacement vector d = (dx, dy) for a pixel at location (x, y) , and where a = ( a^ -.a 6 ) are the motion parameters. DESCRIPTION OF THE FIGURES The present invention will now be described in more detail by way of a non-limiting embodiment, and with reference to the accompanying drawings, in which: - Fig. 1 is a general block diagram. - Fig. 2 shows the steps involved in the preprocessing block of fig. 1. - Fig. 3 shows the Robust Hough Transform Block of Fig. 1 in more detail. - Fig. 4a and 4b show different segmentations of an image and the position of the coordinate system. - Fig. 5a - 5d show the operation of a parameter space memory, and the decision mechanism. - Fig. 6 shows an example how the resolutions in the image and parameter space are changed. - Fig. 7 is an example of the values of k's for various combinations of resolutions. - Fig. 8 is a general flow diagram of the prior art technique. DESCRIPTION OF A PREFERRED EMBODIMENT Figure 1 depicts a general block diagram of the technique. It consists of three main processing blocks to which consecutive images are fed: - a Preprocessing Block (PB) 101, - a Robust Hough Transform Block (RHTB) 103, and - a Postprocessing Block (PPB) 105 The steps involved in these processing blocks will be explained in more detail below. Figure 2 illustrates the steps carried out in the preprocessing block 101. Firstly, several consecutive digitized images 201 are low-pass filtered by a low-pass filtering module (LPM) 203, where the filter used preferably is Gaussian shaped, and the result is stored with increased dynamic resolution. Thus, the LPM 203 performs low-pass filtering (smoothing) of the images. For example, the images are convolved with two separable 3 tap filters having the coefficients {1/4, 1/2, 1/4} in the x and y directions. The number of times the image passes the filter depends on the image resolution, for example 2 passes for QCIF and three passes for a CIF resolution can be used. If the input image is integer valued and represented by 8 bpp, the output image from the low-pass filter is float valued, due to the fact that the filter coefficients are float valued. For example, the input image grey-levels are stored as 8 bits as in the case shown by Fig. 2, i.e. dynamic range 0 - 255, then the low-pass filtered image is stored as a 12 bits image, i.e. an image having 12 bpp, in a memory 207, whereby the information of the float values of the float valued output image can be used in the further processing. Secondly, a Gaussian pyramid formed by images subsampled to different spatial resolutions (Srn, .., Sr2, Sri) is constructed, where Sri is the original spatial resolution. This is performed by recursive filtering in the LPM module 203 and subsa pling of each of the images in the subsampling module (SSM) 205. The results of the subsampling (se, sf) , i.e. the subsampled versions at different spatial resolutions (Sr2,..., Srn) of the original images are stored in corresponding memories. Thus, as illustrated in the figure, first the low-pass filtered image (sc) is subsampled in the SSM module 205. The result (se) is stored in a memory 209. The subsampled image (sd) is also fed back to the LPM module 203 and low-pass filtered again, subsampled and stored in a memory 211. The process can then continue in this manner until a desired number of resolutions is obtained. A Gaussian pyramid is constructed by recursively subsampling the low-pass filtered image by a factor of 1, both horizontally and vertically, i.e. the value of a certain pixel within a 1 x 1 block is selected to represent the entire l x l block. The process of filtering and subsampling is performed (n - 1) times, where n is the number of resolutions in the pyramid. Any pixel from the l x l block can be chosen to represent the subimage at different degrees of resolution. However, the choice should be consistent, e.g. the upper left pixel can be chosen. The number of spatial resolutions used (n) depends on the initial resolution of the image and the expected range of motion. For example, for the Common Interchange Format (CIF) image size two resolutions could be used (n = 2) , and a subsampling factor equal to four (1 = 4) . Motion estimation and segmentation take place in the Robust Hough Transform Block (RHTB), which is illustrated in Figure 3. The following procedure can be applied either to the entire image, see Fig 4a, or to several regions of arbitrary shape (A,B,C, . .) one at a time, as shown in Fig. 4b. The initial segmentation into regions can be based on image intensity (colours) or motion based segmentation calculated by the RHT technique from previous frames can be used. The Robust Hough Transform Block 103 comprises a Hough Transform Module (HTM) 301, a Decision Module (DM) 303, a Control Module (CM) 305 and a Scale Estimation Module (SEM) 311. The control module 305 has an overall control of the estimation process and performs the following tasks: - Selection of the initial values of the parameters used in the estimation process, namely the spatial resolution of the images (Sr) and the initialisation value for motion parameters (Sp) . The initial spatial resolution is set by means of the switch swl controlled by the CM module 305 via a signal on the line (sw) . Depending on which spatial resolution is set by the CM module 305 the images corresponding to that particular spatial resolution (Sr) are fed to the HTM module 301 on the line (sg) . The initialisation value for motion parameters is sent to the DM 303 on a line (sp) . - Changes to the spatial resolution of images used for estimation during the iterative process. Once the estimation at spatial resolution (Sr) is completed, which is detected by the DM module 303, a signal from the DM 303 is issued on the line (so) to the CM module. The CM module 305 then checks for a termination condition. If a condition is fulfilled, the estimation process is completed. Otherwise, images at a finer spatial resolution are selected by means of signalling on the line (sw) to the switch swl, and the process then continues. - Deciding when the estimate of scale (su) should be updated and informing the SEM module 311 via signal (st) to recalculate the scale. The CM module 305 counts the number of iterations, each iteration is signalled via line (so) from the DM module 303, and compares the count with a threshold, which is depending on both the current spatial resolution (Sr) and the current parameter resolution (Pr) . The decision at which spatial resolution the estimation should start depends on whether any a priori information on motion of the region is available. The estimation usually starts at a coarse or medium spatial resolution, i.e. at resolution Srn, where n>l, unless a motion parameter initialisation value (sr) is available. The initialisation value sr may be based on the estimate from a neighbouring block or region, or other motion estimator may be used to obtain a coarse estimate of motion. When initialisation is available, the estimation may start at the coarsest (Srn) , medium (Sr (n-l) , ... , Sr2) or finest spatial resolution (Sri). The DM module 303 performs two tasks: 1) it selects the resolution in the parameter space (Pr) , and 2) it controls the iterative process by updating the values of motion parameters and detecting the termination condition. The HTM module 301 computes the value of support (sk) as described in M. Bober and J. Kittler, "Robust Motion Analysis", in the CVPR Conference proceedings, 1994, pages 947-952, and the derivatives (si) of the support surface (Hough surface) for a given value of motion parameters (sm) , which are provided by the Decision Module (DM) 303. Values of support (sk) and derivatives (si) , which preferably are scaled according to the paragraphs below, are passed back to the Decision Module DM 303 for analysis. The DM module updates the estimate of value of the motion parameters (sm) and detects the termination condition which is signalled on the line (so) to the CM module 305. The motion analysis usually starts on a coarse resolution in the parameter space (Pr) . The motion parameters (sm) are initially set to either no-motion case or to some initialisation value (sp) . The DM module 303 decides on the update of the motion parameters, i.e. the next position in the parameter space as illustrated by Fig. 5c. This decision is based on the value of the partial derivatives dH^ on line (si) calculated by the HTM module 301 as: The values of each partial derivative dH^ is scaled by means of factors, which are dependent on the spatial extension of a current region, and in a preferred embodiment factors, t^, t 2 , t 3 , t 4 and t 5 , computed as follows are used in the different models as described below. ∑(pe9ϊ) 1? where 9? is a set of all pixels included in the estimation, that is all pixels, p = (x, y) , from a region except outliers, and x and y being the pixel location in the x and y directions of a coordinate system. The scaled derivatives dHN^ are then computed as follows: For the translational motion case, no scaling is performed. For the four parameter motion model case: dHN-, ^ = dH- L /t-, ^ ; dHN 2 = dH 2 /t 2 ; dHN 3 = dH 3 /t 3 dHN 4 = dH 4 /t 3 and for the affine motion model: dH η^ = dH χ /t 4 ; dHN 2 = dH 2 /t 5 ; dHN 3 = H 3 /t 3 dHN 4 = dH 4 /t 4 ; dHN 5 = dH 5 t 5 ; dHN g = dH 6 / 3 By performing the scaling of the partial derivatives in the manner shown above, a much faster and more reliable convergence is obtained. This is due to the fact that if un-scaled derivatives are used, the search tend to favour (be more sensitive to) certain parameters, i.e. a^, a 2 for the four parameter motion model and a j _, a 2 , a 4 , and a 5 for the affine model. These parameters are over-compensated, i.e. they are changed very often and the search routine has to perform many iterations in order to return to the optimal values. There is also an alternative scaling procedure which has been proved to produce good results and which is more computationally efficient. In this alternative procedure each partial derivative dH^ is scaled by a factor corresponding to the current resolution in the parameter space, in particular a multiplication with the current resolution r^ in the parameter space for the corresponding parameter a^. Such scaling is then performed instead of the above described scaling with the factors t-^ - t 5 . The scaled partial derivatives form a gradient vector vd = (dHN lf ..., dHN-j) in the parameter space, see Fig. 5c. There are 3 possible decisions on update in each component of motion vector. These decisions are: increase, no change or decrease the value of a component. Thus, there are 3 N -1 possible directions, N being the number of motion model parameters, since there must be at least one change. For example for the translational motion model (N = 2) there are 8 possible decisions. A set of basis vectors {b , ..., b s }, where s = 3N - 1, is constructed, each vector being associated with one possible direction. Each vector b 1 = (b-, 1 , , where N = 2 for the translational motion model, N = 4 for the four parameter motion model and N = 6 for the affine model, is constructed as follows. The component b-^ 1 has a value of -1, 0, or 1 depending on whether the decision involves decrease, no change, or increase in the corresponding component of the motion vector a = (a^..,). Each vector b 1 is then normalised so that the norm equals 1. Fig. 5d shows all vectors b 1 for the translational motion model. For example, for the four parameter motion model and the following decision: [a-^ - no change, a 2 - increase, a 3 - decrease, a 4 - no change], the corresponding vector b 1 = w * (0, 1, -1, 0) where w = 1/sqrt ( 0 2 + l 2 + (-1) 2 + 0 2 ) In each iteration the best decision is selected, that is the one which maximises the scalar product of vd and b 1 , i.e. maximises the following expression: M 1 = vd • b 1 The HTM module 301 also provides an Outlier Map 307 and a Transformed Frame Difference Map (TFD) 309. The values of the TFD Map 309 (si) are passed to the SEM module 311, which calculates a scale of residual errors (su) , if requested by the CM module 305. The scale of the residual errors does not have to be recomputed after each iteration step. By calculating and updating the value of the scale every k steps, where k is an integer greater than one, the computational complexity can be reduced. The value of the parameter k depends on the resolution in the parameter space and suitable values for k are shown on Fig. 7, and will be further discussed below. Also, in order to improve the speed and convergence, a hybrid scheme where the initial estimate at coarse resolution is determined by a non-iterative technique, such as the phase-based technique, can be used. That is, first at the low, coarse resolution stage a fast non-iterative technique is used. Then, at the medium or finest resolution stages the modified Hough Transform using Robust Statistical Kernels is used. The Segmentation Map, i.e. the Outlier Map 307 is a binary image with a symbol, indicating if the pixel is considered to be an inlier or outlier, attached to each pixel. Whether a pixel is an inlier or an outlier depends on the value of the TFD map 309 for that pixel and the current value of the scale estimate (su) . The TFD map is a float valued image with the transformed frame difference for each pixel calculated for the current value of motion parameters (sm) . In order to determine if a pixel is an outlier, the following operations are performed in a preferred embodiment. The absolute value (abs) of the TFD value for a given pixel is compared to the current value of the scale estimate. If abs (TFD-value) is greater than 3 * the scale estimate (sea) , where sea is defined below, the point is considered an outlier, else it is considered to be an inlier. A Parameter Space Memory, which is a part of the DM module, records all positions visited in the parameter space and the corresponding support. Each new position in the parameter space is checked against this list, shown in Fig. 5b. If this position has already been visited, i.e. the positions for which calculations have been made, see positions S3, s7 in Fig. 5a, this fact is detected by the decision module, and a change of the resolution in parameter space follows, i.e. to a finer resolution. Estimation continues at a finer resolution, starting from a position with the greatest support, that is position s5 in the case shown. The starting position has been shown to be very important for the performance of the technique and by using the point having the greatest support as a starting point the performance is increased. The CM module 305 decides whether to continue motion estimation on a sequence with finer spatial resolution Sr . Once the finest resolution is reached, this fact is signalled to the control module 305 (CM) via a signal (so) .The process is terminated if one of the following criteria is fulfilled: - the processing on the finest spatial resolution Sri is completed, or - if the number of iterations on the fine resolution exceeds the iteration threshold, or - if the value of the median estimate of scale as defined hereinafter is below the scale threshold. For example, the values of the thresholds can be selected as: Iteration threshold 200 iterations Scale threshold 0.35 grey-level where 0 denotes black and 255 denotes white in the grey-scale. If continuation is selected, motion parameters from the coarser spatial resolution are transformed to the finer resolution and used as initialisation parameters (sp) . The optimisation search for the maximum in the parameter space is performed iteratively, and during the optimisation process motion parameters can only take discrete values. Such an optimisation process is herein referred to as an optimisation on a discrete grid. The coarseness of the discrete grid, i.e. the resolution in the parameter space, can be different for different motion parameters. The maximum displacement of an object, object size and the resolution in the parameter space should preferably be related as explained in the following paragraph. The following tables show the preferred values for the different parameters, which have been found to provide good convergence, for a translational, four parameter motion model and affine motion model. Translational motion model: Four parameter motion model Affine motion model: where d [pixels] is the displacement, i.e. the maximum translation for any pixel from the region, or maximum expected pixel displacement, for example most coding techniques limit such displacement to 16 pixels for CIF images, and M [pixels] is the average pixel distance from the centre of the coordinate system calculated for all pixels within a region. An example how the resolutions in the image (Srn) and parameter space (Prn) are changed is shown in Figure 6. This example assumes the translational motion model, with two spatial resolutions Sri - original resolution, and Sr2 - the original image subsampled by four. In the example there are four resolutions in the parameter space: Prl equal to 1.25, Pr2 equal to 0.25, Pr3 equal to 0.05 and Pr4 equal to 0.01. The estimation starts at coarse resolutions both in the image space (Sr2) and in the parameter Space (Prl) , shown at position 1 on the graph. In the next step, the resolution in the parameter space is increased to 0.25 (Pr2) , shown at position 2. Since this is the finest resolution in the parameter space for this spatial resolution (Sr2) , the estimation at this spatial resolution is completed. This fact is signalled on line (so) to the Control Module CM 305 which decides whether to continue the estimation on a finer resolution in the image space. In the example the estimation process continues at spatial resolution Sri, positions 3, 4 and 5, after the CM module 305 has signalled to the switch swl via the line (sw) that the spatial resolution Sri now is to be fed to the HTM module 301. The SEM module 311 recomputes the scale of residual errors at each request on the request line (st) from the Decision Module 303. The scale can be updated after every iteration or each k iterations, where k can vary depending on the spatial and parameter resolution. The estimate of scale, i.e. the scale of residual errors, is calculated as the Median Absolute Deviation (MAD) as defined in M. Bober and J. Kittler, "Robust Motion Analysis", in the CVPR Conference proceedings, 1994, pages 947-952, and increased by a constant C, i.e.: scale estimate: sea = 1.48 * median ( | e (d^) - median (e (d^) | ) + C The value of the constant C is preferably 0.3, which by means of experiments has been found to be a suitable value. The maximum value of the scale estimate is usually around 10, but can theoretically be more, when the estimation starts and has a lower limit at C, which in this example is equal to 0.3. Figure 7 illustrates an example of the values of k's for various combinations of the resolutions in the image space Sr and in the parameter space Pr . The estimate of scale is returned to the HTM module, through the signal (su) . Once the estimation is terminated by the CM module 305, the estimator in the HTM module 301 outputs the motion parameters (sh) and the Outlier map (sj). The outlier map is analyzed for large spatially coherent region (s) of outliers. The presence of such regions signals multiple motions. If motion of such remaining regions is of interest, the estimation process can be restarted solely for these remaining region (s) . The analysis for large spatially coherent region (s) is performed by means of majority filtering, which works in the following manner: - First a window size is chosen, in the preferred case a window size of 3 x 3 or 5 x 5 is chosen. - Then this window is centred around each pixel in the image and the number of outliers within the window is counted. - If the number of outliers is greater than half of the number of pixels in the window, i.e. greater than 4 or 12 for the 3 x 3 or 5 x 5 window, respectively, then the considered pixel is determined to be an outlier and is labelled accordingly. - Else the pixel is labelled inlier. The inlier region is usually the largest one and the estimated motion parameters correspond to its motion. Finally, it has been found that the framework as described herein is not limited to block shaped regions, but can be extended to regions of any shape. However, in the latter case, the placement of the centre of the coordinate system has turned out to be crucial for the performance of the technique. It has been found that by using the centre of gravity of the reference region as the origin of the coordinate system, good performance is obtained. In the technique, the optimisation procedure becomes very fast. This is due to the fact that an exhaustive search, which is used for instance by Block Matching techniques, is avoided. The proposed modifications improve speed and convergence of the technique. The accuracy of the final estimate is also improved. Some of the changes make real time implementation feasible. The technique described herein has a broad use in the image compression and coding domain.

Claims: CLAIMS 1. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, characterized in that the motion estimates are updated based on scaled derivatives, the scaling factors being dependent on the spatial extension of a current region, and in particular calculated as follows: for the four-parameter motion model: dHN χ = ; dHN 2 = dH 2 /t 2 ; dHN 3 = dH 3 /t 3 dHN 4 = dH 4 /t 3 and for the affine motion model: dHN j^ = dH χ /t 4 ; dHN 2 = dH 2 /t 5 ; dHN 3 = dH 3 /t 3 dHN 4 = dH 4 /t 4 ; dHN 5 = dH 5 /t 5 ; dHN 6 = dH 6 /t 3 Where the factors t-^ - t 5 are computed as follows: ∑( P ε9ϊ) ' where 3} is a set of all pixels included in the estimation, that is all pixels from region except outliers. 2. A method according to claim 1, characterized in - that when iterations are performed in a coarse resolution of a parameter space, the resolution scale is updated after each step, and - that at some stage, when a finer resolution is obtained the resolution scale is only updated after every k steps, where k is an integer > 1. 3. A method according to claim 2, characterized in that first, at a coarse resolution, a non-iterative technique is used, and then at a finer resolution stage a Hough transform using robust kernels is used. 4. A method according to any of claim 2 or 3 , characterized in that the point parameter space corresponding to the lowest value of the error function is used as starting point for finer resolution iteration. 5. A method according to any of claims 2 - 4, characterized in that the iteration is stopped when the number of iterations on a fine resolution exceeds the iteration threshold, or the value of the median estimate of scale is below the scale threshold, or the path is retraced on the fine resolution. 6. A method according to any of claims 1 - 5, characterized in that the point parameter space corresponding to the lowest value of the error function is used as starting point for iterations at a finer resolution. 7. A method according to any of claims 1 - 6, characterized in that the iteration is stopped when the number of iterations on a fine resolution exceeds an iteration threshold, or the value of the median estimate of scale is below a scale threshold, or the path is retraced on the finest resolution. 8. A method according to any of claims 1 - 7, characterized by adding a constant to the MAD estimate of scale. 9. A method according to any of claims 1 - 8, characterized in that first, at a coarse resolution, a non-iterative technique is used, and then at a finer resolution stage a Hough transform using robust kernels is used. 10. A method according to any of claims 1 - 9, in the case when regions of other shapes than rectangular shapes are used, characterized in that the centre of the coordinate system is chosen as the centre of gravity of the reference region. 11. A method according to any of claims l - io, characterized in that the resolution in the parameter space is related to an expected maximum value of displacement and to the size of the region and that this relation is preserved at each spatial resolution. 12. A method according to any of claims 1 - 11, characterized in that the initial image is prefiltered with a low-pass filter, in particular a Gaussian shape filter and stored in an array having an increased dynamic range. 13. A method according to any of claims 1 - 12, characterized in that the motion estimates are updated based on scaled derivatives, where the scaling factors for the partial derivatives dH^ are factors corresponding to the current resolution in the parameter space, in particular a multiplication with the current resolution r^ in the parameter space for the corresponding parameter a^, so that dHN^ = dH^ * r i- 14. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, characterized in that the motion estimates are updated based on scaled derivatives, where the scaling factors for the partial derivatives dH^ are factors corresponding to the current resolution in the parameter space, in particular a multiplication with the current resolution r^ in the parameter space for the corresponding parameter a^, so that dHN^ = dH^ * r i- 15. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, characterized in - that when iterations are performed in a coarse resolution of a parameter space, the resolution scale is updated after each step, and - that at some stage, when a finer resolution is obtained the resolution scale is only updated after every k steps, where k is an integer > 1. 16. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, characterized in that the point parameter space corresponding to the lowest value of the error function is used as starting point for iterations at a finer resolution. 17. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, characterized in that the iteration is stopped when the number of iterations on a fine resolution exceeds an iteration threshold, or the value of the median estimate of scale is below a scale threshold, or the path is retraced on the finest resolution. 18. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, characterized by adding a constant to the MAD estimate of scale. 19. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, characterized in that first, at a coarse resolution, a non-iterative technique is used, and then at a finer resolution stage a Hough transform using robust kernels is used. 20. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, in the case when regions of other shapes then rectangular are used, characterized in that the centre of the coordinate system is chosen as the centre of gravity of the reference region. 21. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, characterized in that the resolution in the parameter space is related to an expected maximum value of displacement and to the size of the region and that this relation is preserved at each spatial resolution. 22. A Hough transform based method of motion estimation and segmentation using robust statistical kernels, characterized in that the initial image is prefiltered with a low-pass filter, in particular a Gaussian shape filter and stored in an array having an increased dynamic range. 23. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, characterized by means for updating the motion estimates based on scaled derivatives, where the scaling factors are dependent on the spatial extension of a current region, and in particular for calculating them as follows: for the four-parameter motion model: dHN-L = dH 1 /t 1 ; dHN 2 = dH 2 /t 2 ; dHN 3 = dH 3 /t 3 dHN 4 = dH 4 /t 3 and for the affine motion model: where the factors t-^ - t 5 are computed as follows: λ ' where 9? is a set of all pixels included in the estimation, that is all pixels from region except outliers. 24. A device according to claim 23, characterized by means for updating the resolution scale after each step when iterations are performed in a coarse resolution of a parameter space, and for only updating the resolution scale after every k steps, where k is an integer > 1, when a finer resolution is obtained. 25. A device according to claim 24, characterized by means for deciding that first, at a coarse resolution, a non-iterative technique is used, and then at a finer resolution stage a Hough transform using robust kernels is used. 26. A device according to any of claims 24 or 25, characterized by means for choosing the point in the parameter space corresponding to the lowest value of the error function as a starting point for finer resolution iteration. 27. A device according to any of claims 24 - 26, characterized by means for stopping the iteration when the number of iterations on a fine resolution exceeds the iteration threshold, or the value of the median estimate of scale is below the scale threshold, or the path is retraced on the fine resolution. 28. A device according to any of claims 23 - 27, characterized by means for choosing the point parameter space corresponding to the lowest value of the error function as starting point for finer resolution iteration. 29. A device according to any of claims 23 - 28, characterized by means for stopping the iteration when the number of iterations on a fine resolution exceeds a iteration threshold, or the value of the median estimate of scale is below a scale threshold, or the path is retraced on the finest resolution. 30. A device according to any of claims 23 - 29, characterized by means for adding a constant to a MAD estimate of scale. 31. A device according to any of claims 23 - 30, characterized by means for first applying a non-iterative technique, at a coarse resolution, and then at a finer resolution stage applying a Hough transform using robust kernels. 32. A device according to any of claims 23 - 31, in the case when regions of other shapes then rectangular are used, characterized by means for choosing the centre of the coordinate system as the centre of gravity of the reference region. 33. A device according to any of claims 23 - 32, characterized by means for relating the resolution in the parameter space to an expected maximum value of displacement and to the size of the region. 34. A device according to any of claims 23 - 33, characterized by means for prefiltering an initial image with a low-pass filter, in particular a Gaussian shape filter and for storing thereof in an array having an increased dynamic range. 35. A device according to any of claims 23 - 34, characterized by means for updating the motion estimates based on scaled derivatives, where the scaling factors are corresponding to the current resolution in the parameter space, in particular a multiplication with the current resolution r^ in the parameter space for the corresponding parameter a^, so that dHN^ = dH^ * r i- 36. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, characterized by means for updating the resolution scale after each step when iterations are performed in a coarse resolution of a parameter space, and for only updating the resolution scale after every k steps, where k is an integer > 1, when a finer resolution is obtained. 37. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, characterized by means for choosing the point parameter space corresponding to the lowest value of the error function as starting point for finer resolution iteration. 38. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, characterized by means for stopping the iteration when the number of iterations on a fine resolution exceeds a iteration threshold, or the value of the median estimate of scale is below a scale threshold, or the path is retraced on the finest resolution. 39. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, characterized by means for adding a constant to a MAD estimate of scale. 40. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, characterized by means for first applying a non-iterative technique, at a coarse resolution, and then at a finer resolution stage applying a Hough transform using robust kernels. 41. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, in the case when regions of other shapes then rectangular are used, characterized by means for choosing the centre of the coordinate system as the centre of gravity of the reference region. 42. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, characterized by means for relating the resolution in the parameter space to an expected maximum value of displacement and to the size of the region. 43. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, characterized by means for prefiltering an initial image with a low-pass filter, in particular a Gaussian shape filter and for storing thereof in an array having an increased dynamic range. 44. A device for performing simultaneous motion estimation and segmentation based on the Hough transform using robust statistical kernels, characterized by means for updating the motion estimates based on scaled derivatives, where the scaling factors are corresponding to the current resolution in the parameter space, in particular a multiplication with the current resolution r^ in the parameter space for the corresponding parameter a^, so that dHN^ = dH^ * r^.

Inventors: BOBER MIROSLAW, KITTLER JOSEF, BOBER, MIROSLAW, KITTLER, JOSEF
Applicants: BOBER MIROSLAW, ERICSSON TELEFON AB L M, KITTLER JOSEF, BOBER, MIROSLAW, KITTLER, JOSEF, TELEFONAKTIEBOLAGET LM ERICSSON
Application year: 1997
Main classification: G06T7
IPC codes: G06T7