Learn R Programming

colocr (version 0.1.1)

.intensity_get: Get pixel intensities

Description

Get the pixel intensities of certain image channels

Usage

.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

Run this code
# NOT RUN {
# load image
fl <- system.file('extdata', 'Image0001_.jpg', package = 'colocr')
img <- image_load(fl)

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

# }

Run the code above in your browser using DataLab