This function applies an Elastix spatial transform to a set of 3D points.
Usage
elastix_xform(points, transform_file, copy_files = c(), return_logs = FALSE)
Arguments
- points
A matrix with 3 columns or a data frame with x, y, z columns representing 3D points.
- transform_file
Path to the Elastix transform file, usually a
.txt
file, usually a.txt
file.- copy_files
Vector of additional file paths to copy to the temporary directory.
- return_logs
Logical, if TRUE, returns the Elastix log instead of transformed points.