cropBorders: Crop borders of an image

Description Usage Arguments Value Examples

Description

Given an image with NA values in the borders, crops out these borders to leave the smallest rectangular region containing valid data.

Usage

1
cropBorders(image, primer)

Arguments

image

1769 x 1769 matrix

primer

A 1769 x 1769 binary matrix denoting the primer region

Value

A matrix, smaller than 1769 x 1769, containing only the valid primer region. Not necessarily square.

Examples

1
2
3
4
## Not run: 
croppedExample <- cropBorders(removedExample, centeredExample$centeredPrimer)

## End(Not run)

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