roi_check: Show pixel intensities

Description Usage Arguments Details Examples

View source: R/methods.R

Description

Show the pixel intensities of certain image channels

Usage

1
roi_check(img, ind = c(1, 2))

Arguments

img

A cimg object or a list of multiple images such as the one returned from roi_select

ind

A numeric object of length two. For the channel indexes. or a list of similar vectors for each of img items.

Details

Calling this function returns two plots. The first is a scatter plot of the pixel intensities from two channels. The second is the density distribution of the intensities from the two channels.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# load images
fl <- system.file('extdata', 'Image0001_.jpg', package = 'colocr')
img <- image_load(fl)

# choose ROI and show the pixel intensities
oldpar <- par()
par(mfrow = c(1, 2))

roi_select(img, threshold = 90) %>%
  roi_check()

par(oldpar)

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