One of the main problems with 3d scans are the feathering that occurs within the middle of the scan. Here, we quantify this feathering by taking samples at specific number of y values in the surface matrix that are in a certain percentage of the middle of the 3d scan. Then with these rows of the surface matrix we measure the proportion of missing values in each of those rows. We then take the specified percentile proportion of missing values of those rows, which will give us a good measure to quantify the amount of feathering in a 3d scan.

assess_percentile_na_proportion(
  x3p,
  chopoff = 1/7,
  numlines = 200,
  percentile = 0.8
)

Arguments

x3p

scan in x3p format

chopoff

numeric value between 0 and .5 - The percentage of values to chop off of both sides of the scan

numlines

Number of horizontal lines across the scan to find the median proportion of na values from

percentile

Specific percentile to choose from the number of horizontal lines

Value

median proportion of missing values

Examples

data(fau277_bb_l2)
assess_percentile_na_proportion(fau277_bb_l2)
#> [1] 0.7894936