Docs: curve module

Contents:

euchar.curve.filtration(simplices, parametrization, bins)

Compute the Euler characteristic curve of a filtration.

simplices

np.ndarray of shape (N, 3) or (N, 4). Each row is a simplex. For example [2 4 -1] is the edge (2,4) and [2 4 9] the triangle (2,4,9).

parametrization

np.ndarray of floats

bins

np.ndarray of sorted floats, used to bin the parametrization values of simplices

euler_char_curve

np.ndarray of integers

euchar.curve.image_2D(image, vector_of_euler_changes_2D=None, max_intensity=255)

Euler characteristic curve of 2D image.

This uses the vector of all possible Euler characteristic changes produced by a pixel insertion in 2D images. This is recomputed every time this function is called if it is not passes as a parameter.

image

np.ndarray of integers

vector_of_euler_changes_2D

list of integers, precomputed Euler characteristic changes produced by a single pixel insertion

max_intensity

maximum value of elements in image

euler_char_curve

np.array of integers

euchar.curve.image_3D(image, vector_of_euler_changes_3D=None, max_intensity=255)

Euler characteristic curve of 3D image.

This uses the vector of all possible Euler characteristic changes produced by a voxel insertion in 3D images. This is must be passed as a parameter.

image

np.ndarray of integers

vector_of_euler_changes_3D

list of integers, precomputed Euler characteristic changes produced by a single voxel insertion

max_intensity

maximum value of elements in image

euler_char_curve

np.ndarray of integers