API Reference#

This is CRISPy’s class and function reference. In addition to the table below, you can also search with the search bar located on the top right corner of the webpage.

Object

Description

clean_grid

Process and grid CRISPy coordinates onto a reference image, labeling and cleaning skeleton structures.

clean_grid_ppv

Process and grid CRISPy coordinates in PPV space onto a reference image, labeling and cleaning skeleton structures.

get_2d_length

Calculate the sky-projected length of a 3D skeleton.

grid_skel

Map raw CRISPy results onto a reference image grid and save the gridded results.

grid_skeleton

Map CRISPy skeleton coordinates onto a reference image grid.

label_ridge

Label unconnected ridges using DBSCAN clustering.

make_skeleton

Map CRISPy skeleton coordinates onto a reference grid and clean the skeleton.

read_table

Read filament skeleton data from a file.

uniq_per_pix

Reduce a list of ridge coordinates to one unique point per pixel.

write_skel

Write a gridded image to a FITS file.

image2data

Convert an image into a format compatible with the SCMS algorithm.

read_output

Read SCMS output files and retrieve walker coordinates.

run

Identify density ridges in a gridded image using the SCMS algorithm.

threshold_local

Apply a local thresholding method to an image for binarization.

write_output

Write SCMS output coordinates to a file.

Skeleton

Represents a skeletonized structure with tools for pruning, analyzing, and processing filament data.

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.

get_base_block

Generate a base block array for 2D or 3D skeleton structures.

get_footprints

Generate a footprint array representing connectivity in 2D or 3D space.

chunk_data

Divide data into chunks for multiprocessing.

euclidean_dist

Compute the Euclidean distances and differences between data points and walkers.

find_ridge

Identify density ridges in data using the Subspace Constrained Mean Shift (SCMS) algorithm.

shift_particles

Shift walkers toward density ridges using the Subspace Constrained Mean Shift (SCMS) algorithm.

shift_wakers_multiproc

Shift walkers towards density ridges using the SCMS algorithm with multiprocessing.

shift_walkers

Shift walkers towards density ridges using the Subspace Constrained Mean Shift (SCMS) algorithm.

vectorized_gaussian

Compute Gaussian kernel values for data points relative to walker positions.

wgauss_n_filtered_points

Compute weighted Gaussian values for data points relative to walker positions,

wgauss_n_filtered_points_multiproc

Compute weighted Gaussian values for data points relative to walker positions

render_point_cloud

Render a 3D scatter plot from a 3D data cube with efficient visualization.

render_volume

Render a 3D volume using layers of isosurfaces.

ridge_trace_3D

Create a 3D scatter trace for visualizing ridge points.

skel_volume

Render a 3D skeleton volume using isosurface visualization.