Created
March 22, 2012 15:23
-
-
Save rishimukherjee/2158998 to your computer and use it in GitHub Desktop.
Demo Application Panorama
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from SimpleCV import * | |
import cv2 | |
import cv | |
import numpy as np | |
img1 = Image("t.jpg") | |
img2 = Image("s.jpg") | |
src = img1.copy() | |
dst = Image((1600, 1200)) | |
ofimg = img1.findKeypointMatch(img2) | |
array = ofimg[1] | |
#print img1.size() | |
eh = dst.getNumpy() | |
x = cv2.warpPerspective(img1.getNumpy(), array, eh.size, dst.getNumpy()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment