Skip to content

Commit

Permalink
XA10A Vida dwell time (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Oct 21, 2018
1 parent 32bdca6 commit d0470f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions console/nii_dicom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3920,7 +3920,7 @@ const uint32_t kEffectiveTE = 0x0018+ (0x9082 << 16);
#define kPATModeText 0x0021+(0x1009<< 16 )//LO, see kImaPATModeText
#define kTimeAfterStart 0x0021+(0x1104<< 16 )//DS
#define kPhaseEncodingDirectionPositive 0x0021+(0x111C<< 16 )//IS
#define kRealDwellTime 0x0021+(0x1142<< 16 )//IS
//#define kRealDwellTime 0x0021+(0x1142<< 16 )//IS
#define kBandwidthPerPixelPhaseEncode21 0x0021+(0x1153<< 16 )//FD
#define kCoilElements 0x0021+(0x114F<< 16 )//LO

Expand Down Expand Up @@ -4820,13 +4820,13 @@ double TE = 0.0; //most recent echo time recorded
case kPhaseEncodingDirectionPositive: {
if (d.manufacturer != kMANUFACTURER_SIEMENS) break;
int ph = dcmStrInt(lLength, &buffer[lPos]);
if (ph == 1) d.phaseEncodingGE = kGE_PHASE_ENCODING_POLARITY_FLIPPED;
if (ph == 0) d.phaseEncodingGE = kGE_PHASE_ENCODING_POLARITY_UNFLIPPED;
if (ph == 0) d.phaseEncodingGE = kGE_PHASE_ENCODING_POLARITY_FLIPPED;
if (ph == 1) d.phaseEncodingGE = kGE_PHASE_ENCODING_POLARITY_UNFLIPPED;
break; }
case kRealDwellTime :
if (d.manufacturer != kMANUFACTURER_SIEMENS) break;
d.dwellTime = dcmStrInt(lLength, &buffer[lPos]);
break;
//case kRealDwellTime : //https://github.com/rordenlab/dcm2niix/issues/240
// if (d.manufacturer != kMANUFACTURER_SIEMENS) break;
// d.dwellTime = dcmStrInt(lLength, &buffer[lPos]);
// break;
case kBandwidthPerPixelPhaseEncode21:
if (d.manufacturer != kMANUFACTURER_SIEMENS) break;
d.bandwidthPerPixelPhaseEncode = dcmFloatDouble(lLength, &buffer[lPos],d.isLittleEndian);
Expand Down
2 changes: 1 addition & 1 deletion console/nii_dicom.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extern "C" {
#define kCCsuf " CompilerNA" //unknown compiler!
#endif

#define kDCMvers "v1.0.20181020 " kJP2suf kLSsuf kCCsuf
#define kDCMvers "v1.0.20181021 " kJP2suf kLSsuf kCCsuf

static const int kMaxEPI3D = 1024; //maximum number of EPI images in Siemens Mosaic
static const int kMaxDTI4D = 18000; //maximum number of DTI directions for 4D (Philips) images, also maximum number of 3D slices for Philips 3D and 4D images
Expand Down

0 comments on commit d0470f1

Please sign in to comment.