Skip to contents

Create an annotation project

Usage

sg_roi_project(image, layers = list(), ..., call = rlang::caller_env())

Arguments

image

An sg_roi_frame the annotations refer to.

layers

An sg_roi_layer, a list of them, or an empty list (default).

...

Additional named project metadata (e.g. name, description).

call

The calling environment, for error reporting.

Value

An sg_roi_project bundling the image, layers, metadata, and provenance (creation time, segmantR version, R version, author, and an edit log).

Examples

sg_roi_project(sg_roi_frame(c(100, 100)), sg_roi_layer("tissue"))
#> <sg_roi_project> (unnamed)
#> image: ""
#> layers: 1  |  ROIs: 0
#>   tissue: 0 ROIs, labels