Create a distance matrix from cell seg data.

distance_matrix(csd)

Arguments

csd

A data frame with Cell X Position and Cell Y Position columns, such as the result of read_cell_seg_data.

Value

A square matrix with both dimensions equal to nrow(d). The value at [i, j] will be the distance from the cell at row i of csd to the cell at row j. The returned matrix is symmetric.

See also