Skip to content

Instantly share code, notes, and snippets.

@rishimukherjee
Created March 22, 2012 15:23
Show Gist options
  • Save rishimukherjee/2158998 to your computer and use it in GitHub Desktop.
Save rishimukherjee/2158998 to your computer and use it in GitHub Desktop.
Demo Application Panorama
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