allPreprocess: Perform all pre-processing steps

Description Usage Arguments Value Examples

Description

Images must be of the standard format as provided in the NIST Ballistics and Research Toolmark Database. The dimensions are 1944 x 2592 pixels, and images are on a 255-grayscale. Here we use ring light images. This function performs all the pre-processing steps, consisting of

Usage

1
allPreprocess(fileName)

Arguments

fileName

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

Value

An image matrix, cropped to the smallest rectangle containing the valid breechface area. Non-breechface pixels are set to 0. After all pre-processing, possible pixel values are -510 to 510.

Examples

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

## End(Not run)

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