marksgraham / OCT-Converter

Tools for extracting the raw optical coherence tomography (OCT) and fundus data from proprietary file formats.
https://pypi.org/project/oct-converter/
MIT License
199 stars 72 forks source link

Read contour data from .e2e files #61

Closed jh88 closed 2 years ago

jh88 commented 2 years ago

Hi Mark,

I added the code to extract contour data from e2e files. They are saved in a dict of list. The orders in the lists match your volume lists.

{
    'contour0': [
        np.array(...),
        np.array(...),
        np.array(...),
        ...
    ],
    'contour1': [
        np.array(...),
        np.array(...),
        np.array(...),
        ...
    ],
    ...
}
marksgraham commented 2 years ago

Thanks for adding this feature, it's excellent! I learnt about dict.get(key) from you, too :)