View source: R/imaging-ants-io.R
| save_registration | R Documentation |
'ANTs'-compatible filessave_registration writes a register_volume3d result to
disk as 'ANTs'-style files: an 'ITK' affine .mat, the
forward/inverse warp 'NIfTI'(s) when present, and a small
'DCF' manifest (the same key-value format as 'DESCRIPTION')
recording what each file is plus the registration parameters.
load_registration reads any of those back: a .mat returns a
4\times 4 RAS matrix, a warp .nii/.nii.gz returns
the field, and a .dcf manifest reassembles the full object.
save_registration(x, path, ...)
## S3 method for class 'ravetools_register_volume3d'
save_registration(x, path, prefix = "registration", compress = TRUE, ...)
## Default S3 method:
save_registration(x, path, prefix = "registration", ...)
load_registration(file, recover_affine_from_header = FALSE)
x |
a |
path |
output directory, or the manifest ( |
... |
passed to methods |
prefix |
file-name prefix; defaults to |
compress |
logical; write warp fields as |
file |
a |
recover_affine_from_header |
logical; only used as a last resort when
loading. If |
save_registration returns the manifest path invisibly.
load_registration returns a 4\times 4 matrix, a field array
(with a "vox2ras" attribute), or a ravetools_register_volume3d
object, depending on the file type.
register_volume3d, write_ants_transform,
write_ants_warp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.