Performs bilinear interpolation on the maximum pressure picture between active sensor positions to produce a smoother image. The underlying trial data is not modified.
Arguments
- trial
A pr_trial object.
- factor
Integer. Interpolation factor in each dimension. Default
2.
Value
A list with pressure_interp (interpolated matrix),
x_grid, y_grid and coordinate_unit = "grid_index". Interpolated
positions are grid indices; no physical sensor pitch is inferred.
Examples
out <- pr_interpolate(pr_example_trial("insole"), factor = 2)
dim(out$pressure_interp)
#> [1] 35 15