gaussianFilter: Filter image.

Description Usage Arguments Value Examples

Description

This function applies a low and high-pass Gaussian filter. The low-pass filter uses an 11 x 11 matrix with sigma = 6, and the high-pass filter uses a 149 x 149 matrix with sigma = 44. This is translated from code by Joseph Roth and Zach Richardson.

Usage

1
gaussianFilter(inputImage, nonBF)

Arguments

inputImage

image matrix

nonBF

binary matrix of the same dimensions as inputImage, where 1s indicate the non-breechface region.

Value

The image matrix after filtering.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# first run this:
croppedExample <- cropBorders(removedExample, centeredExample$centeredPrimer)
# then
nonBF <- is.na(croppedExample)
processedExample <- gaussianFilter(inpaintedExample, nonBF)

## End(Not run)

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