Learn R Programming

RNiftyReg (version 2.8.4)

saveTransform: Save and load transform objects

Description

These objects save a full transformation object, including source and target image metadata, to a self-contained RDS file, or load it back from such a file.

Usage

saveTransform(transform, fileName = NULL)

loadTransform(x)

Value

saveTransform returns a serialised transform object, if no filename is given; otherwise it is called for its side-effect of writing to file. loadTransform returns a deserialised transform object.

Arguments

transform

A transform, possibly obtained from forward or reverse.

fileName

The file name to save to. If NULL, the serialised object is returned directly instead.

x

A file name to read from, or a serialised transform object.

Author

Jon Clayden <code@clayden.org>

See Also

writeAffine, readAffine