morphogen.analysis.surface¶
Specific surface area by the Cauchy-Crofton formula.
The number of boundary crossings per unit length of test lines, P_L, is counted
along discrete directions of the voxel lattice; for any structure
S_V = 2 <P_L>, the mean being taken over isotropically distributed directions. It
is approximated by a weighted sum over 3 (axes) or 13 (axes, face and body diagonals)
directions, each weighted by the solid angle of its Voronoi cell on the unit sphere.
- morphogen.analysis.surface.crofton_weights(directions, spacing=(1.0, 1.0, 1.0)) ndarray[source]¶
Solid-angle weights (summing to 1) of the physical directions
d * spacing.
- morphogen.analysis.surface.transitions(data: ndarray, d, periodic: bool) tuple[int, int][source]¶
Number of pairs (x, x + d) with different values, and number of pairs.
- morphogen.analysis.surface.interface_density(data: ndarray, spacing, *, periodic: bool, directions=13) float[source]¶
Area per unit volume of the boundaries between different values of
data.