Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/camlloyd/oct-to-tiff
A command line tool for converting optical coherence tomography angiography (OCTA) data.
https://github.com/camlloyd/oct-to-tiff
angiography cli oct octa
Last synced: about 2 months ago
JSON representation
A command line tool for converting optical coherence tomography angiography (OCTA) data.
- Host: GitHub
- URL: https://github.com/camlloyd/oct-to-tiff
- Owner: camlloyd
- License: bsd-3-clause
- Created: 2021-07-02T23:36:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-27T10:31:47.000Z (7 months ago)
- Last Synced: 2024-10-14T20:09:26.110Z (2 months ago)
- Topics: angiography, cli, oct, octa
- Language: Python
- Homepage: https://pypi.org/project/oct-to-tiff
- Size: 85 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Citation: CITATION.cff
Awesome Lists containing this project
README
# oct-to-tiff
[![DOI](https://zenodo.org/badge/382486199.svg)](https://zenodo.org/badge/latestdoi/382486199)
A command line tool for converting optical coherence tomography angiography (OCTA) data.
## Installation
via pip:pip install oct-to-tiff
via conda:
conda install -c 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.tifTo specify a custom output directory, see [Optional arguments](#optional-arguments) below.
## Batch processing
``` bash
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.Requires `--size SIZE`.
**Usage**:
oct-to-tiff /path/to/data --angio --size 4.5
#### `--en-face`
**Description**: convert extracted en face data.Requires `--size SIZE`.
**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**: extract segmentation lines.**Usage**:
oct-to-tiff /path/to/curve.xml --boundaries
## Contributing
This project uses [Ruff](https://github.com/astral-sh/ruff) for linting and formatting.
## Requirements
Requires Python 3.8 or higher.