ENH,RF: Use new features in `utils/threading.h` and `newimage::volume` to parallelise voxel-wise operations
- Don't pass a value to
Utilities::NoOfThreads- this allows it to take a value from theFSL_NUM_THREADSenvironemnt variable (or default to single-threaded if that variable is unset) - Use
Utilities::parforto parallellise voxel-wise operations - Replace some instances of using
NEWIMAGE::volume[t](x, y, z)with eithervolume(x, y, z, t)orauto volt = vol[t]; ... volt(x, y, z).
This MR depends on utils!15 (merged) and newimage!40 (merged)
Edited by Paul McCarthy