MedVisBonn / eyelab

A mulit-modal annotation tool for retinal imaging data
MIT License
8 stars 2 forks source link

Annotations (from EyeLab tool) appear hindered when visualized using EyePy library #4

Open Salmanshams67 opened 3 days ago

Salmanshams67 commented 3 days ago

Environment:

Description

I was annotating OCT scan images using the EyeLab tool and attempted to visualize these annotations using the eyepy library. However, the visualized annotations seem hindered or misaligned, suggesting that there might be an issue with how EyeLab is saving or formatting the annotations. I expected the annotations to be correctly visualized and aligned, just as they appear in the EyeLab tool.

Steps to Reproduce:

  1. Annotate any OCT scan using EyeLab.
  2. Save the annotations.
  3. Load the annotated file using the eyepy library and attempt to visualize it.
  4. Observe that the annotations appear hindered or misaligned in the saved .png file.

Expected Behavior:

Annotations should be correctly visualized and aligned when viewed using the eyepy library.

@Oli4 @actions-user

Oli4 commented 2 days ago

Dear @Salmanshams67,

Thank you for bringing this to my attention. You are indeed correct—there appears to be a bug related to the layer annotations in EyeLab. Currently, EyeLab uses eyepy version 0.6.7, while the latest version is 0.12.2. At some point during the updates, I changed the orientation of the z-axis for layer annotations, which unfortunately led to a mismatch. When visualizing the first B-scan, the layers stored by EyeLab appear in the reverse order, displaying the last B-scan’s layers on the first B-scan’s image, and vice versa. Fortunately, this issue does not affect area annotations.

Regrettably, I don’t have the time at the moment to address this issue myself. However, you’re more than welcome to contribute a fix. There are a few potential solutions:

Thank you again for your keen observation, and please let me know if you have any questions or need further clarification.

Best regards, Olivier