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

EOFError throw by line 489 of DICOM.jl #69

Closed
ygidtu opened this issue Nov 27, 2020 · 2 comments
Closed

EOFError throw by line 489 of DICOM.jl #69

ygidtu opened this issue Nov 27, 2020 · 2 comments

Comments

@ygidtu
Copy link

ygidtu commented Nov 27, 2020

image

  • Data source: This file is the open source CQ500 data.

  • Testing with pydicom works fine

  • Testing with add try-catch around line 489, then everything seems good

    try
        push!(data, read!(st, Array{dtype}(undef, xr)))
    catch e
        @show e
    end

    image

@notZaki
Copy link
Member

notZaki commented Nov 27, 2020

It might be because the DICOM images are compressed.
This can be checked by looking at the TransferSyntaxUID (0x0002, 0x0010) of the DICOM header.

If the images are compressed, then unfortunately this package can not read them currently.
One workaround is to decompress the images first, and then read them, as mentioned in #33 (comment).

@ygidtu
Copy link
Author

ygidtu commented Nov 27, 2020

I check the dcm file, as you said, it's compressed. Thanks for your answer.

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