Skip to main content

Digital video stabilizer by adaptive fuzzy filtering

Abstract

Digital video stabilization (DVS) allows acquiring video sequences without disturbing jerkiness, removing unwanted camera movements. A good DVS should remove the unwanted camera movements while maintains the intentional camera movements. In this article, we propose a novel DVS algorithm that compensates the camera jitters applying an adaptive fuzzy filter on the global motion of video frames. The adaptive fuzzy filter is a simple infinite impulse response filter which is tuned by a fuzzy system adaptively to the camera motion characteristics. The fuzzy system is also tuned during operation according to the amount of camera jitters. The fuzzy system uses two inputs which are quantitative representations of the unwanted and the intentional camera movements. The global motion of video frames is estimated based on the block motion vectors which resulted by video encoder during motion estimation operation. Experimental results indicate a good performance for the proposed algorithm.

1. Introduction

Digital video stabilization (DVS) techniques have been studied for decades to improve visual quality of image sequences captured by compact and lightweight digital video cameras. When such cameras are hand held or mounted on unstable platforms, the captured video generally looks shaky because of undesired camera motions. Unwanted video vibrations would lead to degraded view experience and also greatly affect the performances of applications such as video encoding [14] and video surveillance [5, 6]. With recent advances in wireless technology, video stabilization systems are also considered for integration into wireless video communication equipments for the stabilization of acquired sequences before transmission, not only to improve visual quality but also to increase the compression performance [1]. Solutions to the stabilization problem involve either hardware or software to compensate the unwanted camera motion. The hardware-based stabilizers are generally expensive and lack the kind of compactness that is crucial for today’s consumer electronic devices [7, 8]. On the contrary, a DVS system that is implemented by software can easily be miniaturized and updated. Consequently, DVS system is suitable for portable digital devices, such as digital camera and mobile phone.

In general, a DVS system consists of two principal units including motion estimation (ME) and motion correction (MC) units. The ME unit estimates a global motion vector (GMV) between every two consecutive frames of the video sequence. Using the GMVs, the MC unit then generates smoothing motion vectors (SMVs) needed to compensate the frame jitters and warp the frames to create a more visual stable image sequence.

According to the motion models being considered, the already proposed global ME techniques for DVS system can roughly be divided into two categories: (1) two-dimensional stabilization techniques which deal with translational jitter only [920] and (2) multi-dimensional stabilization techniques which aim at stabilizing more complicated fluctuations in addition to translation [2125]. Most of the existing algorithms fall into the first category because the translation is the most commonly encountered motion and the complexity of estimating translation parameters is relatively low for real-time stabilization.

Regarding to the ME task of DVS systems, most previous approaches attempt to reduce the computational cost by using fast ME algorithms, e.g., gray-coded bit-plane matching [9], two-bit transform [10], multiplication-free one-bit transform [11], Laplacian two-bit transform [12], and binary image matching of color weight [13]. In another approach, the global ME is limited to small, pre-defined regions [16, 17]. Such approaches consider DVS and video encoding separately and attempt to trade the accuracy of motion vectors (MVs) for the computational efficiency; nevertheless they improve the computational efficiency at the expense of degradation in the accuracy in ME and thereafter in MC tasks.

Since both the video encoder and the digital stabilizer of a digital video camera use a ME unit, we can integrate digital stabilizer with video encoder [2, 4, 26] by making the two modules of a digital video camera share a common local motion vectors (LMVs) estimation process, as shown in Figure 1. The ME task in video encoders usually is implemented on frame blocks by a block matching process to estimate anMV for each block (BMV).

Figure 1
figure 1

Integration scheme of the video stabilizer and the video encoder.

In video frames with smooth or complex texture regions, the estimated BMVs may not be in coincidence with the real motion of the blocks. Although such LMVs are applicable to the local motion compensation task which is executed in the encoder, they cannot be used for the global motion compensation which is executed by the DVS. These LMVs include some noises that degrade the global ME task. In order to remove the noisy LMVs in these regions some algorithms are proposed in [2730]. The valid BMVs as LMVs are used for the global ME and MC compensation in next steps.

After global ME, the next essential task of a DVS system is MC in which the unwanted camera jitters are separated and removed from the intentional camera movement. Among the various MC algorithms proposed in the literature, smoothing of the GMV by low-pass filtering is the most popular. For instance, anMV integration method is used in [9, 31] which utilizes a first-order infinite impulse response (IIR) low-pass filter to integrate differential motion and to smoothen the global movement trajectory. A frame position smoothing (FPS) algorithm, based on smoothing absolute frame positions that achieve successful stabilization performance with retained smooth camera movements, is utilized for MC in [17, 3239]. Off-line discrete Fourier transform (DFT) domain filtering is proposed for FPS-based stabilization in [32]. Kalman filter and fuzzy systems have widely been used in DVS applications [3339]. Real-time FPS-based stabilizer using Kalman filtering of absolute frame positions has been proposed in [17, 33]. It is shown that the stabilization performance can be improved by a fuzzy adaptive Kalman filter; introducing a stabilization system that is adjusted according to the camera motion characteristics in [34]. Fuzzy stabilization systems improve the stabilization performance when their membership functions (MFs) are optimized to motion dynamics [35]. A membership selective fuzzy stabilization, in which the stabilization system selects between a pre-determined set of MFs according to instantaneous motion characteristics is proposed in [36]. A MF adaptive fuzzy filter for video stabilization is presented in [37] and a fuzzy Kalman system consists of a fuzzy system with a Kalman filter is presented in [38].

Regarding to the MC task of DVS system, almost all published algorithms try to smoothen the global movement trajectory by a kind of low-pass filtering. An important drawback of the low-pass filtering is that smoothened movement trajectory is delayed with respect to the desired camera displacements. A stricter filtering provides more stabilization at the expense of more trajectory delay and vice versa. More trajectory delay means losing more image content after stabilization.

A good MC unit should remove the unwanted camera motion while tracks the intentional motion without any delay. For this purpose, it should discriminate the unwanted and intentional camera motions while adjust the smoothing filter adaptively according to the amount of unwanted and intentional camera motions. The studied published MC algorithms lack some of these features. For example,algorithms presented in [27, 37] suffer from the lack of discrimination of unwanted and intentional camera motions. Moreover, the proposed adaptive algorithm in [27] suffers from a continuous and well adaptation. They use an adaptive filter with a smoothing factor that is switched between only two values and therefore it leads to undesirable jumps in frame position. The proposed algorithm in [38] shows a high performance but still suffers from well adaptation.

In this article, we propose a DVS algorithm with new features in ME and MC units. The ME unit estimates a GMV based on the BMVs which are estimated by the video encoder. Therefore, accurate motion information is used without extra computation cost. Moreover, an adaptive thresholding algorithm is used to remove the noisy invalid LMVs. The MC unit of the proposed DVS system applied a fuzzy adaptive IIR filter to smooth the camera movement trajectory adaptively to the characteristics of unwanted and intentional camera motions. The fuzzy system adjusts the IIR filter by using two novel inputs which are quantitative representations of the unwanted and the intentional camera motions. Experimental results show a good performance for the proposed DVS algorithm.

The remainder of this article is organized as follows. The details of the proposed video stabilization algorithm are described in Section 2. Some experimental results are presented in Section 3, and the article is concluded in Section 4.

2. The proposed method

A flowchart of the proposed DVS system is depicted in Figure 2. The details of the proposed system are described in the sequel.

Figure 2
figure 2

Flowchart of the proposed DVS system.

2.1. Block-based ME

The block-based ME is used to generate the LMVs. Since the ME is done by the video encoder, the computational complexity of the DVS is very low. In this article, to test the proposed DVS system independent of the encoder, a full search ME algorithm with full-pixel resolution is taken for 8 × 8 blocks over a search range of 33 × 33 pixel to achieve the BMVs.

The ME algorithm works as follows. First, the current frame is divided into a number of N × N blocks and an MV for each block is computed. The resulting MV points to the most correlated reference block in the previous frame within the search area. To measure the goodness of each candidate MV (x, y), the mean absolute difference (MAD) measure is used as

MAD i , j = 1 N 2 k = 0 N 1 L = 0 N 1 C x + k , y + L R x + i + k , y + j + L
(1)

where C(x + k, y + L) and R(x + i + k, y + j + L) denote the block pixels in the target frame and the displaced block pixels in the reference frame, respectively. The candidate MV(i, j) with the smallest MAD is chosen as the MV of the current block according to

V = arg min MAD i , j , p i , j p 1
(2)

where p defines the motion search range.

2.2. LMV validation

The ME unit plays an important role in DVS system and its estimation accuracy is a decisive factor for the overall performance of stabilization system. Block ME process typically computes some wrong MVs which are not in coincidence to the real motion direction of the blocks. Although, such MVs can be useful for the motion compensation in encoder, they include noise and should not be used for the global motion compensation and video stabilization operations. The noisy MVs are mostly obtained from two types of regions including: very smooth regions with lack of features and very complex uneven regions [2730]. Inspiring from the algorithm presented in [27], two qualifying tests, namely “Smoothness Test” and “Complexity Test”, are used to detect and remove the noisy MVs by an adaptive thresholding method as follows.

2.2.1. Smoothness test

The noisy MVs corresponding to the smooth regions such as sky image are detected by thresholding of the average of MAD as

MAD avg n < th 1 ,
(3)

where MAD avg n denotes the average of calculated MADs within the search area, during ME of n th block. th1 is also defined as

th 1 = MAD min n + T 1 x Mean MAD avg n ,
(4)

where MAD min n and MAD Avg n denote the minimum and the average values of computed MADs, respectively, during ME of n th block within the search area. T1 is an experimentally defined constant coefficient about 0.45 and Mean(MAD avg n) denotes the average of MAD avg n, over all blocks of the frame. In fact the threshold th1 includes a global average value over the frame plus a margin.

2.2.2. Complexity test

The noisy MVs corresponding to the complex texture regions are identified by another thresholding as

MAD min n > th 2 ,
(5)

where threshold th2 is defined adaptively as:

th 2 = T 2 x Max MAD min n ,
(6)

where T2 is an experimentally defined constant coefficient about 0.45, and Max Max(MADminn) denotes the maximum value of MADminn, over all blocks of the frame. According to the equations above, the MADminn is compared against a portion of its global maximum over a frame.

It is notable that MAD is computed during ME by encoder. Therefore, the smoothness test and complexity test have no additional computational complexity cost for the proposed DVS system.

A similar thresholding approach is presented in [2730], in which fixed values for thresholds th1 and th2 are used. Our simulation results on different video contents show that using fixed thresholds for different video contents may cause a remarkable amount of invalid noisy LMVs remain or a notable amount of valid LMVs be removed. To solve this problem, the values of thresholds th1 and th2 are adjusted adaptively based on the video content for each frame. Note, if ME is executed by a fast search algorithm rather than full-search algorithm at the encoder, the MADs calculated during ME are used for adaptation of thresholds th1 and th2.

Original LMVs and validated LMVs for a sample frame are presented in Figure 3. This figure shows that many noisy LMVs have been removed by the LMV validation process.

Figure 3
figure 3

Example of noisy LMV removal on a frame of the avenue sequence. (a) Original MVs. (b) Valid MVs.

2.3. Global ME

The global ME unit produces a unique GMV for each video frame, which represents the camera movement during the time interval of two frames. Since the LMVs obtained from the image background tend to be very similar in both magnitude and direction, we used a clustering process to classify the motion field into clusters corresponding to the background and foreground objects. The global motion induced by camera movement is determined by a clustering process that consists of the following steps.

Step 1. Construct the histogram H of the valid LMVs. The value of H(x, y) is incremented by one each time the LMV(x, y) is encountered.

Step 2. As long as the scene is not dominated by moving objects, the cluster corresponding to background blocks has the maximum votes in the clustering process. The position (x, y) of the largest cluster or histogram bin is considered as the GMV.

As an example, Figure 4 shows the largest histogram bin at coordinates (5, 12), yields the GMV.

Figure 4
figure 4

Clusters of motion field.

2.4. Unwanted ME and correction

An estimated GMV may consist of two major components: an intentional motion component (e.g., corresponding to camera panning) and unintentional motion component (e.g., corresponding to handshake). A good MC algorithm should only remove the unwanted motion while maintain and track the intentional motion. Assuming that the unwanted motion is corresponding to the high-frequency components, the proposed algorithm uses a low-pass filter to remove the unwanted motion component. AnSMV is resulted by a low-pass filtering on the GMVs that resembles the intentional camera movement. An adaptive first-order IIR filter is applied as

SMV n = α n SMV n - 1 + 1 - α n GMV n .
(7)

where the index n indicates the frame number. The parameter α, (0 ≤ α ≤ 1), can be regarded as the smoothing factor of the filter which is adjusted by the fuzzy system for each frame. A larger smoothing factor leads to a smoother, but a larger lag during intentional camera motion that makes artificially stabilized, image sequence. Therefore, a fixed value of α hardly leads to good stabilized image sequences. To avoid the lag of intentional movement and to smooth the unwanted camera motion efficiently the following fuzzy adaptation mechanism of α is proposed.

2.4.1. Fuzzy adaptation of smoothing filter

The smooth filtering is implemented on the vertical and horizontal components of the GMVs separately. The smoothing factor of filter, i.e., α(n) is adjusted by a fuzzy system continuously for MC of each frame. In facts, two fuzzy systems with a similar structure are used corresponding to the vertical and horizontal motion components. The fuzzy system has two inputs (Input1, Input2) and one output. The fuzzy inputs are defined as

x 1 = 1 M i = n M + 1 n GM V x i GM V x i 1 ,
(8)
x 2 = GMV x n GMV x n - M .
(9)
y 1 = 1 M i = n M + 1 n GMV y i GMV y i 1 ,
(10)
y 2 = GMV y n GMV y n M .
(11)

where x1 and x2 denote the inputs of fuzzy system used for the adaptive filtering of the horizontal motion component and also y1 and y2 are the inputs of fuzzy system used for the adaptive filtering of the vertical motion component. GMV x (n) and GMV y (n) indicate the horizontal and vertical components of the GMV of last frame and M + 1 is the number of last GMVs used for decision. The fuzzy system inputs, Input1 (x1,y1) and Input2 (x2,y2), are used as quantitative representations of unwanted and intentional camera movements, respectively. The value of Input1 is proportional to the noise amplitude and the value of Input2 is proportional to the intentional camera motion when it has an accelerating movement.

Defining suitable inputs for an adaptive DVS system has a great impact on the performance of system. Only relevant inputs can provide precise discriminating between unwanted and intentional camera motions to be used for the adaptation of smoothing filter. Different scenarios for the combination of unwanted and intentional camera motion can be considered. As examples, some scenarios are presented graphically in Figure 5. In graphs (a) and (b), camera has an intentional accelerating movement plus noise or unwanted motion. The noise amplitude is high in (a) while it can be ignored in (b). Graph (e) is corresponding to a camera movement path while panning in which the camera is moving with a constant velocity without any acceleration and noise. The explanations of all graphs are summarized in Table 1.

Figure 5
figure 5

Sample scenarios for combination of unwanted and intentional camera motions: (a) high acceleration with high noise, (b) high acceleration with no noise, (c) high noise with no acceleration, (d) low acceleration with low noise, (e) constant velocity without noise and acceleration, (f) constant velocity with noise.

Table 1 Sample scenarios for combination of unwanted and intentional camera motion

From the adaptive filtering point of view it is important to measure the amount of noise and the intentional camera movement velocity and acceleration. A stricter smoothing filter is needed when the noise amplitude is high to remove the noise. On the other hand, the strict smoothing filter prevents following of camera path when it has an intentional high acceleration. Therefore, the smoothing factor of filter should be tuned carefully proportional to the amount of noise and camera movement acceleration. According to this, we defined the fuzzy inputs so that Input1 gives information about the amount of noise and Input2 gives information about the amount of camera movement acceleration. It is notable that amount of camera movement velocity itself does not have any constrain on the filtering so it is not measured and used here.

The proposed fuzzy system tunes the smoothing factor of the IIR filter adaptively according to the amount of noise and the camera intentional accelerating movement. In the proposed fuzzy system, trapezoidal and triangular MFs are used for the inputs and the outputs, respectively. The number of MFs has been selected so as to obtain decent performance with as few MFs as possible to maintain low system complexity. The experimentally designed input and output MFs and also the surface of desired outputs are shown in Figure 6. According to experimental results, the performance of used IIR filter is more sensitive to α’s changes where α has a large value. Therefore, more MFs of the fuzzy output are concentrated in this operating area. The constructed rule base is containing 30 rules as presented in Table 2. The proposed fuzzy system was implemented while the min function was used for the fuzzy implication and the max function used for the fuzzy aggregation. Furthermore, the centroid defuzzification method was applied. The output of fuzzy system defines the smoothing factor of the IIR filter, i.e., α(n), for MC of each video frame.

Figure 6
figure 6

The experimentally designed inputs and output MFs and also surface of desired input and output of the proposed fuzzy system. (a) MFs of fuzzy Input1 x1&y1, (b) MFs of fuzzy Input2 x2&y2, (c) MFs of fuzzy output, (d) surface of desired outputs.

Table 2 Central values of fuzzy system output

2.4.2. Adaptive fuzzy MFs

Study on a number of video sequences has shown that the range of fuzzy inputs (Input1, Input2) is very variable on different video contents. Therefore, fixed MFs for the inputs of fuzzy system cannot provide a good stabilization performance over all video contents. In order to have a good performance for the proposed DVS system over different video contents, it is proposed to adjust the MFs of fuzzy inputs adaptively to recently received video frames. The range of MFs for the fuzzy inputs, i.e., (0, Input1(max)) and (0, Input2(max)) are modified adaptively as

Input 1 max = Max of input 1 over K recent frames ,
(12)
Input 2 max = Max of input 2 over K recent frames ,
(13)

where Input1 and Input2 are clipped to a range from 1 to 10% of video frame height in term of pixel, and the K corresponds to the number of frames received in last few seconds, e.g., 2 s. This means that the system is adapted to the time-varying noise conditions while the frame size and frame rate are considered.

2.4.3. MC

After computing the smoothing factor α(n) by the fuzzy system, SMV is calculated by Equation (7). For the first three frames, a fixed large value for α(n) is used. After computing SMV, the unwanted motion vector (UMV) is obtained by

UMV n = GMV n - SMV n .
(14)

To restore the current frame to its stabilized position, we offset the current frame by the accumulated UMV, AMV, defined by

AMV n i = m n UMV i
(15)

where m is the frame number of the last scene cut frame.

3. Experimental results

The performance of the proposed DVS method is evaluated against 15 video sequences covering different types of scenes.

Since there is no well-known video sequence in this research field, the algorithm is tested on a number of sequences which are easily available. For example, some used video sequences are available at [40, 41]. These sequences have a frame rate of 25 fps and a picture size of 352 × 288 pixels. Sample frames of used video sequences are shown in Figure 7. Moreover, the performance of proposed DVS system has been evaluated with several datasets extracted from movement curves published in the literature, not from ME on video sequences. Sample simulation results are presented in Figures 8 and 9. The results presented in Figure 8 correspond to a case in which the camera has no intentional movement,whereas the results presented in Figure 9 correspond to a case in which the camera has intentional camera movements. We worked with both gray-scale and color test sequences where in both cases ME is implemented on the luminance component. Good experimental results are obtained with M = 3. However, a larger M provides more smoothness at the expense of more tracking delay and vice versa. The stabilizer performance is assessed according to the smoothness of the resultant global motion compared to the original sequence and the gross movement preservation capability. The results of the proposed DVS algorithm are compared with results provided by the presented algorithms in [27, 38], as the most relevant anchor algorithms. An adaptive IIR filtering technique and a fuzzy Kalman system are proposed for MC in [27, 38], respectively. Some graphical comparison results are presented Figures 8 and 9. The results provided by the presented algorithm in [27] show that it leads to smooth camera movement trajectory but at expense of a relative large tracking delay when the camera has intentional accelerating movement. The results provided by the presented algorithm in [38] show that it closely tracks the intentional camera movements but at the cost of slightly reduced stabilization capabilities. Whereas results demonstrate that our proposed DVS system provides expanded stabilization, while enables the close tracking of the intentional camera movements. Small-scale subjective quality test also demonstrated that human eyes have better visual perception to the stabilized videos by the proposed DVS system than the original videos in all cases.

Figure 7
figure 7

Sample frames of used video sequences. Images taken by a camera (ac) held by a hand; (d) in a moving vehicle.

Figure 8
figure 8

Comparison results of DVS algorithms: the absolute frame positions before and after stabilization correspond to a case in which the camera has no intentional movement.

Figure 9
figure 9

Comparison results of DVS algorithms: the absolute frame positions before and after stabilization correspond to a case in which the camera has intentional movement.

One way of visualizing the effectiveness of image stabilization is to subtract consecutive frames of the original and stabilized image sequences. Figure 10 shows an example of this technique. The upper left image in (a) shows a frame of the original sequence while the upper right image in (b) is the stabilized frame at the same time instance. The bottom left image in (c) shows the difference between the frame in (a) and its previous frame from original sequence. Similarly, Figure 10 shows the difference between the stabilized frame shown in (b) and its previous frame in the stabilized sequence. The decrease in luminance of the difference signal means removing unwanted camera motion. Expressing the difference of consecutive frames in the original and the stabilized image sequences in terms of squared error, for a video sequence, namely road [40], is plotted in Figure 11. As expected, the frame difference measure has been reduced considerably in the stabilized image sequence.

Figure 10
figure 10

Visualizing the effectiveness of image stabilization. (a) Original frame, (b) stabilized frame, (c, d) difference between two frames before and after MC, respectively.

Figure 11
figure 11

Frame difference for the road video sequence before and after stabilization.

Numerical performance assessment of a DVS system is a difficult task since the ground truth of unwanted motions as reference is not available. To solve the lack of reference problem, we choose some video sequences in which the camera has been fixed without any intentional movement. Therefore, the reference GMVs of these sequences are zero. Samples of such video sequences are shown in Figure 8. Finding a reference path for intentional camera motion, we computed the meansquare error (MSE) between the smoothed GMVs and the GMVs of reference as a numerical measure to compare the MC performance of proposed adaptive fuzzy DVS algorithms with those of presented algorithms in [27, 38]. The MSE measure is defined as

MSE MV = 1 N n = 0 N GMV R n - SMV n 2 ,
(16)

where GMV R (n) and SMV(n) denote the n th GMV of the reference and the smoothed video sequence, respectively. Numerical performance assessment results for the three video sequences, as shown in Figure 8, are presented in Table 3. The numerical results show lower MSE values for our proposed method that means a higher performance in this case.

Table 3 MSE resulted by MC units of different DVSs

To evaluate the performance of the proposed algorithm numerically in case of intentional camera movement, we produced a synthetic signal as reference. The reference signal includes three parts corresponding to intentional camera movements with positive, negative, and zero value accelerations. Moreover, a sequence of normal random numbers was generated and the random numbers were rounded to integer values to simulate the unwanted camera motion in terms of pixel displacement. Provided sequence was added to the reference signal to obtain a synthetic signal including both the intentional and the unwanted camera motions. Two copies of the synthetic signal (y1y2) were generated to be processed by MC units of the proposed DVS algorithm and also by the anchor algorithms presented in [27, 38]. While the reference signal is known that the performance of compared algorithms can be evaluated numerically by computing the MSE measure between the reference signal and the processed signals. It is noted that the performance of the proposed algorithm in [38] depends on the values of Q parameter (process noise covariance) of Kalman filter, so it cannot provide a well adaptation. Therefore, the two copies of synthetic signal were processed by two values of Q (0.005 and 0.6) and graphical simulation results are shown in Figures 12 and 13, respectively. Moreover, numerical comparison results in terms of MSE for the synthetic signals are presented in Table 4. According to the graphical results, the proposed algorithm in [27] removes the unwanted camera motions in case of no intentional camera movement. It results a considerable tracking delay in case of intentional accelerating camera movement. The proposed algorithm in [38], depending on the Q value, performs only good filtering of the unwanted camera motion or only the tracking of intentional camera movement as shown in Figures 12 and 13, respectively. The proposed algorithm in this article shows a high performance in both the removing of unwanted motion and the tracking of intentional camera movement. Furthermore, the numerical results presented in Table 4 confirm the graphical results shown in Figures 12 and 13. The least MSE for our proposed algorithm means the best performance.

Figure 12
figure 12

Synthetic camera movement path y 1 processed by MC units of different DVSs.

Figure 13
figure 13

Synthetic camera movement path y 2 , processed by MC units of different DVSs.

Table 4 Resulted by MC units of different DVSs

4. Conclusion

In this article, we proposed a computationally efficient DVS algorithm using motion information obtained from a hybrid block-based video encoder. Since some of the obtained MVs are not valid, an adaptive thresholding was developed to filter out valid MVs and to compute an accurate GMV for each frame. The GMVs are smoothened with an IIR low-pass filter that is tuned adaptively to unwanted and intentional camera movements. The filter is adjusted by a fuzzy system with two inputs which quantify the unwanted and intentional camera movements. The proposed method fulfills two apparently conflicting requirements: close follow-up of the intentional camera movement and removal of the unwanted camera motion. In order to improve the stabilization performance, inputs MFs of the fuzzy system are continuously adapted according to the motion properties of a number of recently received video frames. Simulation results show a high performance for the proposed algorithm. With a low degree of computational complexity, the proposed scheme can effectively be used for the mobile video communications as well as for the conventional video coding applications to improve the visual quality of digital video and to provide a higher compression performance.

References

  1. Engelsberg A, Schmidt G: A comparative review of digital image stabilizing algorithms for mobile video communications. IEEE Trans. Consum. Electron. 1999, 45(3):592-597.

    Article  Google Scholar 

  2. Peng YC, Liang CK, Chang HA, Chen HH, Kao CJ: Integration of image stabilizer with video codec for digital video cameras. In Proceedings of the International Symposium on Circuits and Systems. 5th edition. Kobe, Japan; 2005:4781-4784.

    Google Scholar 

  3. Liang CK, Peng YC, Chang HA, Su CC, Chen H: The effect of digital image stabilization on coding performance. IEEE Proceedings of the 2004 International Symposium on Intelligent Multimedia, Video and Speech Processing 2004, 402-405.

    Google Scholar 

  4. Chen HH, Liang CK, Peng YC, Chang HA: Integration of image stabilizer with video codec for digital video cameras. IEEE Trans. Video Technol. 2007, 17: 801-813.

    Article  Google Scholar 

  5. Marcenaro L, Vernazza G, Regazzoni CS: Image stabilization algorithms for video surveillance applications. In Proceedings of the International Conference on Image Processing. 1st edition. Thessaloniki; 2001:349-352.

    Google Scholar 

  6. Zhou J, He H, Wan D: Video stabilization and completion using two cameras. IEEE Trans. Circuit Syst. Video Technol. 2011, 99: 1.

    Google Scholar 

  7. Oshima M, Hayashi T, Fujioka S, Inaji T, Mitani H, Kajino J, Ikeda K, Komoda K: VHS camcorder with electronic image stabilizer. IEEE Trans. Consum. Electron. 1989, 35(4):749-758. 10.1109/30.106892

    Article  Google Scholar 

  8. Sato K, Ishizuka S, Nikami A, Sato M: Control techniques for optical image stabilizing system. IEEE Trans. Consum. Electron. 1993, 39(3):461-466. 10.1109/30.234621

    Article  Google Scholar 

  9. Ko SJ, Lee SH, Jeon SW, Kang ES: Fast digital image stabilizer based on gray-coded bit-plane matching. IEEE Trans. Consum. Electron. 1999, 45(3):598-603. 10.1109/30.793546

    Article  Google Scholar 

  10. Ertürk A, Ertürk S: Two-bit transform for binary block motion estimation. IEEE Trans. Circuit Syst. Video Technol. 2005, 15(7):938-946.

    Article  Google Scholar 

  11. Ertürk S: Multiplication-free one-bit transform for low complexity block-based motion estimation. IEEE Signal Process. Lett. 2007, 14(2):109-112.

    Article  Google Scholar 

  12. Kim NJ, Lee HJ, Lee JB: Probabilistic global motion estimation based on Laplacian two-bit plane matching for fast digital image stabilization. EURASIP J. Adv. Signal Process. 2008., 43: 10.1155/2008/180582

    Google Scholar 

  13. Nan W, Xiaowei H, Gang W, Zhonghu Y: An approach of electronic stabilization based on binary image matching of color weight. In 2nd International Asia Conference on Informatics in Control, Automation and Robotics (CAR). 2nd edition. Wuhan; 2010:155-158.

    Google Scholar 

  14. Battiato S, Puglisi G: Fast block based local motion estimation for video stabilization. In IEEE Computer Society Conference on Pattern Recognition Workshops (CVPRW). Colorado Springs, CO; 2011:50-57.

    Google Scholar 

  15. Paik JK, Park YC, Kim DW: An adaptive motion decision system for digital image stabilizer based on edge pattern matching. IEEE Trans. Consum. Electron. 1992, 38(3):607-616. 10.1109/30.156744

    Article  Google Scholar 

  16. Yeni AA, Ertürk S: Fast digital image stabilization using one bit transform based sub-image motion estimation. IEEE Trans. Consum. Electron. 2005, 51(3):917-921. 10.1109/TCE.2005.1510503

    Article  Google Scholar 

  17. Ertürk S: Digital image stabilization with sub-image phase correlation based global motion estimation. IEEE Trans. Consum. Electron. 2003, 49(4):1320-1325. 10.1109/TCE.2003.1261235

    Article  Google Scholar 

  18. Ertürk S: Image sequence stabilization: motion vector integration (MVI) versus frame position smoothing (FPS). In Proceedings of the 2nd IEEE R8-EURASIP Symposium on Image and Signal Processing and Analysis,ISPA'01. Croatia, Pula; 2001:266-271.

    Google Scholar 

  19. Xiang ZY, Jian W, Gong ZW, Quan Z, Rui D: An improved algorithm of electronic image stability based on block matching. In IEEE 5th Conference on Industrial Electronics and Applications (ICIEA). Taichung; 2010:1924-1927.

    Google Scholar 

  20. Zhu J, Guo B: Fast layered bit-plane matching for electronic video stabilization. In International Conference on Multimedia and Signal Processing (CMSP). 1st edition. Guilin, Guangxi; 2011:276-280.

    Google Scholar 

  21. Chang JY, Hu WF, Cheng MH, Shang BS: Digital image translation and rotation motion stabilization using optical flow technique. IEEE Trans. Consum. Electron. 2002, 48(1):108-115. 10.1109/TCE.2002.1010098

    Article  Google Scholar 

  22. Erturk S: Translation, rotation and scale stabilization of image sequences. IEE Electron. Lett. 2003, 39(17):1245-12462. 10.1049/el:20030816

    Article  Google Scholar 

  23. Tsoligkas NA, Xalkiadis S, Donglai X: I French, A guide to digital image stabilization procedure—anoverview. In 18th International Conference on Systems Signals and Image Processing (IWSSIP). Sarajevo; 2011:1-4.

    Google Scholar 

  24. Wang JM, Chou HP, Chen SW, Fuh CS: Video stabilization for a hand-held camera based on 3D Motion model. In 16th IEEE International Conference on Image Processing (ICIP). Cairo; 2009:3477-3480.

    Google Scholar 

  25. Nestares O, Gat Y, Haussecker H, Kozinsev I: Video stabilization to a global 3D frame of reference byfusing orientation sensor and image alignment data. In 9th IEEE International symposium on Mixed and Augmented Reality(ISMAR). Seoul; 2010:257-258.

    Google Scholar 

  26. Mohammadi M, Fathi M, Soryani M: A new decoder side video stabilization using particle filter. In 18th International Conference on Systems signals and Image Processing (IWSSIP). Sarajevo; 2011:1-4.

    Google Scholar 

  27. Yang SH, Jheng FM: An adaptive image stabilization technique. In Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics(SMC2006). 3rd edition. Taipei; 2006:1968-1973.

    Google Scholar 

  28. Vella F, Castorina A, Mancuso M, Messina G: Digital image stabilization by adaptive block motion vectors filtering. IEEE Trans. Consum. Electron 2002, 48: 796-801. 10.1109/TCE.2002.1037077

    Article  Google Scholar 

  29. Battiato S, Puglisi G, Bruna AR: A robust video stabilization system by adaptive motion vectors filtering. In IEEE International Conference on Multimedia and Expo. Hannover; 2008:373-376.

    Google Scholar 

  30. Hsiao JP, Hsu CC, Shih TC, Hsu PL, Yeh SS, Wang BC: The real-time video stabilization for the rescue robot. 2009, 4364-4369.

    Google Scholar 

  31. Uomori K, Morimura A, Ishii H: Electronic image stabilization system for video cameras and VCRs. J. Soc. Motion Picture Television Eng. 1992, 101: 66-75.

    Google Scholar 

  32. Ertürk S, Dennis TJ: Image sequence stabilization based on DFT filtering. IEE Proc. Image Vis. Signal Process 2000, 127: 95-102.

    Article  Google Scholar 

  33. Ertürk S: Real-time digital image stabilization using Kalman filters. Real-Time Imaging 2002, 8: 317-328. 10.1006/rtim.2001.0278

    Article  MATH  Google Scholar 

  34. Güllü MK, Yaman E, Ertürk S: Image sequence stabilization using fuzzy adaptive Kalman filtering. Electron. Lett. 2003, 39(5):429-431. 10.1049/el:20030323

    Article  Google Scholar 

  35. Güllü MK, Ertürk S: Fuzzy image sequence stabilization. Electron. Lett. 2003, 39(16):1170-1172. 10.1049/el:20030781

    Article  Google Scholar 

  36. Güllü MK, Ertürk S: Image sequence stabilization using membership selective fuzzy filtering. Lect. Notes Comput. Sci. (LNCS) 2003, 2869: 497-504. 10.1007/978-3-540-39737-3_62

    Article  Google Scholar 

  37. Güllü MK, Ertürk S: Membership function adaptive fuzzy filter for image sequence stabilization. IEEE Trans. Consum. Electron. 2004, 50(1):1-7. 10.1109/TCE.2004.1277834

    Article  Google Scholar 

  38. Kyriakoulis N, Gasteratos A: A Recursive Fuzzy System for Efficient Digital Image Stabilization (Hindawi Advances in Fuzzy Systems). 10.1155/2008/920615

  39. Pinto B, Anurenjan PR: Video stabilization using speeded up robust features. In International Conference on Communications and Signal Processing (ICCSP). Kerala; 2011:527-531.

    Google Scholar 

  40. Road http://www.jnack.com/adobe/photoshop/videostabilization/

  41. Shaky Car matlabroot\toolbox\vipblks\vipdemos\shaky_car.avi

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mehdi Rezaei.

Additional information

Competing interests

The authors declare that they have no competing interests.

Authors’ original submitted files for images

Rights and permissions

Open Access This article is distributed under the terms of the Creative Commons Attribution 2.0 International License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Reprints and permissions

About this article

Cite this article

Tanakian, M.J., Rezaei, M. & Mohanna, F. Digital video stabilizer by adaptive fuzzy filtering. J Image Video Proc 2012, 21 (2012). https://doi.org/10.1186/1687-5281-2012-21

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/1687-5281-2012-21

Keywords