Split a reference scan into a grid of cells

Arguments

x3p

an x3p object containing a breech face scan

numCells

a vector of two numbers representing the number of cells along the row and column dimensions into which the x3p is partitioned

Value

A tibble containing a prod(numCells) number of rows. Each row contains a single cell's index of the form (row #, col #) and an x3p object containing the breech face scan of that cell.

Examples

data(fadul1.1_processed)

cellTibble <- fadul1.1_processed %>%
comparison_cellDivision(numCells = c(8,8))

head(cellTibble)
#> # A tibble: 6 x 2
#>   cellIndex cellHeightValues
#>   <chr>     <named list>    
#> 1 1, 1      <x3p>           
#> 2 1, 2      <x3p>           
#> 3 1, 3      <x3p>           
#> 4 1, 4      <x3p>           
#> 5 1, 5      <x3p>           
#> 6 1, 6      <x3p>