SlideShare una empresa de Scribd logo
1 de 37
OPTICAL FLOW
Team 13
Phạm Quang Anh
Nguyễn Đức Quang
Nguyễn Quang Anh
Đỗ Văn Anh
1
Table of contents
1. Problem Definition
2. Types of Optical Flow
3. Sparse Optical Flow – Lucas-Kanade Algorithm
4. Dense Optical Flow – Horn-Schunck Algorithm
5. Conclusion
2
Problem Definition
3
1. Problem Definition
• Optical Flow: Optical flow is the motion of objects between consecutive
frames of sequence, caused by the relative movement between the object
and camera.
• Problem: Given two consecutive image frames, estimate the motion of each
pixel.
4
1. Problem Definition
5
1. Problem Definition
6
2. Types of Optical Flow
• Sparse Optical Flow: Sparse optical flow gives the flow vectors of some
"interesting features" (say few pixels depicting the edges or corners of an
object) within the frame.
7
2. Types of Optical Flow
• Dense Optical Flow: Dense optical flow attempts to compute the optical flow
vector for every pixel of each frame.
• While such computation may be slower, it gives a more accurate result and a
denser result suitable for applications such as learning structure from
motion and video segmentation.
8
Sparse Optical Flow
-
Lucas-Kanade Algorithm
9
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Lucas and Kanade proposed an effective technique to estimate the motion of
interesting features by comparing two consecutive frames.
• The Lucas-Kanade method works under the brightness constancy assumption
and small motion assumption.
10
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Shi-Tomashi Corner Detection: For the implementation of sparse optical flow,
we only track the motion of a feature set of pixels. Features in images are
points of interest which present rich image content information.
11
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Shi-Tomashi Corner Detection:
12
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Shi-Tomashi Corner Detection:
13
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Shi-Tomashi Corner Detection:
14
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Brightness constancy assumption: Brightness of the point will remain the
same.
I(x(t), y(t), t) = C - constant
15
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Small motion assumption:
16
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Small motion assumption:
17
3. Sparse Optical Flow – Lucas-Kanade Algorithm
18
3. Sparse Optical Flow – Lucas-Kanade Algorithm
19
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Aperture problem:
20
3. Sparse Optical Flow – Lucas-Kanade Algorithm
21
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Smoothness constancy assumption: A frame portrays a “natural” scene with
textured objects exhibiting shades of gray that change smoothly.
22
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Smoothness constancy assumption:
23
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Smoothness constancy assumption:
24
3. Sparse Optical Flow – Lucas-Kanade Algorithm
• Smoothness constancy assumption:
25
Dense Optical Flow
-
Horn-Schuck Algorithm
26
4. Dense Optical Flow – Horn-Schunck Algorithm
• The Horn–Schunck method of estimating optical flow is a global method
which introduces a global constraint of smoothness to solve the aperture
problem.
27
4. Dense Optical Flow – Horn-Schunck Algorithm
28
4. Dense Optical Flow – Horn-Schunck Algorithm
29
4. Dense Optical Flow – Horn-Schunck Algorithm
30
4. Dense Optical Flow – Horn-Schunck Algorithm
31
LUCAS-KANADE WITH PYRAMID
32
5. Lucas Kanade with Pyramid
33
In regular optical flow method, we assume the following:
• Brightness constancy
• Small motion
• Spatial conherence
If the object were to move a larger distance
→The traditional optical flow method would work bad
5. Lucas Kanade with Pyramid
34
• Pyramid is built by using multiple copies
of the same image.
• Each level in the pyramid is 1/4th of the
size of the previous level
• The lowest level is of the highest
resolution
• The highest level is of the lowest
resolution
5. Lucas Kanade with Pyramid
35
• Pyramid is built by using multiple copies of the same image.
• Each level in the pyramid is 1/4th of the size of the previous level
• The lowest level is of the highest resolution
• The highest level is of the lowest resolution
• To Downsample: Using Gausian pyramid
• To Upsamgple: Using Laplacian pyramid
5. Lucas Kanade with Pyramid
36
Lucas-Kanade with Pyramid Algorithm:
• Compute ‘simple’ LK optical flow at hightest level
• At level i
• Take flow ui-1, vi-1 from level i-1
• Bilinear interpolate it to create ui
*, vi
* matrices of twice resolution for level I
• Multiply ui
*, vi
* by 2
• Warp level I Gaussian version of I2 according to predicted flow to create I2’
• Apply LK between I2’ and Gaussian version of I1 to get ui’(x, y), vi’(x, y)
• Add corrections ui’ vi’ i.e. ui = ui
* + vi
*
THANK YOU !
37

Más contenido relacionado

Similar a Nhóm 13-OpticalFlow.pptx

Visual object tracking based on local steering kernals
Visual object tracking based on local steering kernalsVisual object tracking based on local steering kernals
Visual object tracking based on local steering kernalsSayahnarahul
 
Lec13 stereo converted
Lec13 stereo convertedLec13 stereo converted
Lec13 stereo convertedBaliThorat1
 
GPU-based Accelerated Spectral Caustic Rendering of Homogeneous Caustic Objects
GPU-based Accelerated Spectral Caustic Rendering of Homogeneous Caustic ObjectsGPU-based Accelerated Spectral Caustic Rendering of Homogeneous Caustic Objects
GPU-based Accelerated Spectral Caustic Rendering of Homogeneous Caustic ObjectsBudianto Tandianus
 
Computer Vision - Image Formation.pdf
Computer Vision - Image Formation.pdfComputer Vision - Image Formation.pdf
Computer Vision - Image Formation.pdfAmmarahMajeed
 
120_SEM_Special_Topics.ppt
120_SEM_Special_Topics.ppt120_SEM_Special_Topics.ppt
120_SEM_Special_Topics.pptzaki194502
 
Introduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer VisionIntroduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer Visionothersk46
 
Object detection at night
Object detection at nightObject detection at night
Object detection at nightSanjay Crúzé
 
Spectral clustering Tutorial
Spectral clustering TutorialSpectral clustering Tutorial
Spectral clustering TutorialZitao Liu
 
Quantum Computing Quantum Internet 2020_unit 1 By: Prof. Lili Saghafi
Quantum Computing Quantum Internet 2020_unit 1 By: Prof. Lili SaghafiQuantum Computing Quantum Internet 2020_unit 1 By: Prof. Lili Saghafi
Quantum Computing Quantum Internet 2020_unit 1 By: Prof. Lili SaghafiProfessor Lili Saghafi
 
Detection&Tracking - Thermal imaging object detection and tracking
Detection&Tracking - Thermal imaging object detection and trackingDetection&Tracking - Thermal imaging object detection and tracking
Detection&Tracking - Thermal imaging object detection and trackinghadarpinhas1
 
SPACE DEBRIS PALAT PARLAM no authors
SPACE DEBRIS PALAT PARLAM no authorsSPACE DEBRIS PALAT PARLAM no authors
SPACE DEBRIS PALAT PARLAM no authorsMARIUS EUGEN OPRAN
 
Solar System Processing with LSST: A Status Update
Solar System Processing with LSST: A Status UpdateSolar System Processing with LSST: A Status Update
Solar System Processing with LSST: A Status UpdateMario Juric
 
Temporal Superpixels Based on Proximity-Weighted Patch Matching
Temporal Superpixels Based on Proximity-Weighted Patch MatchingTemporal Superpixels Based on Proximity-Weighted Patch Matching
Temporal Superpixels Based on Proximity-Weighted Patch MatchingNAVER Engineering
 
Intro to Neural Networks
Intro to Neural NetworksIntro to Neural Networks
Intro to Neural NetworksDean Wyatte
 
Paris Master Class 2011 - 07 Dynamic Global Illumination
Paris Master Class 2011 - 07 Dynamic Global IlluminationParis Master Class 2011 - 07 Dynamic Global Illumination
Paris Master Class 2011 - 07 Dynamic Global IlluminationWolfgang Engel
 
Oxford 05-oct-2012
Oxford 05-oct-2012Oxford 05-oct-2012
Oxford 05-oct-2012Ted Dunning
 
PR-132: SSD: Single Shot MultiBox Detector
PR-132: SSD: Single Shot MultiBox DetectorPR-132: SSD: Single Shot MultiBox Detector
PR-132: SSD: Single Shot MultiBox DetectorJinwon Lee
 

Similar a Nhóm 13-OpticalFlow.pptx (20)

Visual object tracking based on local steering kernals
Visual object tracking based on local steering kernalsVisual object tracking based on local steering kernals
Visual object tracking based on local steering kernals
 
Lec13 stereo converted
Lec13 stereo convertedLec13 stereo converted
Lec13 stereo converted
 
GPU-based Accelerated Spectral Caustic Rendering of Homogeneous Caustic Objects
GPU-based Accelerated Spectral Caustic Rendering of Homogeneous Caustic ObjectsGPU-based Accelerated Spectral Caustic Rendering of Homogeneous Caustic Objects
GPU-based Accelerated Spectral Caustic Rendering of Homogeneous Caustic Objects
 
Computer Vision - Image Formation.pdf
Computer Vision - Image Formation.pdfComputer Vision - Image Formation.pdf
Computer Vision - Image Formation.pdf
 
120_SEM_Special_Topics.ppt
120_SEM_Special_Topics.ppt120_SEM_Special_Topics.ppt
120_SEM_Special_Topics.ppt
 
Introduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer VisionIntroduction to Binocular Stereo in Computer Vision
Introduction to Binocular Stereo in Computer Vision
 
Object detection at night
Object detection at nightObject detection at night
Object detection at night
 
november6.ppt
november6.pptnovember6.ppt
november6.ppt
 
Spectral clustering Tutorial
Spectral clustering TutorialSpectral clustering Tutorial
Spectral clustering Tutorial
 
Quantum Computing Quantum Internet 2020_unit 1 By: Prof. Lili Saghafi
Quantum Computing Quantum Internet 2020_unit 1 By: Prof. Lili SaghafiQuantum Computing Quantum Internet 2020_unit 1 By: Prof. Lili Saghafi
Quantum Computing Quantum Internet 2020_unit 1 By: Prof. Lili Saghafi
 
Detection&Tracking - Thermal imaging object detection and tracking
Detection&Tracking - Thermal imaging object detection and trackingDetection&Tracking - Thermal imaging object detection and tracking
Detection&Tracking - Thermal imaging object detection and tracking
 
SPACE DEBRIS PALAT PARLAM no authors
SPACE DEBRIS PALAT PARLAM no authorsSPACE DEBRIS PALAT PARLAM no authors
SPACE DEBRIS PALAT PARLAM no authors
 
Prelim
PrelimPrelim
Prelim
 
Solar System Processing with LSST: A Status Update
Solar System Processing with LSST: A Status UpdateSolar System Processing with LSST: A Status Update
Solar System Processing with LSST: A Status Update
 
Temporal Superpixels Based on Proximity-Weighted Patch Matching
Temporal Superpixels Based on Proximity-Weighted Patch MatchingTemporal Superpixels Based on Proximity-Weighted Patch Matching
Temporal Superpixels Based on Proximity-Weighted Patch Matching
 
Time lens
Time lensTime lens
Time lens
 
Intro to Neural Networks
Intro to Neural NetworksIntro to Neural Networks
Intro to Neural Networks
 
Paris Master Class 2011 - 07 Dynamic Global Illumination
Paris Master Class 2011 - 07 Dynamic Global IlluminationParis Master Class 2011 - 07 Dynamic Global Illumination
Paris Master Class 2011 - 07 Dynamic Global Illumination
 
Oxford 05-oct-2012
Oxford 05-oct-2012Oxford 05-oct-2012
Oxford 05-oct-2012
 
PR-132: SSD: Single Shot MultiBox Detector
PR-132: SSD: Single Shot MultiBox DetectorPR-132: SSD: Single Shot MultiBox Detector
PR-132: SSD: Single Shot MultiBox Detector
 

Último

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 

Último (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 

Nhóm 13-OpticalFlow.pptx

  • 1. OPTICAL FLOW Team 13 Phạm Quang Anh Nguyễn Đức Quang Nguyễn Quang Anh Đỗ Văn Anh 1
  • 2. Table of contents 1. Problem Definition 2. Types of Optical Flow 3. Sparse Optical Flow – Lucas-Kanade Algorithm 4. Dense Optical Flow – Horn-Schunck Algorithm 5. Conclusion 2
  • 4. 1. Problem Definition • Optical Flow: Optical flow is the motion of objects between consecutive frames of sequence, caused by the relative movement between the object and camera. • Problem: Given two consecutive image frames, estimate the motion of each pixel. 4
  • 7. 2. Types of Optical Flow • Sparse Optical Flow: Sparse optical flow gives the flow vectors of some "interesting features" (say few pixels depicting the edges or corners of an object) within the frame. 7
  • 8. 2. Types of Optical Flow • Dense Optical Flow: Dense optical flow attempts to compute the optical flow vector for every pixel of each frame. • While such computation may be slower, it gives a more accurate result and a denser result suitable for applications such as learning structure from motion and video segmentation. 8
  • 10. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Lucas and Kanade proposed an effective technique to estimate the motion of interesting features by comparing two consecutive frames. • The Lucas-Kanade method works under the brightness constancy assumption and small motion assumption. 10
  • 11. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Shi-Tomashi Corner Detection: For the implementation of sparse optical flow, we only track the motion of a feature set of pixels. Features in images are points of interest which present rich image content information. 11
  • 12. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Shi-Tomashi Corner Detection: 12
  • 13. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Shi-Tomashi Corner Detection: 13
  • 14. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Shi-Tomashi Corner Detection: 14
  • 15. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Brightness constancy assumption: Brightness of the point will remain the same. I(x(t), y(t), t) = C - constant 15
  • 16. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Small motion assumption: 16
  • 17. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Small motion assumption: 17
  • 18. 3. Sparse Optical Flow – Lucas-Kanade Algorithm 18
  • 19. 3. Sparse Optical Flow – Lucas-Kanade Algorithm 19
  • 20. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Aperture problem: 20
  • 21. 3. Sparse Optical Flow – Lucas-Kanade Algorithm 21
  • 22. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Smoothness constancy assumption: A frame portrays a “natural” scene with textured objects exhibiting shades of gray that change smoothly. 22
  • 23. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Smoothness constancy assumption: 23
  • 24. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Smoothness constancy assumption: 24
  • 25. 3. Sparse Optical Flow – Lucas-Kanade Algorithm • Smoothness constancy assumption: 25
  • 27. 4. Dense Optical Flow – Horn-Schunck Algorithm • The Horn–Schunck method of estimating optical flow is a global method which introduces a global constraint of smoothness to solve the aperture problem. 27
  • 28. 4. Dense Optical Flow – Horn-Schunck Algorithm 28
  • 29. 4. Dense Optical Flow – Horn-Schunck Algorithm 29
  • 30. 4. Dense Optical Flow – Horn-Schunck Algorithm 30
  • 31. 4. Dense Optical Flow – Horn-Schunck Algorithm 31
  • 33. 5. Lucas Kanade with Pyramid 33 In regular optical flow method, we assume the following: • Brightness constancy • Small motion • Spatial conherence If the object were to move a larger distance →The traditional optical flow method would work bad
  • 34. 5. Lucas Kanade with Pyramid 34 • Pyramid is built by using multiple copies of the same image. • Each level in the pyramid is 1/4th of the size of the previous level • The lowest level is of the highest resolution • The highest level is of the lowest resolution
  • 35. 5. Lucas Kanade with Pyramid 35 • Pyramid is built by using multiple copies of the same image. • Each level in the pyramid is 1/4th of the size of the previous level • The lowest level is of the highest resolution • The highest level is of the lowest resolution • To Downsample: Using Gausian pyramid • To Upsamgple: Using Laplacian pyramid
  • 36. 5. Lucas Kanade with Pyramid 36 Lucas-Kanade with Pyramid Algorithm: • Compute ‘simple’ LK optical flow at hightest level • At level i • Take flow ui-1, vi-1 from level i-1 • Bilinear interpolate it to create ui *, vi * matrices of twice resolution for level I • Multiply ui *, vi * by 2 • Warp level I Gaussian version of I2 according to predicted flow to create I2’ • Apply LK between I2’ and Gaussian version of I1 to get ui’(x, y), vi’(x, y) • Add corrections ui’ vi’ i.e. ui = ui * + vi *