Skip to contents

Create a warp-based alignment family from on-disk paths

Usage

make_warp_family(
  name,
  from,
  to,
  warp_paths,
  loader,
  uncertainty = UncertaintyRule("independent")
)

Arguments

name

Family name

from

Source space

to

Target space

warp_paths

Named character vector of file paths per subject

loader

Function(path) -> operator (e.g., matrix) for a single subject

uncertainty

Uncertainty rule

Value

A MapFamily (type = deform3d)

Examples

loader <- function(path) as.matrix(utils::read.csv(path, header = FALSE))
# paths <- c(s1 = "warp_s1.csv", s2 = "warp_s2.csv")
# fam <- make_warp_family("warp", from, to, paths, loader)