
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
A python package to read, analyse and visualize OCT and fundus data form various sources.
A powerful Python package for importing, analyzing, and visualizing retinal imaging data, including OCT and OCT Angiography.
eyepy
provides a unified and user-friendly interface for working with retinal imaging data. With support for a wide range of file formats, it enables researchers and clinicians to import, process, and visualize OCT volumes and angiography data with ease. The core EyeVolume
object offers intuitive methods for plotting fundus images, B-scans, and quantitative analyses such as drusen and retinal layer thickness. Comprehensive documentation and example workflows are available to help you get started quickly.
Attention: If you want to use a version prior to 0.12.0 you have to install from the eyepie
name instead. This is because we used eyepie
as a package name on PyPI until the previous owner of the eyepy
name on PyPI was so kind to transfer it to us.
To install the latest version of eyepy run pip install -U eyepy
. (It is eyepie
for versions < 0.12.0)
When you don't have a supported OCT volume at hand you can check out our sample datasets to get familiar with eyepy
.
from eyepy.data import load
struc_ev = load("drusen_patient")
struc_ev = load("healthy_OD")
angio_ev = load("healthy_OD_Angio")
If you have data at hand use one of eyepy's import functions.
# Import HEYEX E2E export
ev = ep.import_heyex_e2e("path/to/file.e2e")
# Import HEYEX XML export
ev = ep.import_heyex_xml("path/to/folder")
# Import HEYEX VOL export
ev = ep.import_heyex_vol("path/to/file.vol")
# Import Topcon FDA export
ev = ep.import_topcon_fda("path/to/file.fda")
# Import volume from Duke public dataset
ev = ep.import_duke_mat("path/to/file.mat")
# Import volume from RETOUCH challenge
ev = ep.import_retouch("path/to/volume_folder")
# Import HEYEX OCTA VOL export
ev_angio = ep.import_heyex_angio_vol("path/to/volume_folder")
eyepy
is capable of reading and visualizing OCT Angiography (OCTA) data from Heidelberg Spectralis devices. You can explore and analyze both structural and angiography volumes using the same unified interface.
The following example demonstrates how to load OCTA sample data, and plot the enface projections.
import eyepy as ep
import matplotlib.pyplot as plt
# Load sample data
angio_OD = ep.data.load("healthy_OD_Angio")
angio_OS = ep.data.load("healthy_OS_Angio")
fig, axes = plt.subplots(1, 2, figsize=(14, 7))
for i, (angio, title) in enumerate(zip([angio_OD, angio_OS], ["Right Eye (OD)", "Left Eye (OS)"])):
# Show localizer with Angiography overlay for the complete retina
angio.plot(ax=axes[i], slabs=["RET"])
axes[i].set_title(title)
axes[i].axis("off")
plt.tight_layout()
If you use eyepy in your research, please cite it. You can find citation information and export BibTeX entries via the Zenodo record:
For details on contributing and setting up a development environment, see the Contributing Guide.
FAQs
A python package to read, analyse and visualize OCT and fundus data form various sources.
We found that eyepy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.