MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
Spotted in @tclose's Python code and thought it might belong as a C++ command.
Take as input a label image (3D, unsigned integer, maybe but not necessarily increasing contiguously from 1, typically multiple spatially contiguous voxels with the same value), and produce as output a 3D or 4D boolean image.
Option to specify one or more labels of interest.
In the special case of just one index, resulting in a 3D image output, the command would have equivalent operation to mrcalc # -eq -datatype bit, but might be more discoverable.
Option to control, in the case of a 4D output image and where the input image contains non-contiguous labels, whether the output image should include empty volumes for those indices for which no voxels are present, or whether only present indices should be included (and maybe some information about how indices in the input image projected to volume indices in the output image would need to be exported)
Spotted in @tclose's Python code and thought it might belong as a C++ command.
Take as input a
label
image (3D, unsigned integer, maybe but not necessarily increasing contiguously from 1, typically multiple spatially contiguous voxels with the same value), and produce as output a 3D or 4D boolean image.mrcalc # -eq -datatype bit
, but might be more discoverable.