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
193 stars 70 forks source link

Parse segmentation from fda files #94

Closed drombas closed 1 year ago

drombas commented 1 year ago

Hi and thanks for the tool.

I am trying to parse segmentation data from fda files to extend eyepy.

I believe the segmentation is stored in @CONTOUR_INFO chunks (one per layer).

I've noticed that the read_any_info_and_make_dict cannot be used to retrieve the segmentation of all layers as they share the same name and key in the dictionary.

What do you think about adding a read_segmentation() method to FDA class ? I can do it myself if it sounds good.

marksgraham commented 1 year ago

Hi @drombas

Sounds like a good idea to me. Thanks for working on this!