A napari plugin for analyzing optical coherence tomography (OCT) from biofilm growing on substratum.
Project description
BioOCT
BioOCT is a napari plugin for quantitative analysis of 3D optical coherence tomography (OCT) images, built around the Thorlabs .oct file format. It is suited for biofilm and some scaling variants.
It bundles a domain-specific set of processing functions, interactive widgets, and a reproducible batch-processing pipeline into a toolbox — designed for OCT/biofilm researchers without requiring programming expertise.
The main use cases are:
- segmenting biofilm or scaling from surrounding fixtures (substratum, optical window, feed spacer, bulk medium) in OCT image stacks with a (near-)planar substratum geometry
- recording an image processing pipeline once on a representative image, then reproducibly replaying it on a single image or across a full folder/timeseries of
.octfiles - exporting raw and segmented data with preserved voxel geometry and physical spacing, suitable as training data for volumetric ML segmentation models
Features
- Dedicated reader for Thorlabs
.octfiles - Filtering (Median, Gaussian, Sobel) and contrast enhancement (gamma, percentile clipping, CLAHE)
- Substratum/window detection with gap interpolation, ROI selection, and reflection/area-masking tools
- Thresholding via multiple standard algorithms (Otsu, Yen, Li, Mean, Isodata, Triangle, or manual value) with live preview
- Post-processing (small-object removal) and quantitative evaluation: height maps, biovolume maps, and growth/roughness/porosity metrics export
- Export to TIFF and NIfTI with voxel spacing and affine metadata preserved
- Pipeline Manager: records processing steps as human-readable YAML, with single-layer and batch-folder replay for reproducible analysis
Getting Started
-
Installation Guide (Windows) Setup instructions for users.
-
Usage Guide Overview and guidance to plugin usage and napari.
-
Contribute Best practice workflow for contributing to the project.
Sample Data & Example Pipelines
Three example datasets covering structurally distinct image classes are available via
File > Open Sample > BioOCT
directly in napari, or on Zenodo (DOI: doi.org/10.5281/zenodo.20758173):
- Membrane with Spacer: membrane substratum with embedded feed spacer fixtures
- Rough Electrode: electrode substratum with rough surface topology
- Smooth Electrode with Shadowing: planar electrode substratum with signal shadowing caused by thick biofilm growth
Matching pipeline YAML files for each image class are also available in the above Zenodo dataset, or via the repository in docs/examples/, demonstrating a complete processing workflow from raw .oct to segmentation and metrics export. Load them via the Pipeline Manager widget (Load → Replay Single).
License
MIT License - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bio_oct-0.4rc2.tar.gz.
File metadata
- Download URL: bio_oct-0.4rc2.tar.gz
- Upload date:
- Size: 360.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d548235ee6c5094a177aa48873ed293f2805d16b114abf5df8dab21f8dc87fed
|
|
| MD5 |
4bc6c0a2f09da5392eee1092422a5bb4
|
|
| BLAKE2b-256 |
14834302c2b07a6a68511770c1bdd13cdd2ef76dc8a7a37097b4667e072c5faf
|
File details
Details for the file bio_oct-0.4rc2-py3-none-any.whl.
File metadata
- Download URL: bio_oct-0.4rc2-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b17ded5ba3afd4e6bedfbc1267c783c84a6bbebabff2ad468ccd9062b45f3791
|
|
| MD5 |
5921306cf31b3ccc91f34402f8fdef78
|
|
| BLAKE2b-256 |
9fc1d463e1f5df97f314c05b001caf344048433bc59cc9f37a9c039721a64f18
|