Check that layer names are unique, ROI identifiers are unique across the project, and all geometries are valid.
Usage
sg_roi_validate(project, call = rlang::caller_env())Arguments
- project
An sg_roi_project.
- call
The calling environment, for error reporting.
Examples
lyr <- sg_roi_layer_add(sg_roi_layer("tissue"),
sg_roi_rect(2, 2, 8, 8, label = "tissue"))
proj <- sg_roi_project(sg_roi_frame(c(20, 20)), lyr)
sg_roi_validate(proj)