brainvisa / anatomist-free

3D visualization of neuroimaging objects, C++ part
Other
2 stars 0 forks source link

Inconsistent labelling of the T axis in Anatomist windows #30

Closed ylep closed 2 years ago

ylep commented 2 years ago

Describe the bug In Anatomist windows, the label of the T axis is inconsistent: sometimes it displays the index of the volume, sometimes it displays the “time” of acquisition (index × TR).

To Reproduce Steps to reproduce the behavior:

  1. Open a 4D image that has a non-unit TR (i.e. for Nifti, pixdim[4] != 1). (example in NeuroSpin: /neurospin/tmp/yleprince/4d.nii.gz)
  2. Open two Axial windows showing this image
  3. In window 1, scroll the T axis: on top of the axis the “time” is displayed (a multiple of TR)
  4. Click on the image to position the cursor on the current time step
  5. In window 2, on top of the T axis the index is displayed (an integer value).

Expected behavior Depending on the use-case both the index and the “time” are useful (e.g. DWI vs fMRI): in my opinion the T axis should always display the index, whereas the cursor position displayed in the status bar should continue to display the “time”.

Screenshots 7 1

Environment: