Public Types | Static Public Member Functions

cmtk::AffineXformITKIO Class Reference

Class for reading and writing affine transformations from and to ITK's file format. More...

#include <cmtkAffineXformITKIO.h>

List of all members.

Public Types

typedef AffineXformITKIO Self
 This class.

Static Public Member Functions

static void Write (const std::string &filename, const AffineXform &affineXform)
 Write transformation to ITK file.
static void Write (std::ofstream &stream, const AffineXform &affineXform, const size_t idx=0)
 Write transformation to open stream, e.g., for writing more than one transformation to the same file.
static AffineXform::SmartPtr Read (const std::string &filename)
 Read transformation from ITK file.

Detailed Description

Class for reading and writing affine transformations from and to ITK's file format.

This should also be understood by Slicer3 for transformation exchange with CMTK tools run as plugins.

Definition at line 48 of file cmtkAffineXformITKIO.h.


Member Typedef Documentation

This class.

Definition at line 52 of file cmtkAffineXformITKIO.h.


Member Function Documentation

cmtk::AffineXform::SmartPtr cmtk::AffineXformITKIO::Read ( const std::string &  filename ) [static]

Read transformation from ITK file.

Definition at line 90 of file cmtkAffineXformITKIO.cxx.

References cmtk::META_SPACE, and NULL.

void cmtk::AffineXformITKIO::Write ( const std::string &  filename,
const AffineXform affineXform 
) [static]
void cmtk::AffineXformITKIO::Write ( std::ofstream &  stream,
const AffineXform affineXform,
const size_t  idx = 0 
) [static]

Write transformation to open stream, e.g., for writing more than one transformation to the same file.

Parameters:
streamAn open stream to which the ITK file header has already been written.
affineXformTransformation to write next.
idxIndex of transformation, i.e., its relative position in file when it is written.

Definition at line 53 of file cmtkAffineXformITKIO.cxx.

References cmtk::AffineXform::Matrix.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines