# Finding Affine Transform with Linear Least Squares



linear least squares is a method of fitting a model to data in which the relation between data and unknown paramere can be expressed in a linear form.
$$Ax=b$$
$$X^{*}= \underset{x}{\mathrm{argmin}}= \|Ax-b\|^{2} =(A^{T}A)^{-1}A^{T}b$$

And testing the code:

Article Rating
Subscribe
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
Aaron Abela
2 years ago

Hi! What format of the affine matrix for M is being used please? Is it rotation and translation ? Would truly appreciate your help.

zhigang
1 year ago

hi, can use X=pinv(A)*B when A’s rank > 6 ? if can, why need use (𝐴^𝑇𝐴)^−1A^Tb

3
0