Skip to main content

Extract OCT and fundus data from proprietary file formats.

Project description

OCT file converter

This repository contains code for extracting the raw optical coherence tomography (OCT) and fundus data from manufacturer's proprietary file formats.

Motivation

Research in ophthalmology is often hindered by manufacturer's usage of proprietary data formats for storing their data. For example, until recently, the ~200,000 OCT scans in the UK Biobank project was only available in Topcon's .fds file format, which prevented bulk processing and analysis. The only freely available software that allows these scans to be accessed is uocte, which is written in C++ and is no longer maintained. This repository aims to make available python-based tools for reading these proprietary formats.

Supported file formats

  • .fds (Topcon)
  • .fda (Topcon)
  • .e2e (Heidelberg)
  • .img (Zeiss)
  • .dcm

Installation

Requires python3.

pip install oct-converter

Usage

A number of example usage scripts are included in examples/.

Here is an example of reading a .fds file:

from oct_converter.readers import FDS

# An example .fds file can be downloaded from the Biobank website:
# https://biobank.ndph.ox.ac.uk/showcase/refer.cgi?id=30
filepath = '/home/mark/Downloads/eg_oct_fds.fds'
fds = FDS(filepath)

oct_volume = fds.read_oct_volume()  # returns an OCT volume with additional metadata if available
oct_volume.peek() # plots a montage of the volume
oct_volume.save('fds_testing.avi')  # save volume as a movie
oct_volume.save('fds_testing.png')  # save volume as a set of sequential images, fds_testing_[1...N].png

fundus_image = fds.read_fundus_image()  # returns a  Fundus image with additional metadata if available
fundus_image.save('fds_testing_fundus.jpg')

Contributions

Are welcome!

Updates

30 October 2020

  • Extract fundus and laterality data from .e2e
  • Now attempts to extract additional volumetric data from .e2e files that was previously missed

22 August 2020

  • Experimental support for reading OCT data from .fda files.

14 July 2020

  • Can now read fundus data from .fda files.

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_converter-0.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

oct_converter-0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file oct_converter-0.1.tar.gz.

File metadata

  • Download URL: oct_converter-0.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.6

File hashes

Hashes for oct_converter-0.1.tar.gz
Algorithm Hash digest
SHA256 32d5f03b56b0fc6a68833b29feafb95f5c925896d7e2f0924a5051e706cd83b6
MD5 c3aa71614aa1ff4ccee34c0232c7734b
BLAKE2b-256 5f53e8faa4f097fc0209e76d8786642f1afed9ef991cf822328f73418505a5f0

See more details on using hashes here.

Provenance

File details

Details for the file oct_converter-0.1-py3-none-any.whl.

File metadata

  • Download URL: oct_converter-0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.6

File hashes

Hashes for oct_converter-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 319e90c4675d6983f5aef3eecb537fc845b334befd041890a526f24edeadf497
MD5 2e3c9a83eab98501652e176bbe281262
BLAKE2b-256 27833181200ccbe53a064719fe7baeeb2f8aef8d68ae0ec361deb8943a7c61d8

See more details on using hashes here.

Provenance

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