Skip to content

Commit

Permalink
Revert (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Oct 12, 2024
1 parent e3fc3e2 commit 7ff30fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/nii_dicom_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7851,8 +7851,8 @@ int sliceTimingCore(struct TDCMsort *dcmSort, struct TDICOMdata *dcmList, struct
if (sliceDir < 0) {
// Issue 797: For Siemens MOSAICs, slice order depends on ProtocolSliceNumber not temporal order
// for enhanced non-mosaic images, we may need to reverse slice order as saved to disk to ensure FSL's preferred negative determinant
// for classic non-mosaic images, we do not encode this. xyzDim[3] discriminates classic vs enhanced
if ((dcmList[dcmSort[0].indx].xyzDim[3] > 1) && (dcmList[dcmSort[0].indx].manufacturer == kMANUFACTURER_SIEMENS) && (dcmList[dcmSort[0].indx].CSA.mosaicSlices < 2))
// for classic non-mosaic images, we will also isFlipZ
if ((dcmList[dcmSort[0].indx].manufacturer == kMANUFACTURER_SIEMENS) && (dcmList[dcmSort[0].indx].CSA.mosaicSlices < 2))
dcmList[dcmSort[0].indx].CSA.protocolSliceNumber1 = -1;
if ((dcmList[dcmSort[0].indx].manufacturer == kMANUFACTURER_UIH) || (dcmList[dcmSort[0].indx].manufacturer == kMANUFACTURER_GE))
dcmList[dcmSort[0].indx].CSA.protocolSliceNumber1 = -1;
Expand Down

0 comments on commit 7ff30fc

Please sign in to comment.