Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fundus jpg looks wrong; the .avi is just "static noise" and the dicom function doesn't work from the example #145

Open
skirsch opened this issue Aug 12, 2024 · 4 comments

Comments

@skirsch
Copy link

skirsch commented Aug 12, 2024

I did everything by the book for the demo. I downloaded the exact sample image file and ran the sample code.

There were 3 big problems:

  1. the .avi movie was just "static noise"
  2. the fundus image was largely black, not like the sample image at all
    fds_testing_fundus

And the dcm version was unreadable:
image

  1. Output from last part of the example script:
>>> metadata = fds.read_all_metadata(verbose=True)
b'@IMG_SCAN_03' there is no method for getting info from this chunk.
b'@PARAM_TRC_02' there is no method for getting info from this chunk.
>>> with open("fds_metadata.json", "w") as outfile:
...     outfile.write(json.dumps(metadata, indent=4))
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
NameError: name 'json' is not defined
>>> dcm = create_dicom_from_oct(filepath)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'create_dicom_from_oct' is not defined

everything else worked.

It appears there was a missing:

from oct_converter.dicom import create_dicom_from_oct

from the example script?

@marksgraham
Copy link
Owner

I think the fundus might just be that bad quality

Can you try export as a series of .png rather than .avi by changing the extension type and see if it still just looks like noise?

The import was missing from the README script, thanks for spotting, you can find the fuller example here: https://github.com/marksgraham/OCT-Converter/blob/main/examples/demo_fds_extraction.py

@skirsch
Copy link
Author

skirsch commented Sep 14, 2024

exporting as series of .png worked, it's just that the .avi should have played flawlessly and it was just noise. maybe people aren't trying this... the sample file takes FOREVER to download due to the place you have it hosted.

I have a 10G connection and could host the file on my website if you like (and would be willing to list in in the documentation so people know about it).

@marksgraham
Copy link
Owner

marksgraham commented Sep 22, 2024 via email

@skirsch
Copy link
Author

skirsch commented Sep 26, 2024

ok. so all i'm saying is I couldn't replicate the images using that data. were you able to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants