returns the 4*4 homogeneous matrix.
(self)
| 25 | self.t = copy.deepcopy(np.reshape(t, (3, 1))) # 3*1 position |
| 26 | |
| 27 | def homogeneous_matrix(self): |
| 28 | """returns the 4*4 homogeneous matrix.""" |
| 29 | H = np.zeros((4, 4)) |
| 30 | H[0:3, 0:3] = self.R |
| 31 | H[0:3, 3:4] = self.t |
| 32 | H[3, 3] = 1 |
| 33 | return H |
| 34 | |
| 35 | @staticmethod |
| 36 | def invert_homogeneous_matrix(H: np.ndarray) -> np.ndarray: |
no outgoing calls
no test coverage detected