crispy.pruning.pruning#

Utilities for skeleton processing, branch property initialization, and pruning in 2D and 3D structures.

Functions

bodyPoints

Identify body points in a skeletonized structure.

branchedPoints

Identify branch points in a skeletonized structure.

classify_structure

Classify the components of a skeleton into labeled branches, intersections, and endpoints.

endPoints

Identify endpoints in a skeletonized structure.

init_branch_properties

Initialize branch properties for 2D or 3D skeletons.

init_lengths_3D

Compute lengths and intensities for branches in 3D skeletons.

main_length_3D

Compute the main lengths of 3D skeletons and generate longest path arrays.

pre_graph_3D

Convert 3D skeletons into graph representations with weighted edges.

remove_bad_ppv_branches

Remove unphysical branches from a labeled 3D skeleton in PPV space.

segment_len

Calculate the length of a skeleton segment.

walk_through_segment_3D

Traverse a 3D skeleton segment to obtain an ordered list of pixel coordinates.