Skip to content
Snippets Groups Projects
Commit 3e634f76 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add setter for projection_matrices

parent 1d87f4eb
No related merge requests found
......@@ -170,3 +170,12 @@ class ConeBeamProjector:
self._inverse_matrices = torch.stack(tuple(map(torch.from_numpy, inv_matrices))).cuda().contiguous()
self._source_points = torch.stack(tuple(map(torch.from_numpy, source_points))).cuda().contiguous()
self._projection_multiplier = 1.
@property
def projection_matrices(self):
return self._projection_matrices_numpy
@projection_matrices.setter
def projection_matrices(self, numpy_matrices):
self._projection_matrices_numpy = numpy_matrices
self._calc_inverse_matrices()
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment