bids-apps / MRtrix3_connectome

Generate subject connectomes from raw BIDS data & perform inter-subject connection density normalisation, using the MRtrix3 software package.
http://www.mrtrix.org/
Apache License 2.0
48 stars 26 forks source link

Change complex data import #96

Open Lestropie opened 3 years ago

Lestropie commented 3 years ago

For Siemens data (phase comes in in range [-4096, +4094]), converting to radians through applying scaling only (i.e. not applying an offset) is what is necessary to produce a complex image from which computing the phase via std::arg (essentially atan2) replicates the original input phase image.

Shouldn't be consequential, but could nevertheless detect when the input phase image is close to symmetric about 0, and apply scaling to [-pi, pi) only, rather than scaling and shifting to [0, 2pi).