Skip to main content

oct-to-tiff

DOI PyPI - Version PyPI - License PyPI Downloads

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.

Metadata

Release files for oct-to-tiff 0.6.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oct-to-tiff 0.6.5
File Size Uploaded Provenance
oct_to_tiff-0.6.5.tar.gz 6.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for oct-to-tiff 0.6.5
File Interpreter ABI Platform
oct_to_tiff-0.6.5-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / oct_to_tiff-0.6.5.tar.gz

Download URL oct_to_tiff-0.6.5.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d5fab2c7d845d85c69a65897814de7f3ffe2ec945ba7e30a50260a74dc8d002a
BLAKE2b-256 checksum
How to use checksums
7acdbaa1eabdbc204d7f5a770c1920822cbb5900f50229cd25f277cd3be48bd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / oct_to_tiff-0.6.5-py3-none-any.whl

Download URL oct_to_tiff-0.6.5-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc5276a7ff820f50adcf451cd67cc382905d4f25ed6ed1cbc8f873f75fb32e59
BLAKE2b-256 checksum
How to use checksums
1bf43651ccf9461080b1dbe45aa71a0208bc19cafbd582728b393ec7d040176a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for oct-to-tiff 0.6.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oct_to_tiff-0.6.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page