marching_map(path, start)[source]

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

  • path (ND-image) – A boolean image with True values demarcating the path along which the march will occur

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


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



This function assumes scikit-fmm is installed on your machine. This package requires downloading and installing the binaries specific for your platform. Mac and Linux builds are available fron conda, while windows builds can be downloaded from Christoph Gohlke website.