| 110 | return projectionMatrixOpenGL |
| 111 | |
| 112 | class MockCameraPose: |
| 113 | def __init__(self, data): |
| 114 | self.camera = MockCamera(data["camera"]) |
| 115 | self.cameraToWorld = np.array(data["cameraToWorld"]) |
| 116 | self.worldToCamera = invert_se3(self.cameraToWorld) |
| 117 | self.position = spectacularAI.Vector3d(*self.cameraToWorld[:3, 3]) |
| 118 | |
| 119 | def getCameraToWorldMatrix(self): |
| 120 | return self.cameraToWorld |
| 121 | |
| 122 | def getWorldToCameraMatrix(self): |
| 123 | return self.worldToCamera |
| 124 | |
| 125 | def getPosition(self): |
| 126 | return self.position |
| 127 | |
| 128 | class MockVioOutput: |
| 129 | def __init__(self, data): |
no outgoing calls
no test coverage detected