Class for reading and writing affine transformations from and to ITK's file format. More...
#include <cmtkAffineXformITKIO.h>
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. |
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.
This class.
Definition at line 52 of file cmtkAffineXformITKIO.h.
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] |
Write transformation to ITK file.
Definition at line 39 of file cmtkAffineXformITKIO.cxx.
Referenced by cmtk::ImagePairAffineRegistrationCommandLine::OutputResult(), and cmtk::AffineRegistrationCommandLine::OutputResult().
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.
stream | An open stream to which the ITK file header has already been written. |
affineXform | Transformation to write next. |
idx | Index 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.