Patch tracking based on comparing its pixels 1

Podobné dokumenty
Patch tracking based on comparing its pixels 1

Tento materiál byl vytvořen v rámci projektu Operačního programu Vzdělávání pro konkurenceschopnost.

Gymnázium, Brno, Slovanské nám. 7 WORKBOOK. Mathematics. Teacher: Student:

Geometry of image formation

VY_32_INOVACE_06_Předpřítomný čas_03. Škola: Základní škola Slušovice, okres Zlín, příspěvková organizace

Introduction to MS Dynamics NAV

Návrh a implementace algoritmů pro adaptivní řízení průmyslových robotů

GUIDELINES FOR CONNECTION TO FTP SERVER TO TRANSFER PRINTING DATA

Tento materiál byl vytvořen v rámci projektu Operačního programu Vzdělávání pro konkurenceschopnost.

Náhradník Náhradník 5.A

WORKSHEET 1: LINEAR EQUATION 1

Projekt: ŠKOLA RADOSTI, ŠKOLA KVALITY Registrační číslo projektu: CZ.1.07/1.4.00/ EU PENÍZE ŠKOLÁM

USING VIDEO IN PRE-SET AND IN-SET TEACHER TRAINING

II_2-01_39 ABBA,Happy New Year, řešení II_2-01_39 ABBA,Happy New Year, for students

EU peníze středním školám digitální učební materiál

Compression of a Dictionary

User manual SŘHV Online WEB interface for CUSTOMERS June 2017 version 14 VÍTKOVICE STEEL, a.s. vitkovicesteel.com

Střední průmyslová škola strojnická Olomouc, tř.17. listopadu 49

Škola: Střední škola obchodní, České Budějovice, Husova 9. Inovace a zkvalitnění výuky prostřednictvím ICT

Informace o písemných přijímacích zkouškách. Doktorské studijní programy Matematika

Náhradník Náhradník 5.A

Tabulka 1 Stav členské základny SK Praga Vysočany k roku 2015 Tabulka 2 Výše členských příspěvků v SK Praga Vysočany Tabulka 3 Přehled finanční

Aplikace matematiky. Dana Lauerová A note to the theory of periodic solutions of a parabolic equation

Tento materiál byl vytvořen v rámci projektu Operačního programu Vzdělávání pro konkurenceschopnost.

PSANÍ. M e t o d i c k é p o z n á m k y k z á k l a d o v é m u t e x t u :

EXACT DS OFFICE. The best lens for office work

Vánoční sety Christmas sets

Perception Motivated Hybrid Approach to Tone Mapping

AIC ČESKÁ REPUBLIKA CZECH REPUBLIC

Invitation to ON-ARRIVAL TRAINING COURSE for EVS volunteers

Využití hybridní metody vícekriteriálního rozhodování za nejistoty. Michal Koláček, Markéta Matulová

Comparation of mobile

Czech Republic. EDUCAnet. Střední odborná škola Pardubice, s.r.o.

2. Entity, Architecture, Process

Why PRIME? 20 years of Erasmus Programme Over 2 million students in total Annually

CHAPTER 5 MODIFIED MINKOWSKI FRACTAL ANTENNA

AJ 3_16_Prague.notebook. December 20, úvodní strana

Manuál pro vyplnění přihlášky

Výukový materiál zpracovaný v rámci operačního programu Vzdělávání pro konkurenceschopnost

Immigration Studying. Studying - University. Stating that you want to enroll. Stating that you want to apply for a course.

Immigration Studying. Studying - University. Stating that you want to enroll. Stating that you want to apply for a course.

Just write down your most recent and important education. Remember that sometimes less is more some people may be considered overqualified.

The Over-Head Cam (OHC) Valve Train Computer Model

VY_22_INOVACE_84. P3 U3 Revision

The Czech education system, school

Výukový materiál zpracovaný v rámci projektu EU peníze do škol. illness, a text

Střední průmyslová škola strojnická Olomouc, tř.17. listopadu 49

Náhradník Náhradník 5.A

Název školy STŘEDNÍ ODBORNÁ ŠKOLA a STŘEDNÍ ODBORNÉ UČILIŠTĚ, Česká Lípa, 28. října 2707, příspěvková organizace

Výukový materiál zpracovaný v rámci operačního programu Vzdělávání pro konkurenceschopnost

Číslo projektu: CZ.1.07/1.5.00/ Název projektu: Inovace a individualizace výuky

Enabling Intelligent Buildings via Smart Sensor Network & Smart Lighting

Algebraic methods in Computer Vision Zuzana Kukelova, Tomas Pajdla, Martin Bujnak

Anotace Mgr. Filip Soviš (Autor) Angličtina, čeština Speciální vzdělávací potřeby - žádné -

Transportation Problem

CZ.1.07/1.5.00/ Zefektivnění výuky prostřednictvím ICT technologií III/2 - Inovace a zkvalitnění výuky prostřednictvím ICT

Extrakce nezávislé komponenty

Digitální učební materiál

ENVIRONMENTAL EDUCATION IN.

My Year Manager is Vedoucí našeho ročníku je. P.E. is on Tělocvik mám v

Číslo materiálu: VY 32 INOVACE 29/18. Číslo projektu: CZ.1.07/1.4.00/

LOGBOOK. Blahopřejeme, našli jste to! Nezapomeňte. Prosím vyvarujte se downtrade

DOPLNĚK K FACEBOOK RETRO EDICI STRÁNEK MAVO JAZYKOVÉ ŠKOLY MONCHHICHI

CZ.1.07/1.5.00/

Přečtěte si následující inzerát na seznámení. Doplňte chybějící výrazy a vypracujte následné otázky.

Dynamic Development of Vocabulary Richness of Text. Miroslav Kubát & Radek Čech University of Ostrava Czech Republic

Present Perfect x Past Simple Předpřítomný čas x Minulý čas Pracovní list

Střední průmyslová škola strojnická Olomouc, tř.17. listopadu 49

POSLECH. Cinema or TV tonight (a dialogue between Susan and David about their plans for tonight)

Náhradník Náhradník 9.A

Střední průmyslová škola strojnická Olomouc, tř.17. listopadu 49

Jak importovat profily do Cura (Windows a

ADC Young Creative. Brief MOBIL.CZ

Vzdělávací materiál projektu Zlepšení podmínek výuky v ZŠ Sloup. Questions

II_ _Listening Pracovní list č. 2.doc II_ _Listening Pracovní list č. 3.doc II_ _Listening Řešení 1,2.doc

Database systems. Normal forms

Města (rodné město a další důležitá města) Michal Kadlec, Dis

Střední průmyslová škola strojnická Olomouc, tř.17. listopadu 49

CZ.1.07/1.5.00/

PART 2 - SPECIAL WHOLESALE OFFER OF PLANTS SPRING 2016 NEWS MAY 2016 SUCCULENT SPECIAL WHOLESALE ASSORTMENT

Gymnázium a Střední odborná škola, Rokycany, Mládežníků 1115

POSLECH. Kate and Jim are friends. It's Thursday afternoon and they are talking about their free time activities.

Střední průmyslová škola strojnická Olomouc, tř.17. listopadu 49

Mechanika Teplice, výrobní družstvo, závod Děčín TACHOGRAFY. Číslo Servisní Informace Mechanika:

Projekt: ŠKOLA RADOSTI, ŠKOLA KVALITY Registrační číslo projektu: CZ.1.07/1.4.00/ EU PENÍZE ŠKOLÁM

Postup objednávky Microsoft Action Pack Subscription

Projekt MŠMT ČR: EU peníze školám

5. Učebnice str. 74, cvičení 5. Vybíráme podle jídelního lístku.

SEZNAM PŘÍLOH. Příloha 1 Dotazník Tartu, Estonsko (anglická verze) Příloha 2 Dotazník Praha, ČR (česká verze)... 91

CZ.1.07/1.5.00/

5.VY_32_INOVACE_AJ_UMB5, Vztažné věty.notebook. September 09, 2013

Gymnázium, Brno, Elgartova 3

VŠEOBECNÁ TÉMATA PRO SOU Mgr. Dita Hejlová

Střední odborná škola stavební a Střední odborné učiliště stavební Rybitví

STŘEDNÍ ODBORNÁ ŠKOLA a STŘEDNÍ ODBORNÉ UČILIŠTĚ, Česká Lípa, 28. října 2707, příspěvková organizace

DUM DIGITÁLNÍ UČEBNÍ MATERIÁL ANGLIČTINA. Mgr. Kateřina Kasanová

Aktivita FCE V. Stručný popis aktivity: žáci si prohloubí slovní zásobu, práci s textem

Angličtina v matematických softwarech 2 Vypracovala: Mgr. Bronislava Kreuzingerová

Energy vstupuje na trh veterinárních produktů Energy enters the market of veterinary products

Foster Bohemia s.r.o. Laboratoř měření imisí Immission Measurement Laboratory. Mezi Rolemi 54/10, Praha 5, Jinonice, Česká republika

Transkript:

Patch tracking based on comparing its piels 1 Tomáš Svoboda, svoboda@cmp.felk.cvut.cz Czech Technical University in Prague, Center for Machine Perception http://cmp.felk.cvut.cz Last update: March 23, 2015 Talk Outline comparing patch piels normalized cross-correlation, ssd... KLT - gradient based optimization good features to track 1 Please note that the lecture will be accompanied be several sketches and derivations on the blackboard and few live-interactive demos in Matlab What is the problem? 2/38 : CTU campus, door of G building Tracking of dense sequences camera motion T - Template I - Image 3/38 Scene static, camera moves.

Tracking of dense sequences object motion T - Template I - Image 4/38 Camera static, object moves. Alignment of an image (patch) 5/38 Goal is to align a template image T () to an input image I(). column vector containing image coordinates [, y]. The I() could be also a small subwindow within an image. How to measure the alignment? What is the best criterial function? 6/38 How to find the best match, in other words, how to find etremum of the criterial function? Criterial function What are the desired properties (on a certain domain)? conve (remember the optimization course?) discriminative...

Normalized cross-correlation 7/38 You may know it as correlation coefficient (from statistics) ρx,y = cov(x, Y ) E[(X µx )(Y µy )] = σx σy σx σy where σ means standard deviation. Having template T (k, l) and image I(, y), T (k, l) T I( + k, y + l) I(, y) r r(, y) = q 2 2 P P P P T I(, y) T (k, l) I( + k, y + l) k l k l P P k l Normalized cross-correlation in picture 8/38 criterial function ncc 1 1 0.6 0.4 2 2 3 3 4 4 0 0 5 5 0 0.2 0.4 0.6 0 well, definitely not conve 0.2 but the discriminability looks promising 0.8 very efficient in computation, see [3]2. 2 0 check also normcorr2 in Matlab Sum of squared differences ssd (, y) = XX k l 9/38 2 (T (k, l) I( + k, y + l)) criterial function ssd 1 1 2 2 3 3 4 4 0 0 5 5 7 10 4 3.5 3 2.5 0 2 1.5 1 0.5 0 0

Sum of absolute differences sad (, y) = XX k l 10/38 T (k, l) I( + k, y + l) criterial function sad 5 10 2.2 1.8 1 1 1.6 2 2 3 3 4 4 0 0 5 5 2 1.4 1.2 1 0.8 0.6 0.4 0.2 0 0 SAD for the door part 11/38 criterial function sad 4 10 10 9 8 1 7 1 6 2 5 2 4 3 3 3 2 4 0 1 5 0 2 3 4 0 5 SAD for the door part truncated 12/38 criterial function sad_truncated 8000 0 1 0 00 2 0 1 2 0 3 0 3 4 0 0 5 0 2 3 4 0 Differences greater than 20 intensity levels are counted as 20. 5 0

Normalized cross-correlation: how it works 13/38 live demo for various patches Normalized cross-correlation: tracking 14/38 What went wrong? Why did it failed? Suggestions for improvement? Tracking as an optimization problem finding etrema of a criterial function... 15/38... sounds like an optimization problem Kanade Lucas Tomasi (KLT) tracker Iteratively minimizes sum of square differences. It is a Gauss-Newton gradient algorithm.

Importance in Computer Vision Firstly published in 1981 as an image registration method [4]. 16/38 Improved many times, most importantly by Carlo Tomasi [5, 6] Free implementation(s) available3. Also part of the OpenCV library4. After more than two decades, a project5 at CMU dedicated to this single algorithm and results published in a premium journal [1]. Part of plethora computer vision algorithms. Our eplanation follows mainly the paper [1]. It is a good reading for those who are also interested in alternative solutions. 3 http://www.ces.clemson.edu/~stb/klt/ 4 http://opencv.org/ 5 Lucas-Kanade 20 Years On https://www.ri.cmu.edu/research_project_detail.html?project_ id=515&menu_id=261 Original Lucas-Kanade algorithm I Goal is to align a template image T () to an input image I(). column vector containing image coordinates [, y]. The I() could be also a small subwindow withing an image. Set of allowable warps W(; p), where p is a vector of parameters. For translations [ ] + p1 W(; p) = y + p 2 W(; p) can be arbitrarily comple The best alignment, p, minimizes image dissimilarity [I(W(; p)) T ()] 2 17/38 Original Lucas-Kanade algorithm II 18/38 [I(W(; p)) T ()] 2 I(W(; p) is nonlinear! The warp W(; p) may be linear but the piels value are, in general, non-linear. In fact, they are essentially unrelated to. Linearization of the image: It is assumed that some p is known and best increment p is sought. The modified problem [I(W(; p + p)) T ()] 2 is solved with respect to p. When found then p gets updated p p + p...

Original Lucas-Kanade algorithm III 19/38 [I(W(; p + p)) T ()] 2 linearization by performing first order Taylor epansion 6 [I(W(; p)) + p T ()]2 I = [ I, I W y ] is the gradient image computed at W(; p). The term is the Jacobian of the warp. 6 Detailed eplanation on the blackboard. Original Lucas-Kanade algorithm IV Differentiate W [I(W(; p)) + I p T ()]2 with respect to p 20/38 2 [ ] [ ] I(W(; p)) + p T () setting equality to zero yields p = H 1 [ ] [T () I(W(; p))] where H is (Gauss-Newton) approimation of Hessian matri. H = [ ] [ ] Iterate: The Lucas-Kanade algorithm Summary 21/38 1. Warp I with W(; p) 2. Warp the gradient I with W(; p) 3. Evaluate the Jacobian W image 4. Compute the H = 5. Compute p = H 1 [ at (; p) and compute the steepest descent [ ] [ 6. Update the parameters p p + p until p ɛ ] ] [T () I(W(; p))]

Eample of convergence 22/38 Eample of convergence 23/38 Convergence : Initial state is within the basin of attraction Eample of divergence 24/38 Divergence : Initial state is outside the basin of attraction

Eample on-line demo 25/38 Let play and see... What are good features (windows) to track? 26/38 What are good features (windows) to track? How to select good templates T () for image registration, object tracking. 27/38 p = H 1 [ ] [T () I(W(; p))] where H is the matri H = [ ] [ ] The stability of the iteration is mainly influenced by the inverse of Hessian. We can study its eigenvalues. Consequently, the criterion of a good feature window is min(λ 1, λ 2 ) > λ min (teturedness).

What are good features for translations? [ + p1 Consider translation W(; p) = y + p [ ] 2 W 1 0 = 0 1 [ H = = [ 1 0 0 1 = ( I I I y ] [ ] [ I I y ) 2 I I y ( I y ]. The Jacobian is then ] ) 2 ] [ I, I ] [ 1 0 0 1 ] 28/38 The image windows with varying derivatives in both directions. Homeogeneous areas are clearly not suitable. Teture oriented mostly in one direction only would cause instability for this translation. What are the good points for translations? The matri H = ( I ) 2 I I y I I y ( I y ) 2 Should have large eigenvalues. We have seen the matri already, where? 29/38 Harris corner detector [2]! The matri is sometimes called Harris matri. Eperiments - no occlusions 30/38

Eperiments - occlusions 31/38 Eperiments - occlusions with dissimilarity 32/38 Eperiments - object motion 33/38

Eperiments door tracking 34/38 Eperiments door tracking smoothed 35/38 Comparison of ncc vs KLT tracking 36/38

References 37/38 [1] Simon Baker and Iain Matthews. Lucas-Kanade 20 years on: A unifying framework. International Journal of Computer Vision, 56(3):221 255, 4. [2] C. Harris and M. Stephen. A combined corner and edge detection. In M. M. Matthews, editor, Proceedings of the 4th ALVEY vision conference, pages 147 151, University of Manchaster, England, September 1988. on-line copies available on the web. [3] J.P. Lewis. Fast template matching. In Vision Interfaces, pages 120 123, 1995. Etended version published on-line as "Fast Normalized Cross-Correlation" at http://scribblethink.org/work/nvisioninterface/nip.html. [4] Bruce D. Lucas and Takeo Kanade. An iterative image registration technique with an application to stereo vision. In Proceedings of the 7th International Conference on Artificial Intelligence, pages 674 679, August 1981. [5] Jianbo Shi and Carlo Tomasi. Good features to track. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 593, 1994. [6] Carlo Tomasi and Takeo Kanade. Detection and tracking of point features. Technical Report CMU-CS-91-132, Carnegie Mellon University, April 1991. End 38/38