minkowski_map#

minkowski_map(image, support_size, backend='cpu')[source]#

Compute a map of the 3 (4) Minkowski functionals for a given support size of a 2D (3D) image.

Method adopted from Jiang and Arns (2020)

Return type:

ndarray

Parameters:
  • image – 2D or 3D binary image. Foreground voxels should be labeled 1 and background voxels labeled 0.

  • support_size – Size of the window to compute local Minkowski functionals.

  • backend – Backend for fft computations. Can be ‘cpu’ or ‘cuda’. ‘cpu’ option uses pyFFTW

Returns:

Minkowski maps of size image.shape with local Minkowski functionals

Return type:

numpy.ndarray