# is it possible to stitch two images using affine transformation ?

actually , i have two images captured by an UAV , so scale translation shear rotation is there . now i want to mosaic these images using affine transformation

it is possible or not ?

i m using opencv

Why not use the stitcher class directly?

I think so, but you need to compute the transformation matrix. So do a feature detection, match them and based on the matched featured detect the transformation matrix. then apply the transformation. Start with this and then come back with results and problems ;)

i need to do this after feature matching thats why i m not using stitcher class .

So, if you have matched the features, then try to compute the homography from them to have the transformation matrix. then see what perspectiveTransform does. Why do you need affine transformation?

does homography work on all these scale translation rotation ?

IMHO, based on this tutorial it could

@thdrksdfthmn Because warping using perspective transform is stretching out the images after stitching multiple images (unlike in affine transform, I suppose), so we need to use affine transform in his case. So if I had the code for perspective transform could I be able to obtain all the information I need for an affine transform instead?