dot-intensity_get: Get pixel intensities

Description Usage Arguments Value Examples

Description

Get the pixel intensities of certain image channels

Usage

1
.intensity_get(img, ind = c(1, 2))

Arguments

img

An object of class cimg

ind

A numeric of length two for channel indexes

Value

A list of three items. The first two items are the values of the pixel intensities of the channels indicated by ind. The third is the labels of the individual regions of interest.

Examples

1
2
3
4
5
6
7
# load image
fl <- system.file('extdata', 'Image0001_.jpg', package = 'colocr')
img <- image_load(fl)

# choose parameters
int <- roi_select(img, threshold = 90) %>%
  .intensity_get()

colocr documentation built on July 1, 2020, 10:32 p.m.