-
Notifications
You must be signed in to change notification settings - Fork 228
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
Enhanced MR DICOM EPI from Bruker - volumes not resolved correctly #241
Comments
@isolovey-robarts
|
Please test latest code (v1.0.20181027). It attempts to support dcm4che's enhanced DICOM based on a single example. Ideally, it would be good to test on data from different vendors and more modern versions of dcm4che. |
Thank you, Chris, and sorry for a delayed reply. I think I should explain our setup a bit better to clear up some confusion. On our Bruker console, DICOMs can be exported as files or sent to the DICOM storage SCP. Additionally, they can be exported as either "single-frame" (i.e. regular single-slice DICOM EPI datasets can be exported as "single-frame", but this isn't feasible for us because it generates n_slices-by-n_volumes files, which for long EPI runs can be something like 64*600 = 38400 files. This takes hours to export to the DICOM server (or to the filesystem) and results in huge storage overhead. On Siemens consoles, these would be exported as "mosaic" files (all slices of a volume tiled into one file), but unfortunately the Bruker console cannot do this. So our only option is Enhanced. Our DICOM server is For completeness, I've uploaded 4 datasets:
Before commit As of Also, the commit refers to |
Although the dataset I initially provided is converted fine by Here is a sample dataset (50 MB rat image). I can fix it by loading the converted Nifti file into Python, first reshaping (i.e. changing dimensionality to reflect the order in which the slices are actually stored), and then transposing (i.e. reordering the data): I=nibabel.load(...)
D=I.get_data()
D2=D.reshape((D.shape[0],D.shape[1],D.shape[3],D.shape[2]),order='F').transpose(0,1,3,2)
I2=nibabel.Nifti1Image(D2,I.affine,I.header)
nibabel.save(I2,...) |
@isolovey-robarts the current version should convert your image ok. It will generate the warning "Error: Anatomical Orientation Type (0010,2210) is QUADRUPED: rotate coordinates accordingly". I know that some quadruped templates use the Y direction for Anterior->Posterior and the Z for Inferior->Superior, while others reverse these. I think one would need to rotate the image and the bvec's correspondingly. I do not have enough sample datasets or insight to be confident in a solution. I think my current solution is usable for most situations and handles the data I have seen. |
I've tested the current version |
Found another problem so I thought I'd re-open this issue. I have an Enhanced MR with a slice gap (
When converting the non-Enhanced MR DICOMs, I'm not sure whether this problem is specific to Bruker/Diffusion data, or Enhanced MR DICOMs in general. See test dataset. |
Please test latest commit. The BIDS will report |
Thanks, the |
* tag 'v1.0.20181114': (70 commits) New stable release: update documentation (v1.0.20181114) Avoid using GDCM's internal OpenJPEG library. Discriminate trace from raw GE DWI scans (rordenlab#245) Restore Philips enhanced (rordenlab@3c31d18) Clean up readme, interpolation errors less verbose, add date-of-birth to BIDS (requires '-ba n') Not all GE DWI with b>0 bvec=0 are trace (rordenlab#245) calculate Zmm for enhanced DICOM w/o 0018,0088 (rordenlab#241) Kludge for Siemens MoCo slice timing interfered with CMRR fix (CMRR-C2P/MB#29) Bruker enhanced 4D data (rordenlab#241) XA10A tag substitutes (rordenlab#240) Huffman tables repeated for RGB planes for jpg_0XC3 (rordenlab#244) change MoCo naming and derived detection (rordenlab#243) Update dcm_qa_nih submodule. Update dcm_qa_nih submodule. Update dcm_qa submodule. experimental dcm4che enhanced support (rordenlab#241) Vida partial Fourier update (rordenlab#240) XA10A Vida dwell time (rordenlab#240) More XA10A Vida header info (rordenlab#240) UIH bvecs (rordenlab#225 (comment)) ...
I've encountered an issue converting Enhanced MR EPI DICOMs from a Bruker scanner. The slice and volume dimensions are not resolved and are squeezed together.
I've uploaded a small 2-volume EPI scan here.
When I "un-enhance" the DICOM file using
dcm4che
'semf2sf
tool, and then convert the resulting 2D images usingdcm2niix
, I get the right output.dim
,qoffset_y
andsrow_y
are incorrect in the directly converted Nifti:The text was updated successfully, but these errors were encountered: