opencv - Image alignment error -


i have 2 images, 1 of misaligned. need align images. calculate feature points using surf, match them using bfmatcher, find homography , apply warpperspective. here code

for these inputs :input1,input2, getting distorted image.

i doing wrong. points?

first suspect should swap trainidx , queryidx.

and try draw matches, in experiments, rather random.

for quick test try use same image, or transform little bit first image , use second one.


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -