findFP: Find and remove firing pin region

Description Usage Arguments Value Examples

Description

After finding the primer region using findPrimer(), we now remove the firing pin impression, returning a 1919 x 1919 matrix, where areas that are not part of the breechface impression are set to 0. Pixel values range from 0 to 255. For more information on the steps involved in finding the firing pin region, refer to the GitHub page.

Usage

1
findFP(fileName, primer)

Arguments

fileName

location of image file. This function has been tested on png files.

primer

binary image in EBImage format, as returned by findPrimer

Value

A 1919 x 1919 matrix, in the original orientation, i.e. a cropped version of the original 1944 x 2592 image.

Examples

1
2
3
4
## Not run: 
FPexample <- findFP(system.file("extdata", "NBIDE R BF 118.png", package = "cartridges"), primer = primerExample)

## End(Not run)

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