R/cmtkreg.R
cmtkreg
creates an object of class cmtkreg
that
describes one (or more) CMTK
registrations. This is simply a character vector that also has class
cmtkreg.
as.cmtkreg
converts objects to class cmtkreg
,
minimally just by adding an approriate class attribute.
is.cmtkreg
checks if an object is a cmtk registration
either by checking class (default), or inspecting file.
cmtkreg(x, returnDir = TRUE) as.cmtkreg(x, ...) # S3 method for matrix as.cmtkreg(x, ...) # S3 method for reglist as.cmtkreg(x, ...) # S3 method for default as.cmtkreg(x, ...) is.cmtkreg(x, filecheck = c("none", "exists", "magic"))
x | Path to a cmtk registration (either plain character vector or cmtkreg object) |
---|---|
returnDir | Whether to return the registration directory (default) or the actual file containing the registration |
... | Additional arguments passed to methods. Currently ignored. |
filecheck | Whether to check object class only (default: 'none') or find amd check if registration file exists or check magic value in first line of file. |