quantCutoff: Find a quantile-based cutoff to use for images or movies

Description Usage Arguments Value Examples

View source: R/quantCutoff.R

Description

Here, a set of control frames and a quantile is provided, which together generate a cutoff used for downstream analyses.

Usage

1
quantCutoff(ctrlImageList, quant = 0.99)

Arguments

ctrlImageList

Either a named list, as with the example file, or a vector of RGB png file names, e.g. generated with list.files(). The second option is preferred, as this is a more reasonable method from a memory perspective.

quant

The quantile of pixel intensities in all the images in ctrlImageList from which the cutoff value will be derived.

Value

The median value for the quantile specified in quant for all the images in the ctrlImageList.

Examples

1
2
3
4
5
6
#Load example data.
data(testImages)

#Run the function with the output in the current directory
quantCutoff(testImages[1], 0.99)
#Expected result: 0.1098039

jtheorell/pixSum documentation built on April 2, 2020, 5:03 a.m.