SlowBackprojection#
- class patato.recon.numpy_backprojection.recon.SlowBackprojection(n_pixels: Sequence[int], field_of_view: Sequence[float], **kwargs)[source]#
Bases:
ReconstructionAlgorithmSlow example backprojection.
- __init__(n_pixels: Sequence[int], field_of_view: Sequence[float], **kwargs)#
Methods
__init__(n_pixels, field_of_view, **kwargs)add_child(child)pre_prepare_data(x)reconstruct(time_series, fs, geometry, ...)run(time_series, pa_data[, speed_of_sound, ...])- reconstruct(time_series: ndarray, fs: float, geometry: ndarray, n_pixels: Sequence[int], field_of_view: Sequence[float], speed_of_sound: float, **kwargs) ndarray[source]#
- Parameters:
time_series (array_like) – Photoacoustic time series data in a numpy array. Shape: (…, n_detectors, n_time_samples)
fs (float) – Time series sampling frequency (Hz).
geometry (array_like) – The detector geometry. Shape: (n_detectors, 3)
n_pixels (tuple of int) – Tuple of length 3, (nx, ny, nz)
field_of_view (tuple of float) – Tuple of length 3, (lx, ly, lz) - the size of the reconstruction volume.
speed_of_sound (float) – Speed of sound (m/s).
kwargs – Extra parameters (optional), useful for advanced algorithms (e.g. multi speed of sound etc.).
- Returns:
The reconstructed image.
- Return type:
array_like