AcoustoOpticTomography (AOT_biomaps)
AOT_biomaps is an advanced Python library for Acousto-Optic Tomography (AOT). It provides comprehensive tools for image reconstruction, acoustic simulation, optical modeling, and 2D/3D data processing.
📌 About the Project
This library was developed to meet the needs of the biomedical imaging research community, particularly for Acousto-Optic Tomography applications. It combines advanced reconstruction algorithms with optimized CPU and GPU implementations.
Key Features
- ✅ Tomographic Reconstruction: MLEM, PDHG, LS, DEPIERRO, MAPEM, LBFGS
- ✅ Multi-Device Support: CPU (NumPy) and GPU (CuPy) with automatic fallback
- ✅ Sparse Matrices: Optimized CSR and SELL-C-sigma implementations
- ✅ Acoustic Simulation: Plane, focused, irregular waves
- ✅ Optical Modeling: Lasers, absorbers, heterogeneous media
- ✅ Signal Processing: Filtering, backprojection, Radon transform
- ✅ Visualization: 2D/3D visualization tools (optional with matplotlib)
Modular Architecture
AOT_biomaps/
├── AOT_Acoustic/ # Acoustic simulation
├── AOT_Experiment/ # Experiment management
├── AOT_Medium/ # Medium modeling
├── AOT_Optic/ # Optical modeling
├── AOT_Recon/ # Reconstruction algorithms
│ ├── AOT_Optimizers/ # MLEM, PDHG, LS, etc.
│ ├── AOT_PotentialFunctions/ # Potential functions
│ └── AOT_SparseSMatrix/ # Sparse matrices (CSR, SELL)
└── Config.py # Global configuration
🚀 Installation
See INSTALLATION.md for detailed instructions.
Quick Installation
# Clone the repository
git clone https://github.com/LucasDuclos/AcoustoOpticTomography.git
cd AcoustoOpticTomography
# Install in development mode
pip install -e .
### GPU Support (Included by Default)
By default, **CuPy** is automatically included if CUDA is detected on your system. The installer will detect your CUDA version and install the appropriate CuPy package.
To manually specify your CUDA version:
```bash
# For CUDA 11.x
pip install cupy-cuda11x
# For CUDA 12.x
pip install cupy-cuda12x
# For CUDA 13.x
pip install cupy-cuda13x
# For CUDA 14.x
pip install cupy-cuda14x
CPU-only installation:
pip install aot-biomaps --cpu
# or
AOT_BIOMAPS_CPU_ONLY=true pip install aot-biomaps
📖 Documentation
- 📥 Installation - Complete installation guide
- 🎯 Usage - Examples and tutorials
- 🔧 API Reference - Technical documentation
- 🏗️ Architecture - Library design
- 🤝 Contributing - How to contribute
- 📜 Changelog - Release history
🎯 Quick Start Example
import numpy as np
from AOT_biomaps import Tomography, AlgebraicRecon
from AOT_biomaps.AOT_Recon.ReconEnums import ReconType
# Create a tomography experiment
experiment = Tomography(
optic_image_path="path/to/optic_image.npy",
acoustic_fields_path="path/to/acoustic_fields.npy"
)
# Setup reconstruction
recon = AlgebraicRecon(
experiment=experiment,
reconType=ReconType.Algebraic,
optimizerType="MLEM",
numIterations=100
)
# Run reconstruction
recon.run(withTumor=True)
# Save results
recon.save(withTumor=True, saveDir="results/")
🔧 Dependencies
Core Dependencies (Required)
- Python ≥ 3.8
- NumPy ≥ 1.20
Optional Dependencies
- CuPy ≥ 10.0 - For GPU acceleration
- Matplotlib ≥ 3.0 - For visualization
- tqdm ≥ 4.0 - For progress bars
- SciPy ≥ 1.7 - For signal processing
- kWave - For acoustic simulation (optional)
Compatibility Matrix
| Feature | CPU (NumPy) | GPU (CuPy) |
|---|---|---|
| MLEM Reconstruction | ✅ | ✅ |
| PDHG Reconstruction | ✅ | ✅ |
| CSR Matrices | ✅ | ✅ |
| SELL Matrices | ✅ | ✅ |
| Visualization | ✅ | ✅ |
| Acoustic Simulation | ✅ | ⚠️ (kWave required) |
📊 Performance
Benchmark (on standard dataset)
| Algorithm | CPU (s) | GPU (s) | Speedup |
|---|---|---|---|
| MLEM | 45.2 | 2.1 | 21.5x |
| PDHG | 38.7 | 1.8 | 21.5x |
| LS | 22.4 | 1.2 | 18.7x |
Memory Usage
| Matrix | Format | Size (GB) |
|---|---|---|
| 100x100x100x50 | Dense | 19.1 |
| 100x100x100x50 | CSR | 0.8 |
| 100x100x100x50 | SELL | 0.6 |
🤝 Contributing
Contributions are welcome! See CONTRIBUTING.md for guidelines.
How to Contribute
- Fork the project
- Create a branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📜 License
Distributed under the MIT License. See LICENSE for more information.
🙏 Acknowledgments
- Biomedical Imaging Laboratory
- All contributors who participated in this project
Contact: For any questions or suggestions, feel free to open an issue or contact me directly.
Metadata
Release files for aot-biomaps 2.9.1049
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aot_biomaps-2.9.1049.tar.gz | 187.4 kB | Without provenance | Details for aot_biomaps-2.9.1049.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aot_biomaps-2.9.1049-py3-none-any.whl | Python 3 | none | any | Details for aot_biomaps-2.9.1049-py3-none-any.whl |
Total release size: 416.4 kB
Release files / aot_biomaps-2.9.1049.tar.gz
| Download URL | aot_biomaps-2.9.1049.tar.gz |
|---|---|
| Size | 187.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45db84d4f57ab4b0287b8845b78ddf06798031ff81e5ea5851b3dadce3f587ee
|
|
BLAKE2b-256 checksum How to use checksums |
91403b18073a7e2d851361ccabae51a87371a7b2eb0f1f4e94e2f29183058b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.13
|
Release files / aot_biomaps-2.9.1049-py3-none-any.whl
| Download URL | aot_biomaps-2.9.1049-py3-none-any.whl |
|---|---|
| Size | 229.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
763cf53068790121418927684dad8d34ec0d9650f1f941662cc98bbac28cf642
|
|
BLAKE2b-256 checksum How to use checksums |
af97773bfb6d94ea459c2b9eed44115b3fa5d3ab2395d1f0378b7ebc9407ed09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.13
|
Security for aot-biomaps 2.9.1049
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.