Skip to content

Commit

Permalink
Revese polarity of Philips/Siemens TablePos Z (rordenlab#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Aug 13, 2024
1 parent 0ff9d32 commit de3b205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion console/nii_dicom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5982,6 +5982,7 @@ const uint32_t kEffectiveTE = 0x0018 + uint32_t(0x9082 << 16); //FD
if (d.manufacturer != kMANUFACTURER_SIEMENS)
break;
dcmMultiFloat(lLength, (char *)&buffer[lPos], 3, &d.CSA.tablePos[0]); //slice position
d.CSA.tablePos[3] = -d.CSA.tablePos[3]; //reverse Z polarity, issue 726
d.CSA.tablePos[0] = 1.0; //set
break;
}
Expand Down Expand Up @@ -6794,6 +6795,7 @@ const uint32_t kEffectiveTE = 0x0018 + uint32_t(0x9082 << 16); //FD
if (d.manufacturer != kMANUFACTURER_SIEMENS)
break;
dcmMultiFloat(lLength, (char *)&buffer[lPos], 3, &d.CSA.tablePos[0]); //slice position
d.CSA.tablePos[3] = -d.CSA.tablePos[3]; //reverse Z polarity, issue 726
d.CSA.tablePos[0] = 1.0; //set
break;
}
Expand Down Expand Up @@ -7138,7 +7140,7 @@ const uint32_t kEffectiveTE = 0x0018 + uint32_t(0x9082 << 16); //FD
case kMRStackTablePosLong: //FL
if (d.manufacturer != kMANUFACTURER_PHILIPS)
break;
d.CSA.tablePos[3] = dcmFloat(lLength, &buffer[lPos], d.isLittleEndian);
d.CSA.tablePos[3] = - dcmFloat(lLength, &buffer[lPos], d.isLittleEndian);
d.CSA.tablePos[0] = 1.0;
break;
case kMRImageDiffBValueNumber:
Expand Down

0 comments on commit de3b205

Please sign in to comment.