First, manually pick corresponding points for pictures. Then use least square solution to solve and find the homography H. Use inverse warping similar as the one in proj3, warp the pictures to desired appearance.
After building this Ah = b equation, solving using least square solution where h = (A^TA)^-1A^Tb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Taking pictures towards the light makes the task way harder, as the different brightness of pictures is hard to deal with. Long press iphone(screen but not the shuttle) can have wonderful AE/AF which makes taking nice proper pictures easier.
As homography is prospective translation, having degree of 8, there is clever way to use only 8 unknowns and construct the homography equation. It is cool to see overlap part of pictures after homography applied is highly identical.
Choose a little more corresponding points makes result better. Choose points on corners!