SimpleCVを使用して画像をステッチしています。SimpleCVのGitHubコードにいくつかの変更を加え、最終的に画像を正しく変換しました。ただし、問題は、変換後の画像の色が変更されることです。
私はこれらの画像を使用しましたhttp://imgur.com/a/lrGw4。私のコードの出力は次のとおりです:http://i.imgur.com/2J722h.jpg
これは私のコードです:
from SimpleCV import *
import cv2
import cv
img1 = Image("s.jpg")
img2 = Image("t.jpg")
dst = Image((2000, 1600))
# Find the keypoints.
ofimg = img1.findKeypointMatch(img2)
# The homography matrix.
homo = ofimg[1]
eh = dst.getMatrix()
# transform the image.
x = Image(cv2.warpPerspective(np.array((img2.getMatrix())), homo,
(eh.rows, eh.cols+300), np.array(eh), cv.INTER_CUBIC))
# blit the img1 now on coordinate (0, 0).
x = x.blit(img1, alpha=0.4)
x.save("rishi1.jpg")