Metadata-Version: 2.4
Name: neuralib-imaging
Version: 0.7.2
Summary: Tools for cellular imaging and widefield imaging
Author-email: Yu-Ting Wei <ytsimon2004@gmail.com>
License: BSD-3-Clause
Project-URL: Homepage, https://github.com/ytsimon2004/neuralib2
Project-URL: Documentation, https://neuralib2.readthedocs.io/en/latest/index.html
Project-URL: Repository, https://github.com/ytsimon2004/neuralib2
Project-URL: Issues, https://github.com/ytsimon2004/neuralib2/issues
Keywords: Parser,Segmentation,Morphology
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering
Classifier: Intended Audience :: Science/Research
Classifier: Typing :: Typed
Requires-Python: <3.13,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: neuralib-utils[all]>=0.7.0
Requires-Dist: numpy
Requires-Dist: numba>=0.63
Requires-Dist: matplotlib
Provides-Extra: cascade
Requires-Dist: ruamel.yaml; extra == "cascade"
Requires-Dist: tensorflow; extra == "cascade"
Provides-Extra: widefield
Requires-Dist: napari; extra == "widefield"
Requires-Dist: bokeh; extra == "widefield"
Requires-Dist: scikit-learn; extra == "widefield"
Requires-Dist: neuralib-imaging[widefield_preproc]; extra == "widefield"
Provides-Extra: widefield-preproc
Requires-Dist: numba>=0.59.0; extra == "widefield-preproc"
Provides-Extra: preproc-gpu-cuda11
Requires-Dist: numba>=0.59.0; extra == "preproc-gpu-cuda11"
Requires-Dist: cupy-cuda11x; extra == "preproc-gpu-cuda11"
Provides-Extra: preproc-gpu-cuda12
Requires-Dist: numba>=0.59.0; extra == "preproc-gpu-cuda12"
Requires-Dist: cupy-cuda12x; extra == "preproc-gpu-cuda12"
Provides-Extra: all
Requires-Dist: neuralib-imaging[cascade]; extra == "all"
Requires-Dist: neuralib-imaging[widefield]; extra == "all"
Provides-Extra: test
Requires-Dist: neuralib-imaging[all]; extra == "test"
Requires-Dist: neuralib-parser[all]; extra == "test"
Dynamic: license-file

# neuralib-imaging

Tools for cellular imaging and widefield imaging analysis, providing spike inference, image registration, and widefield
data processing for neuroscience research.

## Overview

`neuralib-imaging` provides Python tools for analyzing calcium imaging and widefield imaging data. It includes:

- **Spike Inference**: CASCADE (deep learning), OASIS deconvolution
- **Registration**: Coordinate transformation and atlas alignment
- **Widefield Analysis**: FFT processing, SVD decomposition, hemodynamic correction
- **Visualization**: Interactive napari-based viewers and plotting tools

## Installation

### From PyPI

```bash
pip install neuralib-imaging
```

### With Optional Dependencies

```bash
# CASCADE spike inference (requires TensorFlow)
pip install neuralib-imaging[cascade]

# Widefield analysis (requires napari, bokeh, scikit-learn)
pip install neuralib-imaging[widefield]

# All features
pip install neuralib-imaging[all]
```

### From Source (uv recommended)

```bash
git clone https://github.com/ytsimon2004/neuralib2.git
cd neuralib2/packages/neuralib-imaging
uv pip install -e .        # Basic installation
uv pip install -e ".[all]" # With optional features
```

### Requirements

- Python 3.11 or 3.12
- Core dependencies: `neuralib-utils`, `numpy`, `numba`, `matplotlib`
- See `pyproject.toml` for optional dependencies

## Documentation

- **Main Documentation**: [https://neuralib2.readthedocs.io/](https://neuralib2.readthedocs.io/en/latest/index.html)
- **GitHub Repository**: [https://github.com/ytsimon2004/neuralib2](https://github.com/ytsimon2004/neuralib2)
- **Issue Tracker**: [https://github.com/ytsimon2004/neuralib2/issues](https://github.com/ytsimon2004/neuralib2/issues)

## License

BSD 3-Clause License. See LICENSE file for details.

## Contributing

Contributions are welcome! Please:

1. Fork the repository
2. Create a feature branch
3. Submit a pull request with clear description

For bug reports and feature requests, use the [GitHub issue tracker](https://github.com/ytsimon2004/neuralib2/issues).

## Acknowledgments

This package integrates with:

- [CASCADE](https://github.com/HelmchenLabSoftware/Cascade) - Deep learning spike inference
- [napari](https://napari.org/) - Multi-dimensional image viewer
