PLoS supp. material by Hermann Cuntz
Calculates a density matrix of the nodes in the tree intree.
Uses Matlab function “isosurface” to display the resulting gradient
and increases opacity with density.
sr determines the bin size for the matrix.
ipart, a set of indices into intree,
allows to use only a subset of nodes, for example only the topological points.
Outputs are the density matrix M and dX,
dY and Z are the
X-, Y- and Z-dimension labels of M.
HP is the handle to the graphical object.
Set options to 'none' to avoid graphical output.
Density of topological points (only termination and branch points)
>> iBT = B_tree (sample_tree) | T_tree (sample_tree)
>> gdens_tree (sample_tree, 20, iBT) ← 20 µm bins
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License