Simplify a registration list
simplify_reglist(reg, as.cmtk = NULL)
A registration list (
Whether to convert to a vector of CMTK format registrations
inverts any affine matrices with attribute
collapses multiple affine matrices into a single affine
optionally converts all registrations to CMTK on disk registrations when possible.
Note that if any of the registrations are in CMTK format, the default
behaviour is to try to convert all of the other registrations into CMTK
format to enable them to be passed to CMTK in a single command. If
as.cmtk=TRUE then there will be an error if this is not possible.