BIC-MNI / Display

MNI Display project, converted from CVS
Other
8 stars 4 forks source link

Intensity plot box for NIFTI images *with* time dimension is all white #79

Open gdevenyi opened 7 years ago

gdevenyi commented 7 years ago

Loading a NIFTI timeseries image results in a solid white box where the intensity plot usually is.

Converting the NIFTI to MINC and loading it displays properly.

rdvincent commented 7 years ago

@gdevenyi Thanks - I don't see this with the few functional files I have, can you give me any details about the file (e.g. the output of nifti_tool -infiles -disp_hdr)?

gdevenyi commented 7 years ago
header file '20160711_CDW_AMY018_M210_04_RARE.nii', num_fields = 43

all fields:
  name                offset  nvals  values
  ------------------- ------  -----  ------
  sizeof_hdr             0      1    348
  data_type              4     10    
  db_name               14     18    
  extents               32      1    0
  session_error         36      1    0
  regular               38      1    r
  dim_info              39      1    0
  dim                   40      8    4 64 50 22 100 1 1 1
  intent_p1             56      1    0.0
  intent_p2             60      1    0.0
  intent_p3             64      1    0.0
  intent_code           68      1    0
  datatype              70      1    4
  bitpix                72      1    16
  slice_start           74      1    0
  pixdim                76      8    1.0 0.25 0.25 0.8 3000.0 0.0 0.0 0.0
  vox_offset           108      1    352.0
  scl_slope            112      1    1.0
  scl_inter            116      1    0.0
  slice_end            120      1    0
  slice_code           122      1    0
  xyzt_units           123      1    10
  cal_max              124      1    0.0
  cal_min              128      1    0.0
  slice_duration       132      1    0.0
  toffset              136      1    0.0
  glmax                140      1    0
  glmin                144      1    0
  descrip              148     80    FSL5.0
  aux_file             228     24    
  qform_code           252      1    1
  sform_code           254      1    1
  quatern_b            256      1    0.0
  quatern_c            260      1    0.0
  quatern_d            264      1    0.0
  qoffset_x            268      1    0.0
  qoffset_y            272      1    0.0
  qoffset_z            276      1    0.0
  srow_x               280      4    0.25 0.0 0.0 0.0
  srow_y               296      4    0.0 0.25 0.0 0.0
  srow_z               312      4    0.0 0.0 0.8 0.0
  intent_name          328     16    
  magic                344      4    n+1
rdvincent commented 7 years ago

Thanks, I think this is a units issue, as this file is using msec instead of seconds for the time units - I'll test that theory soon.