usage: __main__.py [-h] [--symmetric_distance] [-v [{DEBUG,INFO,WARNING}]]
[-f]
IN_SOURCE IN_TARGET OUT_DISTANCE_MAP
Compute distance map between two binary masks. The distance map is the
Euclidean distance from each voxel of the first mask to the closest
voxel of the second mask.
Slowest scenarios are 1) two very large masks that are far appart or 2) a very
small mask completely inside a very large mask (around 20-30 seconds).
Take this command as an example:
scil_volume_distance_map.py brain_mask.nii.gz AF_L.nii.gz AF_L_to_brain_mask.nii.gz
We have a brain mask and a bundle, the second is 100% inside the first.
The output will be a distance map from the brain mask to the bundle.
If we take the bundle as the first input and the brain mask as the second,
The output will be a distance map from the bundle to the brain mask, which
will be all zeros (because the bundle is fully inside the brain mask).
If you want both distance maps at once, you can use the --symmetric_distance
option.
positional arguments:
IN_SOURCE Input file name, in nifti format.
IN_TARGET Input file name, in nifti format.
OUT_DISTANCE_MAP Input file name, in nifti format.
options:
-h, --help show this help message and exit
--symmetric_distance Compute the distance from mask 1 to mask 2 and the distance from mask 2 to mask 1 and sum them up.
-v [{DEBUG,INFO,WARNING}]
Produces verbose output depending on the provided level.
Default level is warning, default when using -v is info.
-f Force overwriting of the output files.
Scilpy version: 2.0.2