Class for updating the image/transformation database with a newly computed registration. More...
#include <cmtkRegistrationDatabaseUpdater.h>
Public Member Functions | |
RegistrationDatabaseUpdater () | |
Constructor. | |
void | SetDatabasePath (const std::string &path) |
Set database path. | |
void | SetInputXformPath (const std::string &path) |
Set input transformation. | |
void | SetOutputXform (const std::string &path, const bool invertible) |
Set output transformation. | |
void | UpdateDB () const |
Update the database. | |
Private Attributes | |
std::string | m_DatabasePath |
Path to the database. | |
std::string | m_InputXformPath |
The input transformation. | |
std::string | m_OutputXformPath |
The output transformation. | |
bool | m_OutputXformInvertible |
Flag for invertible (i.e., affine) output transformation. |
Class for updating the image/transformation database with a newly computed registration.
Definition at line 48 of file cmtkRegistrationDatabaseUpdater.h.
cmtk::RegistrationDatabaseUpdater::RegistrationDatabaseUpdater | ( | ) | [inline] |
Constructor.
Definition at line 52 of file cmtkRegistrationDatabaseUpdater.h.
void cmtk::RegistrationDatabaseUpdater::SetDatabasePath | ( | const std::string & | path ) | [inline] |
Set database path.
Definition at line 55 of file cmtkRegistrationDatabaseUpdater.h.
void cmtk::RegistrationDatabaseUpdater::SetInputXformPath | ( | const std::string & | path ) | [inline] |
Set input transformation.
Definition at line 61 of file cmtkRegistrationDatabaseUpdater.h.
void cmtk::RegistrationDatabaseUpdater::SetOutputXform | ( | const std::string & | path, |
const bool | invertible | ||
) | [inline] |
Set output transformation.
path | Path to the output transformation. |
invertible | Flag whether the output transformation is invertible (i.e., affine). |
Definition at line 67 of file cmtkRegistrationDatabaseUpdater.h.
void cmtk::RegistrationDatabaseUpdater::UpdateDB | ( | ) | const |
Update the database.
Definition at line 37 of file cmtkRegistrationDatabaseUpdater.cxx.
References cmtk::ImageXformDB::AddRefinedXform(), m_DatabasePath, cmtk::StdErr, and cmtk::Exception::what().
std::string cmtk::RegistrationDatabaseUpdater::m_DatabasePath [private] |
Path to the database.
Definition at line 79 of file cmtkRegistrationDatabaseUpdater.h.
Referenced by UpdateDB().
std::string cmtk::RegistrationDatabaseUpdater::m_InputXformPath [private] |
The input transformation.
Definition at line 82 of file cmtkRegistrationDatabaseUpdater.h.
bool cmtk::RegistrationDatabaseUpdater::m_OutputXformInvertible [private] |
Flag for invertible (i.e., affine) output transformation.
Definition at line 88 of file cmtkRegistrationDatabaseUpdater.h.
std::string cmtk::RegistrationDatabaseUpdater::m_OutputXformPath [private] |
The output transformation.
Definition at line 85 of file cmtkRegistrationDatabaseUpdater.h.