Bases: object
Implementation of the projector interface using PyCUDA and pyfft.
A projector needs to implement:
You can use this class as an abstracted weight matrix \(W\): multiplying an instance proj of this class by an image results in a forward projection of the image, and multiplying proj.T by a sinogram results in a backprojection of the sinogram:
proj = SimplePyCUDAProjector(...)
fp = proj*image
bp = proj.T*sinogram
Parameters: |
|
---|
Backproject a sinogram.
Parameters: |
|
---|---|
Returns: | numpy.ndarray – The backprojection. |
Forward project an image.
Parameters: |
|
---|---|
Returns: | numpy.ndarray – The forward projection. |
Implements the proj.T functionality.
Do not use directly, since it can be accessed as member .T of an SimplePyCUDAProjector object.