marching_map

marching_map(path, start)[source]

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

Parameters
  • 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.

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

ND-image

Notes

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.