Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def addFramePair(self, images, ratio=0.75, reprojThresh=4.0, showMatches=False):
- (imageA, imageB) = images
- (kpsA, featuresA) = self.detectAndDescribe(imageA)
- (kpsB, featuresB) = self.detectAndDescribe(imageB)
- H = self.matchKeypoints(kpsA, kpsB, featuresA, featuresB, ratio, reprojThresh)
- self.accHomography *= np.asmatrix(H)
- result = cv2.warpPerspective(imageA, np.linalg.inv(self.accHomography), (1600, 900))
- return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement