neurom.morphmathΒΆ
Mathematical and geometrical functions used to compute morphometrics
Functions
angle_3points |
compute the angle in radians between three 3D points |
average_points_dist |
Computes the average distance between a list of points and a given point p0. |
dist_point_line |
compute the orthogonal distance between from the line that goes through |
interpolate_radius |
Calculate the radius that corresponds to a point P that lies at a fraction of the length of a cut cone P1P2 where P1, P2 are the centers of the circles that bound the shape with radii r1 and r2 respectively. |
linear_interpolate |
Returns the point p satisfying: p1 + fraction * (p2 - p1) |
path_distance |
Compute the path distance from given set of points |
path_fraction_point |
Computes the point which corresponds to the fraction of the path length along the piecewise linear curve which is constructed from the set of points. |
pca |
Estimate the principal components of the covariance on the given point cloud |
point_dist |
compute the euclidian distance between two 3D points |
point_dist2 |
compute the square of the euclidian distance between two 3D points |
polygon_diameter |
Compute the maximun euclidian distance between any two points |
principal_direction_extent |
Calculate the extent of a set of 3D points. |
scalar_projection |
compute the scalar projection of v1 upon v2 |
section_length |
Compute the path distance from given set of points |
segment_area |
Compute the surface area of a segment. |
segment_length |
Return the length of a segment. |
segment_length2 |
Return the square of the length of a segment. |
segment_radial_dist |
Return the radial distance of a tree segment to a given point |
segment_radius |
Return the mean radius of a segment |
segment_taper_rate |
Compute the taper rate of a segment |
segment_volume |
Compute the volume of a segment. |
segment_x_coordinate |
Return the mean x coordinate of a segment |
segment_y_coordinate |
Return the mean y coordinate of a segment |
segment_z_coordinate |
Return the mean z coordinate of a segment |
sphere_area |
Compute the area of a sphere with radius r |
taper_rate |
Compute the taper rate between points p0 and p1 |
vector |
compute vector between two 3D points |
vector_projection |
compute the vector projection of v1 upon v2 |