reconstruction¶
Submodules¶
Module contents¶
Time reversal reconstruction module for k-Wave.
This module provides functionality for time reversal reconstruction in photoacoustic imaging. The main class is TimeReversal which handles the reconstruction process using time reversal of the acoustic wave equation.
- class TimeReversal[source]¶
Bases:
objectTime reversal reconstruction for photoacoustic imaging.
This class handles time reversal reconstruction of initial pressure distribution from sensor data. It supports both 2D and 3D simulations and automatically applies compensation for half-plane recording.
- Parameters:
kgrid – Computational grid for the simulation
medium – Medium properties for wave propagation
sensor – Sensor object containing the sensor mask
compensation_factor – Factor to compensate for half-plane recording (default: 2.0)
- Raises:
ValueError – If inputs are invalid for time reversal
Note
Future versions may support: - GPU acceleration via use_gpu parameter - Differentiable operations via differentiable parameter - Custom boundary conditions via boundary_condition parameter - Elastic wave propagation via elastic parameter
- __init__(kgrid, medium, sensor, compensation_factor=2.0)[source]¶
Initialize time reversal reconstruction.
- Parameters:
kgrid (kWaveGrid) – Computational grid for the simulation
medium (kWaveMedium) – Medium properties for wave propagation
sensor (kSensor) – Sensor object containing the sensor mask
compensation_factor (float) – Factor to compensate for half-plane recording (default: 2.0)
- Raises:
ValueError – If inputs are invalid for time reversal
- Return type:
None