SlideShare a Scribd company logo
1 of 219
Alignment and tracking
16-385 Computer Vision
Spring 2020, Lecture 25
http://www.cs.cmu.edu/~16385/
ā€¢ Homework 6 has been posted and is due on April 22nd.
- Any questions about the homework?
- How many of you have looked at/started/finished homework 6?
ā€¢ Take-home quiz 10 has been posted and is due on April 19th.
Course announcements
ā€¢ Finish optical flow lecture.
ā€¢ Motion magnification using optical flow.
ā€¢ Image alignment.
ā€¢ Lucas-Kanade alignment.
ā€¢ Baker-Matthews alignment.
ā€¢ Inverse alignment.
ā€¢ KLT tracking.
ā€¢ Mean-shift tracking.
ā€¢ Modern trackers.
Overview of todayā€™s lecture
Slide credits
Most of these slides were adapted from:
ā€¢ Kris Kitani (16-385, Spring 2017).
Motion magnification
using optical flow
original motion-magnified
How would you achieve this effect?
ā€¢ Compute optical flow from frame to frame.
ā€¢ Magnify optical flow velocities.
ā€¢ Appropriately warp image intensities.
naĆÆvely motion-magnified motion-magnified
How would you achieve this effect?
ā€¢ Compute optical flow from frame to frame.
ā€¢ Magnify optical flow velocities.
ā€¢ Appropriately warp image intensities.
In practice, many additional
steps are required for a good
result.
Some more examples
Some more examples
Image alignment
http://www.humansensing.cs.cmu.edu/intraface/
How can I find in the image?
Idea #1: Template Matching
Slow, combinatory, global solution
Idea #2: Pyramid Template Matching
Faster, combinatory, locally optimal
Idea #3: Model refinement
Fastest, locally optimal
(when you have a good initial solution)
Some notation before we get into the mathā€¦
2D image transformation
2D image coordinate
Parameters of the transformation
Translation
Affine
Pixel value at a coordinate
Warped image
Some notation before we get into the mathā€¦
2D image transformation
2D image coordinate
Parameters of the transformation
Translation
transform coordinate
Affine
Pixel value at a coordinate
Warped image
Some notation before we get into the mathā€¦
2D image transformation
2D image coordinate
Parameters of the transformation
Translation
transform coordinate
Affine
Pixel value at a coordinate
affine transform
coordinate
Warped image
can be written in matrix form when linear
affine warp matrix can also be 3x3 when last row is [0 0 1]
is a function of ____ variables
takes a ________ as input and returns a _______
returns a ______ of dimension ___ x ___
where N is _____ for an affine model
this warp changes pixel values?
Image alignment
(problem definition)
warped image template image
Find the warp parameters p such that
the SSD is minimized
Find the warp parameters p such that
the SSD is minimized
Image alignment
(problem definition)
warped image template image
Find the warp parameters p such that
the SSD is minimized
How could you find a solution to this problem?
This is a non-linear (quadratic) function of a
non-parametric function!
(Function I is non-parametric)
Hard to optimize
What can you do to make it easier to solve?
Hard to optimize
What can you do to make it easier to solve?
assume good initialization,
linearized objective and update incrementally
This is a non-linear (quadratic) function of a
non-parametric function!
(Function I is non-parametric)
Lucas-Kanade alignment
If you have a good initial guess pā€¦
can be written as ā€¦
(a small incremental adjustment)
(pretty strong assumption)
(this is what we are solving for now)
How can we linearize the function I for a really small perturbation of p?
This is still a non-linear (quadratic) function of a
non-parametric function!
(Function I is non-parametric)
How can we linearize the function I for a really small perturbation of p?
Taylor series approximation!
This is still a non-linear (quadratic) function of a
non-parametric function!
(Function I is non-parametric)
Multivariable Taylor Series Expansion
(First order approximation)
Multivariable Taylor Series Expansion
(First order approximation)
Recall:
chain rule
short-hand
short-hand
Linear approximation
Multivariable Taylor Series Expansion
(First order approximation)
What are the unknowns here?
Linear approximation
Multivariable Taylor Series Expansion
(First order approximation)
Now, the function is a linear function of the unknowns
is a function of _____ variables
is a _________ of dimension ___ x ___
is a _________ of dimension ___ x ___
is a __________ of dimension ___ x ___
output of
The Jacobian
Affine transform
Rate of change of the warp
(A matrix of partial derivatives)
is a _________ of dimension ___ x ___
is a _________ of dimension ___ x ___
is a _________ of dimension ___ x ___
pixel coordinate
(2 x 1)
pixel coordinate
(2 x 1)
image intensity
(scalar)
pixel coordinate
(2 x 1)
image intensity
(scalar)
warp function
(2 x 1)
pixel coordinate
(2 x 1)
image intensity
(scalar)
warp function
(2 x 1)
warp parameters
(6 for affine)
pixel coordinate
(2 x 1)
image intensity
(scalar)
warp function
(2 x 1)
warp parameters
(6 for affine)
image gradient
(1 x 2)
pixel coordinate
(2 x 1)
image intensity
(scalar)
warp function
(2 x 1)
warp parameters
(6 for affine)
image gradient
(1 x 2)
Partial derivatives of warp function
(2 x 6)
pixel coordinate
(2 x 1)
image intensity
(scalar)
warp function
(2 x 1)
warp parameters
(6 for affine)
image gradient
(1 x 2)
Partial derivatives of warp function
(2 x 6)
incremental warp
(6 x 1)
pixel coordinate
(2 x 1)
image intensity
(scalar)
warp function
(2 x 1)
warp parameters
(6 for affine)
image gradient
(1 x 2)
Partial derivatives of warp function
(2 x 6)
incremental warp
(6 x 1)
template image intensity
(scalar)
When you implement this, you will compute everything in parallel and store as matrix ā€¦ donā€™t loop over x!
Summary
(of Lucas-Kanade Image Alignment)
Solve for increment
Taylor series approximation
Linearize
Difficult non-linear optimization problem
Assume known approximate solution
Strategy:
Problem:
then solve for
warped image template image
OK, so how do we solve this?
Another way to look at itā€¦
(moving terms around)
Have you seen this form of optimization problem before?
vector of
variables
vector of
constants
constant
Another way to look at itā€¦
How do you solve this?
Looks like
variable
constant constant
Least squares approximation
is solved by
is optimized when
where
Applied to our tasks:
after applying
Solve for increment
Taylor series approximation
Linearize
Difficult non-linear optimization problem
Assume known approximate solution
Strategy:
Solve:
warped image template image
Solution:
Solution to least squares
approximation
Hessian
Gauss-Newton gradient decent
non-linear optimization!
This is calledā€¦
1. Warp image
2. Compute error image
3. Compute gradient
4. Evaluate Jacobian
5. Compute Hessian
6. Compute
7. Update parameters
Lucas Kanade (Additive alignment)
Just 8 lines of code!
xā€™coordinates of the warped image
(gradients of the warped image)
Baker-Matthews
alignment
Image Alignment
(start with an initial solution, match the image and template)
Additive Alignment
incremental perturbation of parameters
Image Alignment Objective Function
Given an initial solutionā€¦several possible formulations
Compositional Alignment
incremental warps of image
Image Alignment Objective Function
Given an initial solutionā€¦several possible formulations
Additive Alignment
incremental perturbation of parameters
Additive strategy
go back, adjust and try
again
first shot
second shot
Compositional strategy
start from here
first shot
second shot
Additive
I(x)
W(x;p)
T(x)
Additive
I(x)
W(x;p+Dp)
W(x;p)
W(x;0 + Dp) = W(x;Dp) W(x;p)
Compositional
I(x)
T(x)
Additive
I(x)
W(x;p+Dp)
W(x;p)
W(x;0 + Dp) = W(x;Dp)
T(x)
W(x;p)
W(x;p) o W(x;Dp)
Compositional
I(x)
T(x)
Additive
I(x)
W(x;p)
W(x;p+Dp)
Compositional Alignment
Assuming an initial solution p and a compositional warp increment
Original objective function (SSD)
Compositional Alignment
Assuming an initial solution p and a compositional warp increment
Original objective function (SSD)
Another way to write the composition Identity warp
Compositional Alignment
Assuming an initial solution p and a compositional warp increment
Original objective function (SSD)
Another way to write the composition
Skipping over the derivationā€¦the new update rule is
Identity warp
So whatā€™s so great about this compositional form?
linearized form linearized form
Additive Alignment Compositional Alignment
The Jacobian is constant.
Jacobian can be precomputed!
linearized form linearized form
Jacobian of W(x;p) Jacobian of
W(x;0)
Additive Alignment Compositional Alignment
Compositional Image Alignment
Minimize
W(x;0 + Dp) = W(x;Dp)
T(x)
W(x;p)
W(x;p) o W(x;Dp)
Jacobian is simple and can be precomputed
1. Warp image
2. Compute error image
3. Compute gradient
4. Evaluate Jacobian
5. Compute Hessian
6. Compute
7. Update parameters
Lucas Kanade (Additive alignment)
1. Warp image
2. Compute error image
3. Compute gradient
4. Evaluate Jacobian
5. Compute Hessian
6. Compute
7. Update parameters
Shum-Szeliski (Compositional alignment)
Any other speed up techniques?
Inverse alignment
Why not compute warp updates on the template?
Additive Alignment Compositional Alignment
Why not compute warp updates on the template?
Additive Alignment Compositional Alignment
What happens if you let the template
be warped too?
Inverse Compositional Alignment
W(x;0 + Dp) = W(x;Dp)
T(x)
W(x;p)
W(x;p) o W(x;Dp)
T(x)
W(x;0 + Dp) = W(x;Dp)
W(x;p)
Compositional
Inverse compositional W(x;p) o W(x;Dp)-1
I(x)
I(x)
Compositional strategy
start from here
first shot
second shot
Inverse Compositional strategy
first shot
move the hole
So whatā€™s so great about this inverse compositional form?
Inverse Compositional Alignment
Minimize
Solution
Update
can be precomputed from template!
Properties of inverse compositional alignment
Jacobian can be precomputed
It is constant - evaluated at W(x;0)
Gradient of template can be precomputed
It is constant
Hessian can be precomputed
Warp must be invertible
(main term that needs to be computed)
1. Warp image
2. Compute error image
3. Compute gradient
4. Evaluate Jacobian
5. Compute Hessian
6. Compute
7. Update parameters
Lucas Kanade (Additive alignment)
1. Warp image
2. Compute error image
3. Compute gradient
4. Evaluate Jacobian
5. Compute Hessian
6. Compute
7. Update parameters
Shum-Szeliski (Compositional alignment)
1. Warp image
2. Compute error image
3. Compute gradient
4. Evaluate Jacobian
5. Compute Hessian
6. Compute
7. Update parameters
Baker-Matthews (Inverse Compositional alignment)
Algorithm Efficient Authors
Forwards Additive No Lucas, Kanade
Forwards
compositional
No Shum, Szeliski
Inverse Additive Yes Hager, Belhumeur
Inverse
Compositional
Yes Baker, Matthews
Kanade-Lucas-Tomasi
(KLT) tracker
https://www.youtube.com/watch?v=rwIjkECpY0M
Feature-based tracking
How should we select the ā€˜small imagesā€™ (features)?
How should we track them from frame to frame?
Up to now, weā€™ve been aligning entire images
but we can also track just small image regions too!
(sometimes called sparse tracking or sparse alignment)
An Iterative Image Registration Technique
with an Application to Stereo Vision.
1981
Lucas Kanade
Detection and Tracking of Feature Points.
1991
Kanade Tomasi
Good Features to Track.
1994
Tomasi Shi
History of the
Kanade-Lucas-Tomasi
(KLT) Tracker
The original KLT algorithm
Method for aligning
(tracking) an image patch
Kanade-Lucas-Tomasi
Method for choosing the
best feature (image patch)
for tracking
Lucas-Kanade Tomasi-Kanade
How should we select features?
How should we track them from frame
to frame?
What are good features for tracking?
What are good features for tracking?
Intuitively, we want to avoid smooth
regions and edges.
But is there a more is principled way to
define good features?
Can be derived from the tracking algorithm
What are good features for tracking?
Can be derived from the tracking algorithm
What are good features for tracking?
ā€˜A feature is good if it can be tracked wellā€™
Recall the Lucas-Kanade image alignment method:
incremental update
error function (SSD)
Recall the Lucas-Kanade image alignment method:
incremental update
error function (SSD)
linearize
Recall the Lucas-Kanade image alignment method:
incremental update
error function (SSD)
linearize
Gradient update
Recall the Lucas-Kanade image alignment method:
incremental update
error function (SSD)
linearize
Gradient update
Update
Stability of gradient decent iterations depends on ā€¦
Stability of gradient decent iterations depends on ā€¦
Inverting the Hessian
When does the inversion fail?
Stability of gradient decent iterations depends on ā€¦
Inverting the Hessian
When does the inversion fail?
H is singular. But what does that mean?
Above the noise level
Well-conditioned
both Eigenvalues are large
both Eigenvalues have similar magnitude
Concrete example: Consider translation model
Hessian
How are the eigenvalues related to image content?
ā†when is this singular?
interpreting eigenvalues
l1
l2
l2 >> l1
l1 >> l2
What kind of image patch
does each region represent?
interpreting eigenvalues
ā€˜horizontalā€™
edge
ā€˜verticalā€™
edge
flat
l1
l2
l2 >> l1
l1 >> l2
l1 ~ l2
ā€˜cornerā€™
interpreting eigenvalues
flat
ā€˜cornerā€™
l1
l2
l2 >> l1
l1 >> l2
l1 ~ l2
ā€˜horizontalā€™
edge
ā€˜verticalā€™
edge
What are good features for tracking?
What are good features for tracking?
ā€˜big Eigenvalues means good for trackingā€™
KLT algorithm
1. Find corners satisfying
2. For each corner compute displacement to next frame using
the Lucas-Kanade method
3. Store displacement of each corner, update corner position
4. (optional) Add more corner points every M frames using 1
5. Repeat 2 to 3 (4)
6. Returns long trajectories for each corner point
Mean-shift algorithm
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Find the region of
highest density
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Pick a point
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Draw a window
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Compute the
(weighted) mean
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Shift the window
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Compute the mean
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Shift the window
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Compute the mean
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Shift the window
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Compute the mean
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Shift the window
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Compute the mean
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Shift the window
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Compute the mean
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Shift the window
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Compute the mean
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Shift the window
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Compute the mean
Mean Shift Algorithm
Fukunaga & Hostetler (1975)
A ā€˜mode seekingā€™ algorithm
Shift the window
To understand the theory behind this we need to understandā€¦
Kernel density
estimation
Kernel Density Estimation
A method to approximate an underlying PDF from samples
Put ā€˜bumpā€™ on every sample to approximate the PDF
To understand the mean shift algorithm ā€¦
samples (+)
bumps
sum of bumps
probability density function
1 2 3 4 5 6 7 8 9 10
cumulative density function
p(x)
Say we have some hidden PDFā€¦
randomly
sample
0
1
We can draw samples,
using the CDFā€¦
randomly
sample
0
1
randomly
sample
0
1
samples
samples
Now to estimate the ā€˜hiddenā€™ PDF
place Gaussian bumps on the samplesā€¦
samples
discretized ā€˜bumpā€™
samples
samples
1 2 3 4 5 6 7 8 9 10
samples
Kernel Density
Estimate
approximates the
original PDF
Kernel Density Estimation
Approximate the underlying PDF from samples from it
Put ā€˜bumpā€™ on every sample to approximate the PDF
Gaussian ā€˜bumpā€™ aka ā€˜kernelā€™
but there are many types of kernels!
For exampleā€¦
Kernel Function
returns the ā€˜distanceā€™ between two points
Epanechnikov kernel
Uniform kernel
Normal kernel
These are all radially symmetric kernels
Radially symmetric kernels
profile
ā€¦can be written in terms of its profile
Connecting KDE and the
Mean Shift Algorithm
Mean-Shift Tracking
Given a set of points:
and a kernel:
Find the mean sample point:
Mean-Shift Algorithm
While
Initialize
1. Compute mean-shift
2. Update
Where does this algorithm come from?
shift values becomes really small
place we start
compute the ā€˜meanā€™
compute the ā€˜shiftā€™
update the point
While
Initialize
Where does this algorithm come from?
Where does this
come from?
Mean-Shift Algorithm
2. Update
1. Compute mean-shift
Kernel density estimate
(radially symmetric kernels)
Gradient of the PDF is related to the mean shift vector
How is the KDE related to the mean shift algorithm?
The mean shift vector is a ā€˜stepā€™ in the direction of the gradient of the KDE
Recall:
We can show that:
can compute probability for any point using the KDE!
mean-shift algorithm is maximizing the objective function
In mean-shift tracking, we are trying to find this
which means we are trying toā€¦
We are trying to optimize this:
usually non-linear
How do we optimize this non-linear function?
non-parametric
find the solution that has the highest probability
We are trying to optimize this:
How do we optimize this non-linear function?
compute partial derivatives ā€¦ gradient descent!
usually non-linear non-parametric
Compute the gradient
Gradient
Expand the gradient (algebra)
Gradient
Expand gradient
Gradient
Expand gradient
Call the gradient of the kernel function g
Gradient
change of notation
(kernel-shadow pairs)
Expand gradient
keep this in memory:
multiply it out
too long!
(use short hand notation)
multiply by one!
collecting like termsā€¦
Whatā€™s happening here?
The mean shift is a ā€˜stepā€™ in the direction of the gradient of the KDE
mean shift!
mean shift
Can interpret this to be
gradient ascent with
data dependent step size
constant
Let
Mean-Shift Algorithm
While
Initialize
1. Compute mean-shift
2. Update
gradient with
adaptive step size
Just 5 lines of code!
Everything up to now has been about
distributions over samplesā€¦
Mean-shift tracker
Dealing with images
Pixels for a lattice, spatial density is the same everywhere!
What can we do?
Consider a set of points:
Sample mean:
Mean shift:
Associated weights:
Mean-Shift Algorithm
(for images)
While
Initialize
1. Compute mean-shift
2. Update
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
For images, each pixel is point with a weight
Finallyā€¦ mean shift tracking in video!
Frame 1 Frame 2
ā€˜targetā€™
center coordinate
of target
center coordinate
of candidate
Goal: find the best candidate location in frame 2
Use the mean shift algorithm
to find the best candidate location
ā€˜candidateā€™
there are many ā€˜candidatesā€™ but only one ā€˜targetā€™
Non-rigid object tracking
hand tracking
Target
Compute a descriptor for the target
Target Candidate
Search for similar descriptor in neighborhood in next frame
Target
Compute a descriptor for the new target
Target Candidate
Search for similar descriptor in neighborhood in next frame
How do we model the target and candidate regions?
Modeling the target
M-dimensional target descriptor
A normalized
color histogram
(weighted by distance)
Kronecker delta
function
function of inverse
distance
(weight)
Normalization
factor
(centered at target center)
a ā€˜fancyā€™ (confusing) way to write a weighted histogram
sum over
all pixels
quantization
function
bin ID
Modeling the candidate
M-dimensional candidate descriptor
(centered at location y)
bandwidth
a weighted histogram at y
Similarity between
the target and candidate
Bhattacharyya Coefficient
Just the Cosine distance between two unit vectors
Distance function
Now we can compute the similarity between
a target and multiple candidate regions
target
similarity over image
image
target
similarity over image
image
we want to find this peak
Objective function
Assuming a good initial guess
Linearize around the initial guess (Taylor series expansion)
derivative
function at specified value
same as
Remember
definition of this?
Linearized objective
Fully expanded
where
Does not depend on unknown y Weighted kernel density estimate
Weight is bigger when
Fully expanded linearized objective
Moving terms aroundā€¦
OK, why are we doing all this math?
We want to maximize this
where
Fully expanded linearized objective
We want to maximize this
where
Fully expanded linearized objective
doesnā€™t depend on unknown y
We want to maximize this
where
Fully expanded linearized objective
doesnā€™t depend on unknown y
We want to maximize this
only need to
maximize this!
where
Fully expanded linearized objective
doesnā€™t depend on unknown y
what can we use to solve this weighted KDE?
Mean Shift Algorithm!
We want to maximize this
the new sample of mean of this KDE is
(this was derived earlier)
(new candidate
location)
Mean-Shift Object Tracking
1. Initialize location
Compute
Compute
2. Derive weights
3. Shift to new candidate location (mean shift)
4. Compute
5. If return
Otherwise and go back to 2
For each frame:
Target
Compute a descriptor for the target
Target Candidate
Search for similar descriptor in neighborhood in next frame
Target
Compute a descriptor for the new target
Target Candidate
Search for similar descriptor in neighborhood in next frame
Modern trackers
References
Basic reading:
ā€¢ Szeliski, Sections 4.1.4, 5.3, 8.1.

More Related Content

Similar to Computer Vision - Alignment and Tracking.pptx

super vector machines algorithms using deep
super vector machines algorithms using deepsuper vector machines algorithms using deep
super vector machines algorithms using deepKNaveenKumarECE
Ā 
Solving Optimization Problems using the Matlab Optimization.docx
Solving Optimization Problems using the Matlab Optimization.docxSolving Optimization Problems using the Matlab Optimization.docx
Solving Optimization Problems using the Matlab Optimization.docxwhitneyleman54422
Ā 
Least Square Optimization and Sparse-Linear Solver
Least Square Optimization and Sparse-Linear SolverLeast Square Optimization and Sparse-Linear Solver
Least Square Optimization and Sparse-Linear SolverJi-yong Kwon
Ā 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game TheoryPurnima Pandit
Ā 
Face Identification for Humanoid Robot
Face Identification for Humanoid RobotFace Identification for Humanoid Robot
Face Identification for Humanoid Robotthomaswangxin
Ā 
Computer Vision alignment
Computer Vision alignmentComputer Vision alignment
Computer Vision alignmentWael Badawy
Ā 
Feature selection using PCA.pptx
Feature selection using PCA.pptxFeature selection using PCA.pptx
Feature selection using PCA.pptxbeherasushree212
Ā 
Linear Programing.pptx
Linear Programing.pptxLinear Programing.pptx
Linear Programing.pptxAdnanHaleem
Ā 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingcairo university
Ā 
2021 04-01-dalle
2021 04-01-dalle2021 04-01-dalle
2021 04-01-dalleJAEMINJEONG5
Ā 
3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf Chicago3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf ChicagoJanie Clayton
Ā 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxmydrynan
Ā 
Computer Vision panoramas
Computer Vision  panoramasComputer Vision  panoramas
Computer Vision panoramasWael Badawy
Ā 
08 distributed optimization
08 distributed optimization08 distributed optimization
08 distributed optimizationMarco Quartulli
Ā 
4 image enhancement in spatial domain
4 image enhancement in spatial domain4 image enhancement in spatial domain
4 image enhancement in spatial domainProf. Dr. Subhasis Bose
Ā 
Lightening & Darkening of Grayscale Image
Lightening & Darkening of Grayscale ImageLightening & Darkening of Grayscale Image
Lightening & Darkening of Grayscale ImageSaad Al-Momen
Ā 
Support Vector Machines- SVM
Support Vector Machines- SVMSupport Vector Machines- SVM
Support Vector Machines- SVMCarlo Carandang
Ā 
Calculus bicycle and railroad powerpoint
Calculus bicycle and railroad powerpointCalculus bicycle and railroad powerpoint
Calculus bicycle and railroad powerpointJacob Birch
Ā 

Similar to Computer Vision - Alignment and Tracking.pptx (20)

super vector machines algorithms using deep
super vector machines algorithms using deepsuper vector machines algorithms using deep
super vector machines algorithms using deep
Ā 
Solving Optimization Problems using the Matlab Optimization.docx
Solving Optimization Problems using the Matlab Optimization.docxSolving Optimization Problems using the Matlab Optimization.docx
Solving Optimization Problems using the Matlab Optimization.docx
Ā 
Least Square Optimization and Sparse-Linear Solver
Least Square Optimization and Sparse-Linear SolverLeast Square Optimization and Sparse-Linear Solver
Least Square Optimization and Sparse-Linear Solver
Ā 
LPP, Duality and Game Theory
LPP, Duality and Game TheoryLPP, Duality and Game Theory
LPP, Duality and Game Theory
Ā 
Face Identification for Humanoid Robot
Face Identification for Humanoid RobotFace Identification for Humanoid Robot
Face Identification for Humanoid Robot
Ā 
Computer Vision alignment
Computer Vision alignmentComputer Vision alignment
Computer Vision alignment
Ā 
Feature selection using PCA.pptx
Feature selection using PCA.pptxFeature selection using PCA.pptx
Feature selection using PCA.pptx
Ā 
Linear Programing.pptx
Linear Programing.pptxLinear Programing.pptx
Linear Programing.pptx
Ā 
Lecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matchingLecture 6-computer vision features descriptors matching
Lecture 6-computer vision features descriptors matching
Ā 
2021 04-01-dalle
2021 04-01-dalle2021 04-01-dalle
2021 04-01-dalle
Ā 
3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf Chicago3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf Chicago
Ā 
5163147.ppt
5163147.ppt5163147.ppt
5163147.ppt
Ā 
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docxCSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
CSCI 2033 Elementary Computational Linear Algebra(Spring 20.docx
Ā 
Computer Vision panoramas
Computer Vision  panoramasComputer Vision  panoramas
Computer Vision panoramas
Ā 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
Ā 
08 distributed optimization
08 distributed optimization08 distributed optimization
08 distributed optimization
Ā 
4 image enhancement in spatial domain
4 image enhancement in spatial domain4 image enhancement in spatial domain
4 image enhancement in spatial domain
Ā 
Lightening & Darkening of Grayscale Image
Lightening & Darkening of Grayscale ImageLightening & Darkening of Grayscale Image
Lightening & Darkening of Grayscale Image
Ā 
Support Vector Machines- SVM
Support Vector Machines- SVMSupport Vector Machines- SVM
Support Vector Machines- SVM
Ā 
Calculus bicycle and railroad powerpoint
Calculus bicycle and railroad powerpointCalculus bicycle and railroad powerpoint
Calculus bicycle and railroad powerpoint
Ā 

Recently uploaded

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
Ā 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
Ā 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
Ā 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
Ā 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
Ā 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
Ā 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
Ā 
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,Virag Sontakke
Ā 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
Ā 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
Ā 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
Ā 
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdfssuser54595a
Ā 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
Ā 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
Ā 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
Ā 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
Ā 
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø9953056974 Low Rate Call Girls In Saket, Delhi NCR
Ā 

Recently uploaded (20)

Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
Ā 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Ā 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
Ā 
Model Call Girl in Bikash Puri Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Bikash Puri  Delhi reach out to us at šŸ”9953056974šŸ”Model Call Girl in Bikash Puri  Delhi reach out to us at šŸ”9953056974šŸ”
Model Call Girl in Bikash Puri Delhi reach out to us at šŸ”9953056974šŸ”
Ā 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
Ā 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Ā 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
Ā 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
Ā 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
Ā 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
Ā 
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
ą¤­ą¤¾ą¤°ą¤¤-ą¤°ą„‹ą¤® ą¤µą„ą¤Æą¤¾ą¤Ŗą¤¾ą¤°.pptx, Indo-Roman Trade,
Ā 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
Ā 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
Ā 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
Ā 
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAŠ”Y_INDEX-DM_23-1-final-eng.pdf
Ā 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Ā 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
Ā 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Ā 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Ā 
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļøcall girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
call girls in Kamla Market (DELHI) šŸ” >ą¼’9953330565šŸ” genuine Escort Service šŸ”āœ”ļøāœ”ļø
Ā 

Computer Vision - Alignment and Tracking.pptx

Editor's Notes

  1. I(\mathbf{W}(\vec{x};\vec{p} + \Delta \vec{p})) &\approx I(\mathbf{W}(\vec{x};\vec{p})) + \frac{\partial I(\mathbf{W}(\vec{x};\vec{p})}{ \partial \vec{p}} \Delta \vec{p}\\ &= I(\mathbf{W}(\vec{x};\vec{p})) + \frac{\partial I(\mathbf{W}(\vec{x};\vec{p})}{ \partial \vec{x}'} \frac{\partial \mathbf{W}(\vec{x};\vec{p})}{ \partial \vec{p}} \Delta \vec{p}\\ &= I(\mathbf{W}(\vec{x};\vec{p})) + \nabla I \frac{\partial \bf{W}}{\partial \vec{p}} \Delta \vec{p}\\
  2. \sum_{\vec{x}} \left[ I(\mathbf{W}(\vec{x};\vec{p})) + \nabla I(\vec{x}') \frac{\partial \bf{W}}{\partial \vec{p}} \Delta \vec{p} - T(\vec{x}) \right]^2 \sum_{\vec{x}} \left[ I(\mathbf{W}(\vec{x};\vec{p})) + \nabla I(\vec{x}') \frac{\partial \bf{W}(\vec{x};\vec{0})}{\partial \vec{p}} \Delta \vec{p} - T(\vec{x}) \right]^2
  3. \frac{\partial \bf{W}(\vec{x};\vec{0})}{\partial \vec{p}}
  4. \hat{\vec{x}} \neq m(\vec{x}) \hat{\vec{x}} = m(\hat{\vec{x}}) - \hat{\vec{x}} |\vec{x} - m(\vec{x})| > \epsilon \vec{v} = |\vec{x} - m(\vec{x})| \vec{x}\leftarrow \vec{x} + \vec{v}(\vec{x}) \vec{v} = m(\vec{x}) - \vec{x} v(\vec{x}) = m(\vec{x}) - \vec{x}
  5. \hat{\vec{x}} \neq m(\vec{x}) \hat{\vec{x}} = m(\hat{\vec{x}}) - \hat{\vec{x}} |\vec{x} - m(\vec{x})| > \epsilon \vec{v} = |\vec{x} - m(\vec{x})| v(\vec{x}) > \epsilon
  6. \vec{x} &= \argmax_{\vec{x}} P(\vec{x}) \\ &= \argmax_{\vec{x}} \frac{1}{N} c \sum_{n} k (|| \vec{x} - \vec{x}_n||^2)
  7. \vec{x} &= \argmax_{\vec{x}} P(\vec{x}) \\ &= \argmax_{\vec{x}} \frac{1}{N} c \sum_{n} k (|| \vec{x} - \vec{x}_n||^2)
  8. \hat{\vec{x}} \neq m(\vec{x}) \hat{\vec{x}} = m(\hat{\vec{x}}) - \hat{\vec{x}} |\vec{x} - m(\vec{x})| > \epsilon \vec{v} = |\vec{x} - m(\vec{x})| \vec{x}\leftarrow \vec{x} + \vec{v}(\vec{x}) \vec{v} = m(\vec{x}) - \vec{x} v(\vec{x}) = m(\vec{x}) - \vec{x}
  9. \hat{\vec{x}} \neq m(\vec{x}) \hat{\vec{x}} = m(\hat{\vec{x}}) - \hat{\vec{x}} |\vec{x} - m(\vec{x})| > \epsilon \vec{v} = |\vec{x} - m(\vec{x})| \vec{x}\leftarrow \vec{x} + \vec{v}(\vec{x}) \vec{v} = m(\vec{x}) - \vec{x} v(\vec{x}) = m(\vec{x}) - \vec{x}
  10. Ch