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

bscan data match volume's data #137

Open DENGBOYU-REX opened 4 months ago

DENGBOYU-REX commented 4 months ago

Hi, thank you for your great work on the OCT-Converter!! I have encountered a small issue. I have obtained 5 volumes from an E2E file, totaling 79 images. The B-scan data in the metadata also contains 79 dicts. Can I simply match each image in the volumes with the B-scan data in their default order? Thank you!!

marksgraham commented 4 months ago

Hi,

We move through the chunks in order through the file, so it seems likely that $n^{th}$ b-scan dict we encounter matches up with the $n^{th}$ b-scan encounter during the pass - but we don't have any actual guarantees they are linked.

also worth noting the b-scans are then placed within a volume during reading, here, whilst the b-scans are just appended as they are read, here so even less guarantee they will match!