week 1 report ruben villegas
DESCRIPTION
Week 1 Report Ruben Villegas. Lucas- Kanade Optical Flow. Problems I had Getting used to Matlab Ax = fx(i -1: i +1, j -1: j +1) I f matrix Ax = [1 2 3; 4 5 6; 7 8 9], Ax(:) == [1 4 7 2 5 8 3 6 9]. Solution Ax = fx (i-1:i+1;j-1:j+1)’, where - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/1.jpg)
Week 1 ReportRuben Villegas
![Page 2: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/2.jpg)
Lucas-Kanade Optical Flow
• Problems I had– Getting used to Matlab– Ax = fx(i-1:i+1,j-1:j+1)• If matrix Ax = [1 2 3; 4 5 6; 7 8 9], Ax(:) == [1 4 7 2 5 8 3 6 9].• Solution Ax = fx(i-1:i+1;j-1:j+1)’, where Ax = [1 4 7, 2 5 8, 3 6 9], and A(:) == [1 2 3 4 5 6 7 8 9]
– pinv vs inv for U (A’A )-1A’ft
![Page 3: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/3.jpg)
![Page 4: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/4.jpg)
Functions Implemented
• opticalFlow– Takes 2 images and outputs an optical flow image.
• opticalFlow2– Failed attempt to implement pyramids.– Ft calculation problems.
• opticalFlow3– Takes a sequence and outputs a video of the
optical flow of that video
![Page 5: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/5.jpg)
![Page 6: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/6.jpg)
![Page 7: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/7.jpg)
![Page 8: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/8.jpg)
![Page 9: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/9.jpg)
LK Optical Flow
![Page 10: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/10.jpg)
LK Optical Flow with Pyramids?
![Page 11: Week 1 Report Ruben Villegas](https://reader035.vdocuments.site/reader035/viewer/2022062410/568160e8550346895dd01ef2/html5/thumbnails/11.jpg)
SIFT Descriptor
• Problems I had– Figure out how to use 3-Dimensional Matrixes• Split 16x16 matrixes into 4x4
– uint8 underflow?• m(y-1,x-1) = sqrt(double((im(y+1,x)-im(y-1,x))^2+(im(y,x+1)-im(y,x-1))^2))• Solution, conver im to double beforehand.