outlierRejection: Remove outliers and fill them in with NA

Description Usage Arguments Value Examples

Description

For each pixel, we consider a local patch consisting all pixels in a 21 x 21 pixel matrix, centered at the pixel being considered. Outliers are defined as pixels that have values larger than 3 standard deviations from the mean of the pixel values in its local patch. This is translated from code by Joseph Roth and Zach Richardson.

Usage

1

Arguments

input

image matrix

Value

A matrix with non-breechface areas set to 0, and outliers set to NA.

Examples

1
2
3
4
5
6
7
## Not run: 
# first run this:
croppedExample <- cropBorders(removedExample, centeredExample$centeredPrimer)
# then
outlierNAexample <- outlierRejection(croppedExample)

## End(Not run)

xhtai/cartridges documentation built on June 1, 2019, 2:58 p.m.