Open Dale-Black opened 3 months ago
Newer Siemens units use enhanced DICOM by default when exporting, and it looks like DICOM.jl struggles to read the deeply nested sequences in the header. So it trips up before reaching the pixel data. I'll try to take a look as well.
Edit: On a closer look, the nested sequences are being parsed, so maybe it's a specific element in a sequence causing the issue.
Oh wow thank you for being so quick to respond. I appreciate you looking into this very much!
The current (unreleased) master tries to quickly/temporarily fix this.
I tried the following:
dcm = dcm_parse(path_70_kev)
rescale!(dcm)
# Using Plots
heatmap(dcm.PixelData, aspect_ratio=1, color=:grays, yflip=true, clim=(-1000, 2000), axis=false, grid=false)
and it approximately matches what I see in a dicom viewer. Let me know if it works for you.
Great, this works and has the correct pixel data!
I will try to get around to diagnosing this issue, but for some reason the pixel data from this image (from a new photon counting CT) is not found using DICOM.jl but works fine with pydicom
Here is my Julia attempt:
Which errors:
Whereas with pydicom (via PythonCall)
this works completely fine.
MonoE 70keV 200mA.dcm.zip