Genus

class turbustat.statistics.Genus(img, lowdens_thresh=0, highdens_thresh=100, numpts=100, smoothing_radii=None, save_name=None)[source] [edit on github]

Bases: object

Genus Statistics based off of Chepurnov et al. (2008).

Parameters:

img - numpy.ndarray

2D image.

lowdens_thresh : float, optional

Lower threshold of the data to use.

highdens_thresh : float, optional

Upper threshold of the data to use.

numpts : int, optional

Number of thresholds to calculate statistic at.

smoothing_radii : list, optional

Kernel radii to smooth data to.

save_name : str, optional

Object or region name. Used when plotting.

Methods Summary

Methods Documentation

make_genus_curve()[source] [edit on github]

Create the genus curve.

make_smooth_arrays()[source] [edit on github]

Smooth data using a Gaussian kernel.

run(verbose=False)[source] [edit on github]

Run the whole statistic.

Parameters:

verbose : bool, optional

Enables plotting.