preProcess_crop {cmcR} | R Documentation |
Remove observations from the exterior of interior of a breech face scan
Description
Remove observations from the exterior of interior of a breech face scan
Usage
preProcess_crop(x3p, region = "exterior", offset = 0, ...)
Arguments
x3p |
an x3p object containing the surface matrix of a cartridge case scan |
region |
dictates whether the observations on the "exterior" or "interior" of the scan are removed |
offset |
an integer (positive or negative) value to add to the estimated radius of the associated region |
... |
internal usage |
Value
An x3p object containing the surface matrix of a breech face impression scan where the observations on the exterior/interior of the breech face scan surface.
Examples
#Process fadul1.1 "from scratch" (takes > 5 seconds to run)
## Not run:
nbtrd_link <- "https://tsapps.nist.gov/NRBTD/Studies/CartridgeMeasurement/"
fadul1.1_link <- "DownloadMeasurement/2d9cc51f-6f66-40a0-973a-a9292dbee36d"
fadul1.1 <- x3ptools::read_x3p(paste0(nbtrd_link,fadul1.1_link))
fadul1.1_extCropped <- preProcess_crop(x3p = fadul1.1,
radiusOffset = -30,
region = "exterior")
fadul1.1_extIntCropped <- preProcess_crop(x3p = fadul1.1_extCropped,
radiusOffset = 200,
region = "interior")
x3pListPlot(list("Original" = fadul1.1,
"Exterior Cropped" = fadul1.1_extCropped,
"Exterior & Interior Cropped" = fadul1.1_extIntCropped ))
## End(Not run)
[Package cmcR version 0.1.11 Index]