A command line tool for converting optical coherence tomography angiography (OCTA) data.
Project description
oct-to-tiff
A command line tool for converting optical coherence tomography angiography (OCTA) data.
Installation
via uv (recommended):
uv pip install oct-to-tiff
via pip:
pip install oct-to-tiff
via conda:
conda install conda-forge::oct-to-tiff
Getting started
oct-to-tiff /path/to/image.OCT
will read an OCT volume and write to a single OME-TIFF file, including voxel size in the metadata.
By default, the output file will be written with the same name as the input file and to the same directory:
tree /path/to/images
├── image.OCT
└── image.ome.tif
To specify a custom output directory, see Optional arguments below.
Batch processing
for file in *.OCT; do oct-to-tiff "${file}"; done
will convert all OCT volumes in the current directory to OME-TIFF files, including voxel size in the metadata.
Supported scan patterns
This tool has been developed by reverse engineering data from the Optovue RTVue XR Avanti System.
Due to limited test data, only the following scan patterns are currently supported:
Structural OCT
- 3D Cornea
- 3D Disc
- 3D Retina
- 3D Widefield
- 3D Widefield MCT
- Angle
- Cornea Cross Line
- Cornea Line
- Cross Line
- Enhanced HD Line
- GCC
- Grid
- Line
- ONH (Partial)
- Pachymetry Wide
- Radial Lines
- Raster
- Retina Map (Partial)
OCT Angiography
- Angio Disc
- Angio Retina
- HD Angio Disc
- HD Angio Retina
Optional arguments
To view these options at any time, run oct-to-tiff --help.
--output OUTPUT
Description: specify a custom output directory.
If the path to the output directory does not exist, a new directory (and parent directories) will be created.
Usage:
oct-to-tiff /path/to/image.OCT --output /path/to/output/directory
--overwrite
Description: overwrite output file if it exists.
Usage:
oct-to-tiff /path/to/image.OCT --overwrite
--size SIZE
Description: scan size in mm.
Sets the correct voxel size for scan patterns with adjustable length.
Usage:
oct-to-tiff /path/to/image.OCT --size 4.5
--log-level LEVEL
Description: sets the logging level (default: WARNING)
Usage:
oct-to-tiff /path/to/image.OCT --log-level INFO
--version
Description: show program's version number and exit.
Usage:
oct-to-tiff --version
The following options are mutually exclusive:
--angio
Description: convert extracted OCTA data.
Usage:
oct-to-tiff /path/to/data --angio --size 4.5
--en-face
Description: convert extracted en face data.
Usage:
oct-to-tiff /path/to/data --en-face --size 4.5
--seg-curve
Description: convert extracted segmentation data.
Usage:
oct-to-tiff /path/to/data --seg-curve
--boundaries
Description: convert segmentation lines to ImageJ ROIs.
Usage:
oct-to-tiff /path/to/curve.xml --boundaries
Contributing
This project uses Ruff for linting and formatting.
Requirements
Requires Python 3.11 or higher.
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 oct_to_tiff-0.6.4.tar.gz.
File metadata
- Download URL: oct_to_tiff-0.6.4.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d290dc49b9ec017e335474fc664bcecc684bae2a7198ccb44b30dc079767abf8
|
|
| MD5 |
cd27f7f40960ad9dfe3a9050a07e279c
|
|
| BLAKE2b-256 |
cee2f393da5448fed004465f80424540d2ff15b52526a5782a96b6ec06d4078d
|
Provenance
The following attestation bundles were made for oct_to_tiff-0.6.4.tar.gz:
Publisher:
publish-to-pypi.yml on camlloyd/oct-to-tiff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oct_to_tiff-0.6.4.tar.gz -
Subject digest:
d290dc49b9ec017e335474fc664bcecc684bae2a7198ccb44b30dc079767abf8 - Sigstore transparency entry: 1181817028
- Sigstore integration time:
-
Permalink:
camlloyd/oct-to-tiff@43527b3e359c756758dbbe754f635f1f0608c6c0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/camlloyd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@43527b3e359c756758dbbe754f635f1f0608c6c0 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file oct_to_tiff-0.6.4-py3-none-any.whl.
File metadata
- Download URL: oct_to_tiff-0.6.4-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54b59c39ee23751c23e4ccb1a4061aaa349683e59c7f1e531507b9498baaa0a1
|
|
| MD5 |
b0909b533c6a6de77c2536d141bd8bcb
|
|
| BLAKE2b-256 |
38f699231a3da81dd317485933bf3c9fa21e5508560923ecae01faffe0a484a7
|
Provenance
The following attestation bundles were made for oct_to_tiff-0.6.4-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on camlloyd/oct-to-tiff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oct_to_tiff-0.6.4-py3-none-any.whl -
Subject digest:
54b59c39ee23751c23e4ccb1a4061aaa349683e59c7f1e531507b9498baaa0a1 - Sigstore transparency entry: 1181817051
- Sigstore integration time:
-
Permalink:
camlloyd/oct-to-tiff@43527b3e359c756758dbbe754f635f1f0608c6c0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/camlloyd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@43527b3e359c756758dbbe754f635f1f0608c6c0 -
Trigger Event:
workflow_dispatch
-
Statement type: