Next: Final Source Code
Up: Transforms
Previous: Using General Transforms
General transforms are stored in files in an ascii format devised at
the McConnell Brain Imaging Centre, and usually have a filename
extension of .xfm. The input and output functions are:
public Status output_transform(
FILE *file,
char comments[],
General_transform *transform )
public Status output_transform_file(
char filename[],
char comments[],
General_transform *transform )
-
- These two functions write the general transform to a file, in the
appropriate format. The comments line is an arbitrary string which is
stored in the file for documentation purposes. Newline characters in the
comments correctly result in a multi-line comment with a comment
character inserted at the beginning of each line. The first form of the
function assumes the file is already open
and will later be closed. The second form opens the file, with a
default extension of .xfm, writes the transform, then closes
the file. Both functions return ERROR or OK.
public Status input_transform(
FILE *file,
General_transform *transform )
public Status input_transform_file(
char filename[],
General_transform *transform )
-
- Inputs a general transform from a file. The first form assumes
the file has already been opened for input, and will later be closed.
The second form opens the file for input, with a default extension of
.xfm, reads the transform, then closes the file. Both functions
return ERROR or OK.
Next: Final Source Code
Up: Transforms
Previous: Using General Transforms