marching_map

marching_map(path, start)[source]

Use the fast marching method to find distance of each voxel from a starting point

Parameters:
  • path (ndarray) – A boolean image with True values demarcating the path along which the march will occur

  • start (ndarray) – A boolean image with True values indicating where the march should start.

Returns:

distance – An array the same size as path with numerical values in each voxel indicating it’s distance from the start point(s) along the given path.

Return type:

ndarray

Notes

This function assumes scikit-fmm is installed.