Skip to content

Commit

Permalink
Table position from CSA (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Nov 13, 2024
1 parent 2c062f5 commit 586ca3c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion console/nii_dicom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,13 @@ int readCSAImageHeader(unsigned char *buff, int lLength, struct TCSAdata *CSA, i
CSA->sliceMeasurementDuration = csaMultiFloat(&buff[lPos], 3, lFloats, &itemsOK);
else if (strcmp(tagCSA.name, "BandwidthPerPixelPhaseEncode") == 0)
CSA->bandwidthPerPixelPhaseEncode = csaMultiFloat(&buff[lPos], 3, lFloats, &itemsOK);
else if ((strcmp(tagCSA.name, "MosaicRefAcqTimes") == 0) && (tagCSA.nitems > 3)) {
else if (strcmp(tagCSA.name, "ImaRelTablePosition") == 0) { //issue890
csaMultiFloat(&buff[lPos], 3, lFloats, &itemsOK);
CSA->tablePos[0] = 1.0;
CSA->tablePos[1] = lFloats[1];
CSA->tablePos[2] = lFloats[2];
CSA->tablePos[3] = -lFloats[3];
} else if ((strcmp(tagCSA.name, "MosaicRefAcqTimes") == 0) && (tagCSA.nitems > 3)) {
if (itemsOK > kMaxEPI3D) {
printError("Please increase kMaxEPI3D and recompile\n");
} else {
Expand Down

0 comments on commit 586ca3c

Please sign in to comment.