
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























Practical computer vision involves lots of fitting of data tomodels
-^
Tasks– Fit image features to projection of hypothetical shape
All these involve fitting data obtained from images tomodels
-^
Simplest example of model fitting problem– Linear regression
More examples on the board– higher dimensions– Matrix entries …
-^
In all these we need to find the models and theirparameters that best explain the data
-^
General part of “vision as inference”
-^
Approaches– Based on fitting: today– Based on sampling model-space: e.g., Hough transform– Combination
One variable is used to “explain” another variable
Variable
Independent VariableExplaining VariableExogenous Variable
Predictor Variable
Variable
Dependent VariableResponse VariableEndogenous VariableCriterion Variable
1
bX a
Y
=
:s
prediction
errorless had we If
X
X
Y
We will end up being reasonably confidentthat the true regression line is somewherein the indicated region.
X
Y
Estimated Regression Line
X
Y
Estimated Regression Line
i
i
i^
y
y
e^
ˆ −
=
x^ i
bX a Y^
= ˆ
:
Line
Regression the of
Equation
(^
)^
[^
]
(^
)
∑
∑
=
=
N^1 i
2
N^1 i
2
iduals
errors/res
squared of
sum the
minimize to ,
Find
a
bx
y
e
b a
i
i
X b Y a X X
b
N i
i
N i
i
i
= =^
1
2
1
=^
=
=^
=
=
⎞ ⎟ ⎠
⎛ ⎜ ⎝ −
⎞ ⎟ ⎠
⎛⎞ ⎜⎟ ⎝⎠
⎛ ⎜ ⎝ −
=
N i
N i
i
i
N i
N i
i
N i
i
i i
X
X
N
Y X Y X N b
1
2
1
2
1
1
1
ComputationalFormula
All models considered are “linear”
-^
(does not mean straight lines)
-^
Means that we can separate the “structure” and“parameters” as a matrix-vector product
-^
“structure” forms a matrix and “parameters” a vector
-^
Goal of model fitting: find the parameters
-^
Question: Is the Gaussian model a linear one?
Linear Systems
Square system:
Rectangular system ??
infinity of solutions Minimize |Ax-b|
2
no solution
Number of equations and unknowns may not match
-^
Data may have noise
-^
Look for solution by minimizing some cost function
-^
Simplest and most intuitive cost function: ||
Ax - b
Define for each data point
x
a residuali
r
i
Minimize
ri
ri with respect toi^
x
l
r^ i
r
=i
(Aj
xij
-bj
).i
k^
ik
xk
-b
)i