centerBFprimer: Center image

Description Usage Arguments Value Examples

Description

Given a 1919 x 1919 image matrix, and its binary primer image (in EBImage format), computes the center of the image as the center of the primer region, and returns a 1769 x 1769 image matrix where the center of the primer is located at (884, 884).

Usage

1
centerBFprimer(inputImage, primer)

Arguments

inputImage

1919 x 1919 matrix

primer

binary image in EBImage format, as returned by findPrimer

Value

A list with two items: 1) centeredBF: A 1769 x 1769 matrix, with pixel values ranging from 0-255. Areas that are not part of the breechface impression are set to NA. 2) centeredPrimer: A 1769 x 1769 binary matrix denoting the primer region, after centering. This is to be used in a later step.

Examples

1
2
3
4
## Not run: 
centeredExample <- centerBFprimer(FPexample, primerExample)

## End(Not run)

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