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
Post a Comment