The 6th International Conference on Ubiquitous Robots and Ambient Intelligence (URAI 2009)

Video Stabilization with Reinitialization on Sudden Scene Change Sunglok Choi and Wonpil Yu Robot Research Department, ETRI, Daejeon, Republic of Korea {sunglok, ywp}@etri.re.kr

Abstract— The core step of video stabilization is to estimate global motion from locally extracted motion clues. Optical flow and feature matching have been utilized as local motion clues between adjacent image sequence. However, sudden scene change causes the motion clues totally wrong, which entails wrong global motion. Adaptive RANSAC, authors’ previous work, is applied to solve this problem with reinitialization. The proposed method resets its states when motion estimation is difficult. The difficulty is quantified as the ratio of probably correct motion clues among overall clues. An experiment using real image sequence verifies effectiveness of the proposed method. Keywords— Video Stabilization, RANSAC, MLESAC, uMLESAC

Motion

Estimation,

1. Introduction Video stabilization is the process to generate a compensated video without undesired motion (e.g. vibration) [1]. It has received attention due to widely used video devices. It can improve quality of video captured by cameras on a shaking hand or moving mobile robot. Video stabilization generally comprises four steps: motion estimation, motion filtering, image warping, and image enhancement. Motion estimation is the process to calculate camera motion between two adjacent images. Recently, corresponding points, which are extracted by KLT tracking or SIFT matching, are preferred as motion clues. Wrongly matched points, which are called outliers, are rejected by RANSAC, Hough transform, and others. Motion filtering is the process to separates intended motion and undesired vibration. Kalman filter and Gaussian smoothing give low frequency motion, which is regarded as intended motion and the other high frequency part is regarded as undesired vibration. Image warping is the process to compensate undesired motion in the given images, which is simple image transformation. Image enhancement is additional post-processes, which includes deblurring and recovering missing parts. The most important step among them is motion estimation because it provides the essential information to the next steps. Even if RANSAC and other robust estimators avoid totally wrong motion clues, they give incorrect estimation due to suddenly changed image sequences. This paper investigates how to detect and overcome such situation. It is based on the authors’ previous work [1], which is briefly explained in Section 2. It quantifies the difficulty of estimation as the This work was supported partly by the R&D program of the Korea Ministry of Knowledge and Economy (MKE) and the Korea Evaluation Institute of Industrial Technology (KEIT). (2008-S-031-01, Hybrid u-Robot Service System Technology Development for Ubiquitous City)

ratio of probably correct clues, in the other words, the lower ratio means more danger in estimating incorrect estimation. A threshold on the ratio can detect such severe situation for estimation. In the severe situation, the reinitialization is performed not to have an effect of wrong estimation, which is described in Section 3. Experiments in Section 4 confirms effectiveness of the proposed reinitialization. 2. Video Stabilization using Adaptive RANSAC 2.1 Motion Estimation Three items are important in motion estimation: motion model, motion clue, and estimation algorithm. The authors approximates instantaneous camera motion as 2D affine motion model, which has 6 DOF as follows:   m11 m12 m13 M =  m21 m22 m23  . (1) 0 0 1 It can describe translation, rotation, scaling, and shearing of an image plane except perspective projection. KLT tracker [?] extracts corresponding points between adjacent images. The pairs of points are used as data (or clues) in estimating motion between two images. Common least squares provides motion from more than three pairs of points. Figure 5(a) shows a slice of video with KLT tracker, which contains two kinds of motion caused by static background and moving cars. KLT trackers by moving cars disturbs least squares because they includes motion not only by the camera, but also by the cars. Such outliers need to be excluded in least squares. 2.2 uMLESAC, Adaptive RANSAC uMLESAC [1], [2] is applied to the outlier problem in motion estimation. It is based on Torr and Zisserman’ MLESAC [3] and their error probability density function (pdf). The error pdf models outlier error as uniform distribution and inlier (data except outliers) error as unbiased Gaussian distribution as follows:   1 e2 1 p(e|M) = γ √ exp − 2 + (1 − γ) , (2) 2 2σ ν 2πσ where M is the model to estimate (e.g. affine motion) and ν is the size of error space. The model has two parameters γ and σ 2 , where γ is prior probability of being an inlier and σ 2 is variance of Gaussian noise (Figure 1). The parameter γ means the ratio of inliers to whole data and σ 2 means the magnitude of noise which contaminate inliers. The error

The 6th International Conference on Ubiquitous Robots and Ambient Intelligence (URAI 2009)

(a) σ 2 = 22 Fig. 1.

(b) γ = 0.5

Torr and Zisserman’ model (ν = 20)

model assumes that every datum has the same inlier prior probability. It leads posterior probability of being an inlier as follows:   e2 γ √ 1 2 exp − 2σ 2 2πσ   . (3) πi = 1 e2 √ + (1 − γ) ν1 γ exp − 2σ 2 2 2πσ

Expectation maximization (EM) gives iterative solution of γ with respect to the given data as follows: 1 N γ = ∑ πi , N i=1

(4)

where N is the number of data. More detail procedure of uMLESAC is described in the authors’ previous works [1], [2]. 2.3 Motion Filtering and Image Warping Kalman filter is employed for motion filtering, which relieves high frequency motion. Constant velocity model is utilized under assumption that each parameter is independent [4]. Motion in each frame needs to be accumulated to compensate motion from the initial frame as follows: et , T0t = T0t−1 Mt and Te0t = Te0t−1 M

(5)

et is filtered motion of Mt via Kalman filter, and T t where M 0 and Te0t are raw and filtered accumulated motion, respectively. The stabilized image Iet is simply generated from the original image It through Iet = Te0t (T0t )−1 It . (6) Figure 2 shows overall procedure of video stabilization. 3. Reinitialization on Sudden Scene Change Sudden scene change generates wrong KLT trackers as like Figure 5(b), which causes incorrect motion estimation et , Tt , and Tet . Finally, Mt . The wrong estimation Mt corrupts M the stabilized images becomes totally fail after time t as like Figure 6(a). The proposed stabilization includes an additional step before Image Warping in Figure 2, which detects such failure estimation and reinitializes its states, Tt and Tet . The proposed method generates the stabilization image via Equation 6 in normal situation, but it just assign its input image when it detect the failure. The detection is performed using the estimated inlier ratio γ because it implies how many wrong KLT trackers is in the given image. The proposed step is described in Figure 3.

Fig. 2.

Flow Chart of Video Stabilization

INPUT It : The input image at t-th frame et : The original and filtered motion at t-th frame Mt and M Tt−1 and Tet−1 : The accumulated motion until (t-1)-th frame γ : The estimated inlier ratio through Equation 4 τ p : The number of frames to skip the stabilization τr : The threshold of inlier ratio REINITIALIZATION AND IMAGE WARPING IF γ < τr f ←t ENDIF IF (t − f ) < τ p T0t ← I3x3 and Te0t ← I3x3 Iet ← It ELSE et T0t ← T0t−1 Mt and Te0t ← Te0t−1 M Iet ← Tet (T t )−1 It 0

0

ENDIF RETURN Iet Fig. 3.

Pseudo Code of the Proposed Reinitialization

4. Experiment An experiment was performed in real image sequences, which contained several urgent movements. Its 388–415th frames are presented in Figure 5(b). Two parameters, τ p and τr , were assigned as 10 and 0.5, respectively. The inlier ratio γ was estimated as Figure 4 during overall image sequence. This result verifies that the inlier ratio is a enough measure to represent difficulty of motion estimation. The inlier ratio less than 0.5 was observed around 400, 460, and 540 frames, which were exactly in sudden image changes. Figure 6 shows stabilized images of Figure 5(b) with/-out the proposed method. The result with the reinitialization seems better, because its accumulated motion does not diverge. 5. Conclusion and Further Works The proposed method detects failure motion estimation and reinitializes its states. The experiment with real images confirms its effectiveness. Many meaningful works have been performed on video stabilization, but the video stabilization needs to be investigated more. The 3D motion model or multiple 2D models

The 6th International Conference on Ubiquitous Robots and Ambient Intelligence (URAI 2009)

(a) Moving Cars on the Road Fig. 5.

(b) Sudden Scene Change on the Desktop

Example Image Sequences with KLT Tracker (Red)

(a) Stabilization WITHOUT the Reinitialization

(b) Stabilization WITH the Reinitialization Fig. 6.

Experimental Result (Stabilized Images of Figure 5(b))

operation. References

Fig. 4.

Experimental Result (The Estimated Inlier Ratio)

is necessary, because single 2D motion does not enough. The single 2D model cannot describe motion in complex 3D environment which has various depth. A drift error, which is originated from Equation 5, should be solved for long-term

[1] S. Choi, T. Kim, and W. Yu, “Robust video stabilization to outlier motion using adaptive RANSAC,” in Proceedings of IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2009. [2] S. Choi and J.-H. Kim, “Robust regression to varying data distribution and its application to landmark-based localization,” in Proceedings of IEEE International Conference on Systems, Man, and Cybernetics (SMC), October 2008. [3] P. Torr and A. Zisserman, “MLESAC: A new robust estimator with application to estimating image geometry,” Computer Vision and Image Understanding (CVIU), vol. 78, pp. 138–156, 2000. [4] A. Litvin, J. Konrad, and W. C. Karl, “Probabilistic video stabilization using Kalman filtering and mosaicking,” in Proceedings of IS&T/SPIE Symposium on Electronic Imaging, Image and Video Communications and Processing, 2003.

Video Stabilization with Reinitialization on Sudden ...

Service System Technology Development for Ubiquitous City) ratio of probably correct clues, in the other words, the lower ratio means more danger in estimating ...

2MB Sizes 3 Downloads 302 Views

Recommend Documents

Video Stabilization with Reinitialization on Sudden ...
The 6th International Conference on Ubiquitous Robots and Ambient Intelligence (URAI 2009). Video Stabilization with Reinitialization on Sudden Scene Change. Sunglok Choi ... Service System Technology Development for Ubiquitous City).

Auto-Directed Video Stabilization with Robust ... - Research at Google
in this paper. Given the ..... frame motion transforms Ft, (2) computing the optimal. 229 .... backward (green) from next key-frame, and the resulting locations.

Video Stabilization of Atmospheric Turbulence Distortion
May 20, 2012 - blurry image frames ⇒ sharpen individual frame temporal oscillations ⇒ stabilize temporal direction. We propose the following PDE model for video stabilization: ut (x,y,k) = S[u(x,y,k)] + ต△k u where S[·] denotes the Sobolev s

Robust Video Stabilization to Outlier Motion using ...
Apple iMovie '09 already included this function. Cameras on robots suffer ..... [12] C. Guestrin, F. Cozman, and E. Krotkov, “Fast software image stabilization with ...

Video Stabilization and Completion Using Two Cameras - IEEE Xplore
Abstract—Video stabilization is important in many application fields, such as visual surveillance. Video stabilization and com- pletion based on a single camera ...

Robust Video Stabilization to Outlier Motion using ...
have large depth variation and motion of multiple planes. Lee et al ... are used as data to estimate paramters of the assigned ..... Flow Chart of Video Stabilization.

Spacecraft Attitude Stabilization with Piecewise ...
attitude control problem. • model of spacecraft with magnetorquers. • separation between measurement and actuation. • design of piecewise-constant control. • case study. Page 3. Attitude control problem. Fabio Celani. Sapienza University of R

MULTI-VIDEO SUMMARIZATION BASED ON VIDEO-MMR
we propose a criterion to select the best combination of parameters for Video-MMR. ... Marginal Relevance can be used to construct multi-document summaries ... is meaningful to compare Video-MMR to human choice. In a video set, 6 videos ...

sudden stops
Social Sciences Building. University of Maryland. Duke University. College Park, MD 20742. Durham, NC 27708-0097 and NBER [email protected] ...

Stabilization Control for Humanoid Robot to Walk on ...
To control robot's posture, torque and tilted angular velocity are modeled as the parameters of a network system. Fig. 3(a) and Fig. 3(b) show the inverted pendulum model of robot and its corresponding one-port network system, respectively. The robot

robust video object tracking based on multiple kernels with projected ...
finding the best match during tracking under predefined constraints. .... A xδ and. B xδ by using projected gradient [10],. B. A x x. C)C(CC. JC)C(CCI x. 1 x. T.

Stabilization Wedges
Aug 14, 2008 - ... August 14, 2008 ):. The following resources related to this article are available online at ... sion, space-based solar electricity, and artificial photosynthesis (2). ... panied by 2% growth in primary energy con- sumption and 3% 

Sudden Stops
more financially fragile. We go on to show that this may have reduced their growth ...... Bordo, M. D., C. M. Meissner and A. Redish (2005). How 'Original Sin' was ...

Video Description Length Guided Constant Quality Video Coding with ...
least four scenes to mimic real multi-scene videos. There are 400 test video sequences. B. Crf-AvgBitrate Model. The average bitrate is a function of crf, spatial ...

WE VIDEO on IPAD.pdf
Sign in. Loading… Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying.

Video games on prescription
professing to give medical advice, according to the NHS. Commissioning Board.2. There are games designed to help cancer patients stick with drug therapy, games aimed at allowing patients to receive physiotherapy at home, and games that claim to treat

UIL Sudden Cardiac Arrest Form.pdf
Page 1 of 2. SUDDEN CARDIAC ARREST AWARENESS FORM. Revised February 2015. 1. Name of Student: What is Sudden Cardiac Arrest? Ø Occurs suddenly and often without warning. Ø An electrical malfunction (short-circuit) causes the bottom chambers of the

Formation and Stabilization of Anisotropic ... - CSIRO Publishing
Sep 23, 2008 - mission electron microscopy. Rapid microwave heating resulted in 'star-shaped' palladium nanoparticles, but platinum nanoparticles were ...

video on demand pdf
Page 1 of 1. File: Video on demand pdf. Download now. Click here if your download doesn't start automatically. Page 1 of 1. video on demand pdf. video on ...

ON SECONDARY TRANSFORMS FOR SCALABLE VIDEO CODING ...
Email: 1asaxena,[email protected] ... layer prediction residue in scalable video coding (SVC). ... form scheme for coding the “IntraBL residue”.

Online Video Recommendation Based on ... - Semantic Scholar
Department of Computer Science and Technology, Tsinghua University, Beijing 100084, P. R. ... precedented level, video recommendation has become a very.

Custom Implementation: Streaming & Video-on-Demand ...
of the company's departments wanted to be able to see in real time how many users were ... and helped the client - by working directly with their Software. Development department - to implement the required counterpart in their site using the ... wel

Compression Artifacts Removal on Contrast Enhanced Video
adaptive to the artifacts visibility level of the input video signal is used. ... to improve the quality of the videos that are captured in extreme lighting conditions, ...

Spatiotemporal Video Segmentation Based on ...
The biometrics software developed by the company was ... This includes adap- tive image coding in late 1970s, object-oriented GIS in the early 1980s,.