Skip to main content

A command line tool for converting optical coherence tomography angiography (OCTA) data.

Project description

oct-to-tiff

DOI

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.tif

To specify a custom output directory, see Optional arguments below.

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

--version

Description: show program's version number and exit.

Usage:

oct-to-tiff --version

The following options are currently experimental:

--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

Contributing

This project uses black for formatting and isort for sorting imports.

Requirements

Requires Python 3.7 or higher.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oct_to_tiff-0.3.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

oct_to_tiff-0.3.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file oct_to_tiff-0.3.0.tar.gz.

File metadata

  • Download URL: oct_to_tiff-0.3.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for oct_to_tiff-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3e842aff08cd11f11bcee252a37a6530fde884a632551612c4f7478a8d8210cb
MD5 417a2e6b80516b99ac632f43d4c6a4eb
BLAKE2b-256 13a36befc8ef68ba7055560b2eaa393d8c094ad0de711665340ec6553233a565

See more details on using hashes here.

File details

Details for the file oct_to_tiff-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: oct_to_tiff-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for oct_to_tiff-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 321a426c5c3347ddeee70945e70d14dd32117ca01a32c6788a23a275b80af8fa
MD5 c8b637a95893caf3f6c6afebc116308d
BLAKE2b-256 938a6529017074f38c372e5f8b7f7e5d8cb432065658a7190fb62f27f19a26ae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page