morphogen.analysis.basic

Phase fractions.

morphogen.analysis.basic.as_array(image) → ndarray[source]

The array of an image: the data of a VoxelImage, or any array-like as a NumPy array.

morphogen.analysis.basic.indicator(image, phase: int = 1) → ndarray[source]

Indicator of phase (boolean), or the partial-volume field of a float image.

morphogen.analysis.basic.volume_fraction(image, phase: int = 1) → float[source]

Volume fraction of phase (mean of the partial volumes for float images).

morphogen.analysis.basic.phase_fractions(image) → dict[int, float][source]

Volume fraction of every phase index present in an integer image.