A Python package for automated analysis of 3D vascular networks from microscopy images.
VesselTracer is a tool designed to automate the analysis of vascular networks in 3D microscopy images. It provides functionality for vessel segmentation, layer detection, and quantitative analysis of vascular structures across different tissue layers.
- Automated Vessel Segmentation: Process 3D microscopy images to identify vascular structures
- Layer Detection: Automatically detect and analyze different tissue layers
- 3D Visualization: View projections with depth coding and layer highlighting
- Quantitative Analysis: Measure vessel distribution and characteristics across layers
- Configurable Pipeline: Customize analysis parameters through YAML configuration files
- CZI Support: Native support for Zeiss CZI microscopy file format
python runVesselTracing.py input_file.czi
input_file
: Path to the input CZI file containing 3D microscopy data
python runVesselTracing.py data/sample_vessels.czi
- Loads and preprocesses the 3D microscopy data
- Detects and traces vessel paths
- Classifies vessels into layers (superficial, intermediate, deep)
- Generates visualizations including:
- XY, XZ, and ZY projections with depth coding
- 3D view of vessel paths
- Layer analysis plots
# Clone the repository
git clone https://github.com/mattar13/VascularAnalysis.git
cd VascularAnalysis/src/VesselTracer
# Install the package
pip install -e .
from VesselTracer import VesselTracer
from pathlib import Path
# Initialize with a CZI file
tracer = VesselTracer("path/to/your/image.czi")
# Run the analysis pipeline
tracer.segment_roi()
tracer.smooth()
tracer.binarize()
tracer.determine_regions()
# Visualize results
tracer.plot_projections(mode='binary', depth_coded=True)
tracer.plot_mean_zprofile()
VesselTracer uses YAML configuration files to customize the analysis pipeline. Example configuration:
segmentation:
threshold: 0.5
min_size: 100
smoothing:
sigma: 1.0
region_detection:
min_peak_height: 0.1
min_peak_distance: 10
For detailed documentation, please refer to the following sections:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Developed at UC Berkeley
- Built with Python, NumPy, and Matplotlib
- Inspired by the need for automated vascular network analysis in neuroscience research