roi_test {colocr} | R Documentation |
Test Co-localization
Description
Perform co-localization test statistics.
Usage
roi_test(img, ind = c(1, 2), type = "pcc")
Arguments
img |
A |
ind |
A |
type |
A |
Details
The co-localization stats requested in type
is returned as
a column for each. When different labels are provided, the stats are
calculated for each label individually. When is img
is a list
a list
of such data.frame
s is returned
Value
A data.frame
or a list
of data.frame
s.
Examples
# load images
fl <- system.file('extdata', 'Image0001_.jpg', package = 'colocr')
img <- image_load(fl)
# choose roi and test colocalization
roi_select(img, threshold = 90) %>%
roi_test()
[Package colocr version 0.1.1 Index]