-
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
Consistency of development and stable branch behavior #881
Comments
Associated with this issue, Philips enhanced DICOM fieldmaps like this one pack both a magnitude image and a fieldmaphz image into a single file. This causes dcm2niix to erroneously append |
Just to refresh memories, the reason the Personally, I don't think there should be two tags representing the exact same thing, which is potentially confusing. IMO, other tools/code that was previously looking for |
@mharms I think the challenge is that one persons feature is another person's regression. There is no clear standard. I am happy for @effigies to weigh in here. There seems to be four options: Assuming that a DICOM phase image has ImageType (0008,0008)
Assuming that a DICOM phase image has ImageType (0008,0008)
|
Are you saying that an XA Siemens system doesn't already have |
+1 (or +2!) for 2, please.
Out of these choices 4 is the best, but personally I would like The single letter P, I, R + M codes are needed for existing software that depends on them. "PHASE" is just cosmetic, but it's an important addition since the single letter codes are treated as suspiciously ambiguous by humans until they build up a fair bit of experience with them. If the long form moved to ImageTypeText that would be fine. @mharms : Siemens XA moved it, but only if using enhanced DICOM. I forget where the new address is, but it was a case of moving from an unofficial but well known location to an official but obscure one. I appreciate dcm2niix restoring it to where we'd gotten used to looking for it. |
@captainnova : Why do you so favor having Siemens has used Or, if GE DICOMs don't have the MAGNITUDE/PHASE distinction in (0008,0008) itself (but it can be inferred from elsewhere), then it seems like the solution should be to add |
I have no opinions here. @yarikoptic @marcelzwiers @dlevitas might, representing tools that wrap dcm2niix. |
One other thought, which is contradictory to my suggestion above to consolidate on using |
P because downstream software needs it. PHASE because most humans appreciate, or even need, it. But simultaneously present doesn't necessarily mean colocated. I have no strong opinion on whether PHASE is in ImageType or in ImageTypeText. There is a case where writing something to BIDS ImageType that is different than the DICOM (0008, 0008) ImageType is clearly the right thing to do (add P for downstream software), so adding PHASE only breaks a BIDS-DICOM correspondence that is already broken in some cases. @neurolabusc helpfully supplied the tag Siemens XA enhanced is using at the top: Complex Image Component (0008,9208). On reviewing it I noticed it uses words (which I like, obviously), and 'MIXED', which is illuminating. (Philips) Enhanced DICOM needs a code for different complex components in different volumes, so the M,P,I,R convention wouldn't have worked. dcm2niix/BIDS, and oddly enough Siemens enhanced (I think), put the different components in different niis/volumes, but it's interesting that (0008, 9208) is motivated by more than just wanting to formalize things. |
There are some different, somewhat distinct issues at play here:
Re (4): I feel that I'm missing some potential context here. @bpinsard: Why did #851 choose to add |
@captainnova : I also feel like I'm missing some context on the origin of this Issue, and why you object to the change made in #851. Is it solely that |
So IIRC the history is:
If we want to revert to the old long-standing dcm2niix behavior for tools that use it, I am fine with that. |
You can download an example from Siemens TerraX XA60 here. Siemens rationale for this change is that ImageType (0008,0008) does not define either
I appreciate the comments that each of you have made so far - open discussion and dissent is the first stage of consensus building. This is very timely with the discussion of issue 880 - in general I think the BIDS specification is the appropriate venue to resolve these issues. The BIDS team has clear mechanisms for resolving these issues and a democratically elected steering committee to reconcile conflicts. |
@bpinsard : Are you referring specifically to DICOMs from GE in that comment? So, if the insertion of That said, I don't understand the origin of the objection to |
Yes, I had temporally forgotten that in Enhanced XA DICOMs Siemens changed what they report in (0008,0008), presumably to conform to how they interpret the DICOM standard for that field, with the E11 version of (0008,0008) thankfully retained in (0021,1175), as you noted above. That raises the separate question of whether |
@yarikoptic
Yes GE only, thanks for the precision. |
I am closing this issue here, as it is described in the BIDS issue I opened. The upcoming stable release of dcm2niix will include the suggestions @bpinsard to support heudiconv. However, I do think @mharms has appoint that in general we try to avoid duplication, and the BIDS tag I do think the best solution might be to introduce the BIDS key ComplexImageComponent that would correspond with the tag Complex Image Component (0008,9208) introduced in enhanced DICOM. For classic DICOMs, we could still populate the BIDS tag from manufacturer specific details. |
Just in case it needs clarification, Personally, I would probably expect direct translations of DICOM, but as this is not about BIDS and no software I write uses these fields, I don't have any stake here. |
More thoughts about adding a |
Redundancy between metadata and entities is not a problem. In many cases there is a link between entities and a metadata field, (e.g., |
So, just to summarize where things currently stand, as a result of 2ffaba7 if the type of the image can be identified (not sure exactly how that is all accomplished), then |
Personally, I would have favored that we resolved to append |
@captainnova noted a change between the development branch and the stable release that can be seen with the dcm_qa_fmap validation dataset.
The stable release will append the
PHASE
type for phase imagesThe development release omits this if the alias
P
is already listed as the image type:This is due to this line of code and reflects my general style of avoiding redundancy.
Note that the same behavior is seen for
I
maginary,R
eal andM
agnitude.Note that the field
ImageType
is unique to dcm2niix, and is not required by the BIDS specification. Also, note that the DICOM tag ImageType (0008,0008) does not definePHASE
or other values, though by convention some manufacturers report it here. For modern DICOM, this information is typically reported in Complex Image Component (0008,9208).Since this behavior is specific to dcm2niix, the upcoming commit reverts to the previous style, and will insert
PHASE
even if the aliasP
is already present.The text was updated successfully, but these errors were encountered: