Skip to contents

Calculates the average minimum distance of all cells to their nearest cells in the input image.

Usage

average_minimum_distance(sce_object)

Arguments

sce_object

SingleCellExperiment object in the form of the output of format_image_to_sce.

Value

A single number is returned

Examples

average_minimum_distance(SPIAT::simulated_image)
#> [1] 17.01336