Skip to contents

This function creates an overlay by drawing boxes around centroids of cells in a dataframe, at a specified time point, as well as cells in adjacent time points.

Usage

make_overlay(cell_df, dims, t)

Arguments

cell_df

A dataframe containing the cell data, with columns for x, y, z, t, and index

dims

A numeric vector of length 4, representing the dimensions of the image in x, y, z, and t

t

An integer representing the time point of interest

Value

A 3-dimensional binary array representing the overlay