def getEpipoles(self):
'''Returns the epipole/position of camera 1 in image 2 and 3.'''
u = r_[[cv2.SVDecomp(t.T)[2][-1] for t in self.T]]
ei = cv2.SVDecomp(u)[2][-1]
v = r_[[cv2.SVDecomp(t)[2][-1] for t in self.T]]
eii = cv2.SVDecomp(v)[2][-1]
return ei, eii
评论列表
文章目录