(self, coords: np.ndarray)
| 96 | return np.stack([np.broadcast_to(self.origin, directions.shape), directions], axis=1) |
| 97 | |
| 98 | def depth_directions(self, coords: np.ndarray) -> np.ndarray: |
| 99 | return np.tile((self.z / np.linalg.norm(self.z))[None], [len(coords), 1]) |
| 100 | |
| 101 | def resize_image(self, width: int, height: int) -> "ProjectiveCamera": |
| 102 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected