Motion Estimation. 5LIN0 Video processing. Video course: Motion Estimation. G. de Haan. Schedule lectures 5P530. Picture delay



Similar documents
CHAPTER 3 DIGITAL CODING OF SIGNALS

Modified Line Search Method for Global Optimization

PSYCHOLOGICAL STATISTICS

Systems Design Project: Indoor Location of Wireless Devices

ODBC. Getting Started With Sage Timberline Office ODBC

Determining the sample size

Domain 1: Designing a SQL Server Instance and a Database Solution

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

Chapter 7 Methods of Finding Estimators

Soving Recurrence Relations

(VCP-310)

VEHICLE TRACKING USING KALMAN FILTER AND FEATURES

Output Analysis (2, Chapters 10 &11 Law)

Chair for Network Architectures and Services Institute of Informatics TU München Prof. Carle. Network Security. Chapter 2 Basics

Basic Measurement Issues. Sampling Theory and Analog-to-Digital Conversion

Automatic Tuning for FOREX Trading System Using Fuzzy Time Series

Research Article Sign Data Derivative Recovery

Lesson 17 Pearson s Correlation Coefficient

NEW HIGH PERFORMANCE COMPUTATIONAL METHODS FOR MORTGAGES AND ANNUITIES. Yuri Shestopaloff,

In nite Sequences. Dr. Philippe B. Laval Kennesaw State University. October 9, 2008

1 Correlation and Regression Analysis

PROCEEDINGS OF THE YEREVAN STATE UNIVERSITY AN ALTERNATIVE MODEL FOR BONUS-MALUS SYSTEM

Enhancing Oracle Business Intelligence with cubus EV How users of Oracle BI on Essbase cubes can benefit from cubus outperform EV Analytics (cubus EV)

*The most important feature of MRP as compared with ordinary inventory control analysis is its time phasing feature.

Incremental calculation of weighted mean and variance

A Combined Continuous/Binary Genetic Algorithm for Microstrip Antenna Design

Analyzing Longitudinal Data from Complex Surveys Using SUDAAN

Z-TEST / Z-STATISTIC: used to test hypotheses about. µ when the population standard deviation is unknown

1. C. The formula for the confidence interval for a population mean is: x t, which was

INVESTMENT PERFORMANCE COUNCIL (IPC)

Vladimir N. Burkov, Dmitri A. Novikov MODELS AND METHODS OF MULTIPROJECTS MANAGEMENT

DAME - Microsoft Excel add-in for solving multicriteria decision problems with scenarios Radomir Perzina 1, Jaroslav Ramik 2

Chapter 5 Unit 1. IET 350 Engineering Economics. Learning Objectives Chapter 5. Learning Objectives Unit 1. Annual Amount and Gradient Functions

Lesson 15 ANOVA (analysis of variance)

Finding the circle that best fits a set of points

Convention Paper 6764

5 Boolean Decision Trees (February 11)

Hypothesis testing. Null and alternative hypotheses

Present Value Factor To bring one dollar in the future back to present, one uses the Present Value Factor (PVF): Concept 9: Present Value

Study on the application of the software phase-locked loop in tracking and filtering of pulse signal

Multiplexers and Demultiplexers

Non-life insurance mathematics. Nils F. Haavardsson, University of Oslo and DNB Skadeforsikring

Normal Distribution.

Universal coding for classes of sources

Approximating Area under a curve with rectangles. To find the area under a curve we approximate the area using rectangles and then use limits to find

Review: Classification Outline

CHAPTER 3 THE TIME VALUE OF MONEY

Subject CT5 Contingencies Core Technical Syllabus

3. Greatest Common Divisor - Least Common Multiple

THE REGRESSION MODEL IN MATRIX FORM. For simple linear regression, meaning one predictor, the model is. for i = 1, 2, 3,, n

Sequences and Series

Optimize your Network. In the Courier, Express and Parcel market ADDING CREDIBILITY

Maximum Likelihood Estimators.

A Fuzzy Model of Software Project Effort Estimation

1 Computing the Standard Deviation of Sample Means

Properties of MLE: consistency, asymptotic normality. Fisher information.

LECTURE 13: Cross-validation

Trigonometric Form of a Complex Number. The Complex Plane. axis. ( 2, 1) or 2 i FIGURE The absolute value of the complex number z a bi is

Desktop Management. Desktop Management Tools

The Stable Marriage Problem

A Faster Clause-Shortening Algorithm for SAT with No Restriction on Clause Length

The Forgotten Middle. research readiness results. Executive Summary


Solutions to Selected Problems In: Pattern Classification by Duda, Hart, Stork

WHEN IS THE (CO)SINE OF A RATIONAL ANGLE EQUAL TO A RATIONAL NUMBER?

FEATURE BASED RECOGNITION OF TRAFFIC VIDEO STREAMS FOR ONLINE ROUTE TRACING

Taking DCOP to the Real World: Efficient Complete Solutions for Distributed Multi-Event Scheduling

GCSE STATISTICS. 4) How to calculate the range: The difference between the biggest number and the smallest number.

Solving Logarithms and Exponential Equations

E-Plex Enterprise Access Control System

.04. This means $1000 is multiplied by 1.02 five times, once for each of the remaining sixmonth

Forecasting. Forecasting Application. Practical Forecasting. Chapter 7 OVERVIEW KEY CONCEPTS. Chapter 7. Chapter 7

Plug-in martingales for testing exchangeability on-line

Basic Elements of Arithmetic Sequences and Series

Swaps: Constant maturity swaps (CMS) and constant maturity. Treasury (CMT) swaps

MATH 083 Final Exam Review

FM4 CREDIT AND BORROWING

Engineering Data Management

Center, Spread, and Shape in Inference: Claims, Caveats, and Insights

I. Chi-squared Distributions

CS103A Handout 23 Winter 2002 February 22, 2002 Solving Recurrence Relations

Configuring Additional Active Directory Server Roles

Chapter 5: Inner Product Spaces

hp calculators HP 12C Statistics - average and standard deviation Average and standard deviation concepts HP12C average and standard deviation

C.Yaashuwanth Department of Electrical and Electronics Engineering, Anna University Chennai, Chennai , India..

Domain 1 - Describe Cisco VoIP Implementations

Evaluation of Different Fitness Functions for the Evolutionary Testing of an Autonomous Parking System

Chatpun Khamyat Department of Industrial Engineering, Kasetsart University, Bangkok, Thailand

Chapter 7: Confidence Interval and Sample Size

Integer Factorization Algorithms

Recovery time guaranteed heuristic routing for improving computation complexity in survivable WDM networks

iprox sensors iprox inductive sensors iprox programming tools ProxView programming software iprox the world s most versatile proximity sensor

Predictive Modeling Data. in the ACT Electronic Student Record

Mann-Whitney U 2 Sample Test (a.k.a. Wilcoxon Rank Sum Test)

BASIC STATISTICS. f(x 1,x 2,..., x n )=f(x 1 )f(x 2 ) f(x n )= f(x i ) (1)

Measures of Spread and Boxplots Discrete Math, Section 9.4

Transcription:

Video course: Motio Estimatio 1 2 Schedule lectures 5P530 5LIN0 Video processig G. de Haa Week 1 Week 2 Week 3 Week 4 Basics h 2 3 Video isplays h 9 Filterig h 4 PR & eiterlacig h 78 Week 5 Week 6 Week 7 Week 8 Image Ehacemet h 5 Motio Estimatio h 10 Object etectio h 11 3 4 Motio Estimatio Motio Estimatio Is there ay motio? How fast? Ito which directio? y 5 Applicatio depedecy of ME 6 Motio estimatio ad codig Sca rate coversio true-motio vectors e-iterlacig Picture rate coversio Video compressio low predictio error MPEG H.2.63 True-motio vectors are usually more cosistet tha codig vectors. osistecy has some but o domiat relevace for codig efficiecy ME Iput + Predictio - error Motio compesatio Image compressio: accuracy demads decrease with icreasig frequecy T-trasform + quatizatio Picture delay Output

Video course: Motio Estimatio 2 7 8 Basic assumptios ad cosequece Gradiet ME methods optical flow ostat brightess assumptio Local liear lumiace assumptio Image -1 F -1 F Image F -1 F 9 Basic assumptios ad cosequece 10 Basic assumptios ad cosequece ostat brightess assumptio Local liear lumiace assumptio ostat brightess assumptio Local liear lumiace assumptio F -1 F F -1 F F -1 F F -1 F - - - 11 Iterative optical flow to deal with o-liear brightess 12 Iterative optical flow F 2 df 2 d i I+1 I+2 I+3 Algorithm: etermie gradiet of displaced frame differece F ad update vector i directio of decreasig F. 1 2 3 4 i i1 u F u d 1 i d F i 1 F F i 1 1 u F 1 d i F i 1 d isplacemet

Video course: Motio Estimatio 3 13 Pel-recursive ME; The use of predictios 14 Not popular for video format coversio Spatial causal predictio Temporal predictio urret piel Iitially due to compleity Real-time applicatios: Iitially codig later also format coversio For codig oe vector per piel is ot attractive There are much simpler block-based methods For format coversio true-motio requiremet problem Artifacts whe assumptios are ivalid Time The temporal cadidate may also be motio compesated 15 Block-matchig ME methods: Full-search 16 Block-matchig; fid correspodig block i image -1 orrespodig block Search area urret block -1 Image umber 17 Fidig block similarity y urret block 18 Formal defiitios Lumiace value i previous picture shifted over cadidate vector : F 1 Search area A block matcher optimizes a fuctio ost varyig : ost F F 1 B Ad the resultig cadidate vector for which the error is miimal is assumed to be the displacemet vector:

4 Video course: Motio Estimatio 19 2 2 1. 1. B B B F F F F Normalised cross-correlatio favourable performace rather high operatios cout 20 2 1 B F F Summed Square Error good performace acceptable operatios cout 21 1 B F F Summed Absolute ifferece still good performace favourable operatios cout 22 0 1 : 1 threshold a threshold a a T with F F T B Sigificatly differetly piels Rather poor performace Favourable operatios cout reduced register size compared to SA 23 orrelatio NF of piels i the two blocks Mea Square Error MSE betwee piels i the blocks Mea Absolute ifferece MA betwee piels i the blocks Number of sigificatly differet piels NS i the two blocks ompleity Alterative match criteria 24 ompariso of match criteria MSE SA NSP

Video course: Motio Estimatio 5 25 Operatios cout of full search block matchig IR sigal 72057650 piels/s Search widow for realistic velocities 6448 HV i piels = 3000 possible vectors assumig iteger vector accuracy Matchig error SA calculatio oly: approimately: 210 11 ops/s NB: Full H 1920108050 requires eve more tha 4 times as may computatios! 5LIN0 Video processig G. de Haa 27 Block-matchig efficiet search techiques 28 Fidig block similarity y Search area urret block 29 Sub-sampled search urret block 30 Sub-sampled full search y y 2 1 Search area Search area

Video course: Motio Estimatio 6 31 3-step search Koga et al. 1981 32 Oe-at-a-time search Sriivasa & Rao 1985 y y Search area 33 Successive approimatio may become ecessary 34 Prevetio of trap i local miimum 3 mi y y 0 b y mi b mi a 0 a 1 2 0 0 i 1j otour plot of error plae mi c 0 c otour plot of error plae mi d 0 d 35 Itermediate coclusio 36 Reality is eve more complicated Efficiet search techiques ca highly reduce the operatios cout of a block matchig motio estimator but icrease the risk of gettig trapped i a local miimum of the error fuctio Methods to prevet the disadvatages of efficiet search icrease compleity agai.

Video course: Motio Estimatio 7 37 Ad sometimes there is o uique solutio 38 ompariso of search techiques FS LogS OTS 39 Piel subsamplig i match fuctio 40 Piel sub-samplig of match error criterio y Search area urret block 41 Piel sub-samplig i match error criterio 42 1 4 2 4 Block subsamplig

Video course: Motio Estimatio 8 43 Block sub-samplig 44 Iterpolate missig motio vectors V-positio Search area adidate vector Up urret block Le curret Ri -1 Lo Picture umber H-positio urret = media{le Up +Lo /2 Ri } 1: urret y = media{le y Up y +Lo y /2 Ri y } 2: Use the vector-media to prevet ew vectors 45 Vector media: geeralizatio of scalar media 46 Summary cost reductio block matchers Scalar media Vector media Simple match criterio Efficiet search strategy Vector that has smallest Euclidea distace to al other vectors Piel sub-samplig i match criterio a factor of four is usually feasible with little ifluece o the performace Block sub-samplig oly valid if motio field is smooth 47 48 Full search block matchig motio vectors Vectors ad object velocity

Video course: Motio Estimatio 9 49 True motio versus best match 1 2 3 Number 7 Arm Scarf Seve: Arm: 1 clear o Scarf: mi clear multiple mi mi Poor relatio vectors & velocities 2 1 SA : 3 B F F 1 is motio vector F image grey value B 88 block piel positio picture r 50 Block-matchig true-motio estimatio 51 What is wrog with block matchig? 52 Blocks are ot uique Optimizatio is ill-posed problem Testig for best match gives too may solutios Solutios: Itroduce bias e.g. towards cosistet vectors test better Post-processig e.g. elimiatig outliers test agai Pre-selectio of likely cadidates test less Itroduce bias Test better 53 Itroduce bias Test better 54 Miimal match error gives o uique solutio B A improved criterio takes ito accout that vectors are cosistet withi objects ad over time: B F F 1 F F 1 P P Ps ad Ps are pealties depedig o spatial ad temporal cosistecy of the cadidate vector PROBLEM: osistetly oly kow after completio Typically solved usig a iterative approach s t Post-processig Test agai..

Video course: Motio Estimatio 10 55 Post processig to improve vector cosistecy Reuter 1988 V-Pos 56 The effect of post-filterig 53 blocks y-2y y-y y y+y y+2y y+3y -4-2 +2 +4 F k k Neighbourhood o p H-Pos Origial Average Media 57 58 Hierarchical block matchig Thoma & Bierlig 1989 Pre-selectio Test less ow-sampled picture at itermediate level oarse estimatio Iitialise Iitialise ow-sampled picture at highest level Medium size update vectors Small size update vectors Origial picture 59 Hierarchical block matchig 60 Pre-selectio i Fourier domai- Phase Plae orrelatio Hierarchical Full search PP is a two-step hierarchical motio estimator 1 Select up to 10 largest correlatio peaks i the Fourier domai usig blocks larger tha 6464 2 Test SA oly for these vectors o small block here 88 i the spatial domai Algorithm origially proposed by Graham Thomas ad applied i professioal studio format coverters

Video course: Motio Estimatio 11 61 Time recursive block matchig Niomya 1982 +6 +4 +2 0-2 -4-6 y -6-4 -2 0 +2 +4 +6 Test SA oly for these vectors cetred aroud result vector previous picture 62 ST-recursive cadidate selectio et time 5LIN0 Video processig G. de Haa 64 3- Recursive Search blockmatchig 65 3-imesioal Recursive Search 3RS 66 3- RS: How to start? Sigle radom update sufficiet! Assumptios: 1. Objects are LARGER tha blocks 2. Objects have INERTIA y Noise vector update Spatial predictio cadidates Temporal predictio cadidate adidate set Spatial cadidates Temporal cadidates Updated cadidates??

Video course: Motio Estimatio 12 67 hose cadidates 68 Spatial Performace Temporal Update 69 Operatios out 70 Smoothess of vector field 140 120 100 80 60 40 20 0 FS: 2000 125 H3: 1500 100 Pel-Rec:1000 75 68 22 10 PP 4-St 3-St OTS H2 3- RS ompute differece with all eighbourig vectors Average over all blocks i vector field This gives vector icosistecy Smoothess is the iverse of vector icosistecy 71 Vector field smoothess 72 Performace testig of true-motio estimator: M2SE 4.5 4.3 4 3.5 3 2.5 2 1.5 ME M F mc 2 MMSE F Fmc 1 F 1 F 1 2 1 0.5 0 0.8 0.9 0.5 0.2 0.3 0.3 4-St 3-St FS OTS H2 PP 3- RS -1 +1 picture r.

Video course: Motio Estimatio 13 73 M2SE score of ME-methods 74 ompariso of best vector fields 250 244 200 196 189 Phase Plae orrelatio motio vectors 3- Recursive Search BM motio vectors 150 100 137 120 112 101 106 50 0 4-St OTS 3-St H2 FS H3 PP 3-RS 75 M up-coversio; Relevace of true-motio vectors 76 Iterpolated images usig full search motio vectors Iterpolated image usig 3-RS motio vectors Simplificatios 1 Reduced cadidate set I cotrast with codig for sca rate coversio true-motio is a absolute must. RATHER SMOOTH THAN AURATE!! 77 With 8 predictio ad 1 update: 9 cadidates 78 3RS 4 cadidates are eough icludig 1 update V-pos urret block Block i curret field Block i previous field V-pos urret block Block i curret field Block i previous field y-y S a S b S c y-y S b y S d Ta y S a y+y T b T c Td y+y y+2y y+2y T -2 - + +2 H-pos -2 - + +2 H-pos

Video course: Motio Estimatio 14 79 Y-estimator advatage for pipe-liig V-pos urret block Block i curret field Block i previous field 80 Effect of cadidate reductio M2SE: 21.5 S: 2.8 M2SE: 26.0 S: 1.7 M2SE: 23.3 S: 2.6 y-y y S a S b y+y y+2y T -2 - + +2 H-pos 81 Block diagram of Y-estimator; Simple hardware 82 Mod p cout Look Up Table Update Geerator Predictio memory N bl 0 U Update urret Best vector selectio Previous Simplificatios 1 Reduced resolutio for ME picture picture 83 ME with reduced resolutio compared to applicatio 84 iput Applicatio like e-iterlacig PR etc. output Block-hoppig ow-scale video sigal Motio estimatio o reduced video Up-scale motio vectors

Video course: Motio Estimatio 15 85 hose cadidates 86 Block-hoppig Spatial Temporal Update I may cases the spatial predictio SP is good. Save calculatios o the average by checkig the other cadidates oly if SP error is above Th alculate all SAs grey blocks are skipped 87 Block hoppig; optimal resource usage Vector memory alc. all alc. SA MU SAs of SP compare s Th Adapt threshold alculate Resource Usage/field Assig best Assig SP MU s 5LIN0 Video processig G. de Haa 89 90 Iteratig more tha oce o a image pair Sophisticatios 300 250 200 150 100 50 0 Effect of iteratios 1 2 3 4 5 6 7 8 9 10 M2SE 100 smoothess Oce 1 st image Remark 1: If estimatig i the output domai 100Hz: 2 iteratios o video ad 4 iteratios o film material! 10 times Remark 2: Effect maily shows i 1 st image after scee chage: 1 iteratio 10 th frame: M2SE: 29 Smoothess: 2.8 10 iteratios 10 th frame: M2SE: 28 Smoothess: 3.5

Video course: Motio Estimatio 16 91 92 Block diagram of Y-estimator; Simple hardware Predictio memory Block-erosio N bl Mod p cout Look Up Table U 0 Update Best vector selectio Block erosio Update Geerator urret picture Previous picture 93 Block erosio No BE 1 step BE 94 The effect of block erosio U U L R Media L V 1 V 2 R V 3 V 4 2 step BE 3 step BE U U L R Media L V 1 V 2 R V 3 V 4 U U U U L R Media L V 1 V 2 R V 3 V 4 L R Media L V 1 V 2 R V 3 V 4 95 96 3-imesioal Recursive Search 3RS Normal sca Meaderig sca Reverse sca Advaced scaig

Sample vectors Video course: Motio Estimatio 17 97 Parametric motio models 98 Global motio estimatio Simple parametric motio model: p1 p3 p5 y... y p2 p4 y p6... p 1 ad p 2 describe pa ad tilt p 3 ad p 4 describe zoom p 5 ad p 6 describe rotatio 99 Sample vector field to calculate model parameters 100 erive robust backgroud model from sample vectors Take media of all estimated parameters to elimiate outliers: p 1 = media{p 1 1 p 2 1 p 3 1 p 18 1 } p 2 = media{p 1 2 p 2 2 p 3 2 p 18 2 } p 3 = media{p 1 3 p 2 3 p 3 3 p 18 3 } p 4 = media{p 1 4 p 2 4 p 3 4 p 18 4 } Motio model with 4 parameters ca be calculated from ay 2 idepedet sample vectors So i total from these 9 vectors 18 models ca be estimated 101 Etra cadidate from parametric motio model SAA4992 102 Effect of etra cadidates from parametric model N bl > Mod p couter Look up table Update vector geerator Predictio memory U 0 update calculate local cadidates micro processor calculates parameters P 1 P 2.. urret picture Best vector selectio Block erosio Previous picture Without parametric cadidate With parametric cadidate learly the effect depeds o the settigs of the cadidate s pealty!

Positio Video course: Motio Estimatio 18 103 104 The basic block matchig cocept Motio estimatio ad occlusio -1 V-positio Search area adidate vector Referece block 8 8 piels H-positio Picture umber 105 How to estimate motio estimatio i occlusio areas? 106 Ambiguities due to ucoverig Iformatio ot available i previous picture -1? Preferece for FG-vector i ucovered areas -1 Time 107 How to estimate motio estimatio i occlusio areas? Iformatio ot available i et picture Iformatio ot available i previous picture 108 Motio estimatio problem i occlusio areas Observatios: Foregroud: Matches always i.e. i previous ad i et picture Backgroud: I case of coverig all backgroud will match i previous picture I case of ucoverig all backgroud will match i et picture -1 oclusio: Switch betwee forward ad backward motio estimatio to prevet ambiguities

Positio Video course: Motio Estimatio 19 109 Solutio: I coverig areas forward estimatio 110 Solutio: I ucoverig areas backward estimatio V-positio Search area adidate vector V-positio Referece block 8 8 piels -1 Referece block 8 8 piels -1 Search area adidate vector H-positio H-positio Picture umber Picture umber 111 Uambiguous motio vectors for origial images 112 ompariso 2 frame ad 3 frame motio estimatio Look for correspodeces i BOTH eighbourig images select predictio with the highest correlatio 2 frame ME 3 frame ME forward backward -1 +1 Time 113 114 Projectio based global motio estimatio Global motio estimatio Algorithm: Accumulate lumiace over all lies Accumulate lumiace over all collums etermie global H- ad V- motio based o these projectios emo Samsug ME

Video course: Motio Estimatio 20 115 Projectio based global motio estimatio 116 Success ad failure of the projectio based global ME Global motio: Miimum SA of projectio curret ad previous image Fik Fik+1 i EMO Global ME 2v i 117 oclusios 118 oclusios Motio estimators for sca rate coversio differ from estimators for codig due to additioal true-motio costrait True motio results from costraits like spatial ad temporal cosistecy 3 optios: better criterio post-processig pre-selectio Pre-selectio optios Hierarchical approach e.g. Phase Plae orrelatio. Recursive approach 3- RS Picture rate coversio requires very cosistet but ot ecessarily very accurate motio vectors iteger resolutio sufficiet the rage should be at least +/-16 piels e-iterlacig requires very accurate motio vectors at least 1/4 piel. For larger vectors the accuracy is less importat 119 Prepare yourself for the eam Last week: hapter 8 Today: hapter 10 SKIP: Object-based ME I recommed you read the tet Book available at Pt9:24 Ad try the eercises i the book: hapter2 3 4 7. 8 9 hapter 10 skip 10.6 You have to dowload VidProc www.ics.ele.tue.l/~dehaa/ Sed me e-mail for password G.d.Haa@tue.l