resampling is better for a homogeneous result
Changes the diameter in tree intree in all locations smaller
than path length x=l/2 [in µm] away from the root.
Diameters become a sort of circular (cosine) soma shape
of maximal diameter mD:
If the original diameter at that location in the tree is larger,
it remains unchanged!
Example 1:
change the maximum diameter (mD);
by default l is just 1.5x mD
>> rtree = resample_tree (sample2_tree, 1);
>> soma_tree (rtree, mD)
Example 2:
change the maximum path length value (l)
>> soma_tree (rtree, 20, l)
This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License