#include <elxMainBase.h>
Common (abstract) base class of ElastixMain and TransformixMain.
Definition at line 44 of file elxMainBase.h.
Static Public Member Functions | |
static const ComponentDatabase & | GetComponentDatabase () |
Protected Member Functions | |
virtual ObjectPointer | CreateComponent (const ComponentDescriptionType &name) |
virtual ObjectContainerPointer | CreateComponents (const ComponentDescriptionType &key, const ComponentDescriptionType &defaultComponentName, int &errorcode, bool mandatoryComponent=true) |
virtual int | InitDBIndex ()=0 |
MainBase () | |
~MainBase () override=0 | |
Protected Attributes | |
DBIndexType | m_DBIndex { 0 } |
ObjectPointer | m_Elastix { nullptr } |
ImageDimensionType | m_FixedImageDimension { 0 } |
PixelTypeDescriptionType | m_FixedImagePixelType {} |
DataObjectContainerPointer | m_MovingImageContainer { nullptr } |
ImageDimensionType | m_MovingImageDimension { 0 } |
PixelTypeDescriptionType | m_MovingImagePixelType {} |
DataObjectContainerPointer | m_ResultDeformationFieldContainer { nullptr } |
DataObjectContainerPointer | m_ResultImageContainer { nullptr } |
std::vector< Configuration::ConstPointer > | m_TransformConfigurations {} |
Private Attributes | |
Configuration::Pointer | m_Configuration { Configuration::New() } |
elastix components.
Definition at line 65 of file elxMainBase.h.
Typedefs for the database that holds pointers to New() functions. Those functions are used to instantiate components, such as the metric etc.
Definition at line 75 of file elxMainBase.h.
Definition at line 77 of file elxMainBase.h.
using elastix::MainBase::ConstPointer = itk::SmartPointer<const Self> |
Definition at line 53 of file elxMainBase.h.
Definition at line 69 of file elxMainBase.h.
Definition at line 67 of file elxMainBase.h.
using elastix::MainBase::DataObjectPointer = itk::DataObject::Pointer |
Definition at line 62 of file elxMainBase.h.
Definition at line 80 of file elxMainBase.h.
Definition at line 70 of file elxMainBase.h.
Definition at line 79 of file elxMainBase.h.
Definition at line 68 of file elxMainBase.h.
Definition at line 66 of file elxMainBase.h.
using elastix::MainBase::ObjectPointer = itk::Object::Pointer |
Typedef's. ITK base objects.
Definition at line 61 of file elxMainBase.h.
Typedef that is used in the elastix dll version.
Definition at line 83 of file elxMainBase.h.
Definition at line 78 of file elxMainBase.h.
using elastix::MainBase::Pointer = itk::SmartPointer<Self> |
Definition at line 52 of file elxMainBase.h.
Definition at line 76 of file elxMainBase.h.
using elastix::MainBase::Self = MainBase |
Standard itk.
Definition at line 50 of file elxMainBase.h.
using elastix::MainBase::Superclass = itk::Object |
Definition at line 51 of file elxMainBase.h.
|
protected |
|
overrideprotectedpure virtual |
|
protectedvirtual |
Create a component. Make sure InitDBIndex has been called before. The input is a string, e.g. "MattesMutualInformation".
|
protectedvirtual |
Create components. Reads from the configuration object (using the provided key) the names of the components to create and store their instantiations in the provided ObjectContainer. The errorcode remains what it was if no error occurred. Otherwise it's set to 1. The 'key' is the entry inspected in the parameter file A component named 'defaultComponentName' is used when the key is not found in the parameter file. If "" is used, no default is assumed, and an error is given when the component was not specified. If the flag mandatoryComponent is set to false, no error is given, because the component may not be needed anyway.
NB: this function should never be called with: ( !mandatoryComponent && defaultComponentName != "" ) == true
|
virtual |
Run-time type information (and related methods).
Reimplemented in elastix::ElastixMain, and elastix::TransformixMain.
|
static |
Function to get the ComponentDatabase.
|
virtual |
Returns the Index that is used in elx::ComponentDatabase.
ElastixBase & elastix::MainBase::GetElastixBase | ( | ) | const |
Convenience function that returns the elastix component as a pointer to an ElastixBase. Use only after having called run()!
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedpure virtual |
InitDBIndex sets m_DBIndex by asking the ImageTypes from the Configuration object and obtaining the corresponding DB index from the ComponentDatabase.
Implemented in elastix::ElastixMain, and elastix::TransformixMain.
elastix::MainBase::ITK_DISALLOW_COPY_AND_MOVE | ( | MainBase | ) |
elastix::MainBase::itkGetModifiableObjectMacro | ( | Configuration | , |
Configuration | ) |
elastix::MainBase::itkGetModifiableObjectMacro | ( | Elastix | , |
itk::Object | ) |
Functions to get pointers to the elastix components. The components are returned as Object::Pointer. Before calling this functions, call run().
elastix::MainBase::itkGetModifiableObjectMacro | ( | MovingImageContainer | , |
DataObjectContainerType | ) |
elastix::MainBase::itkGetModifiableObjectMacro | ( | ResultDeformationFieldContainer | , |
DataObjectContainerType | ) |
elastix::MainBase::itkGetModifiableObjectMacro | ( | ResultImageContainer | , |
DataObjectContainerType | ) |
|
pure virtual |
Start the registration run() without command line parameters; it assumes that EnterCommandLineParameters has been invoked already, or that m_Configuration is initialized in a different way.
Implemented in elastix::ElastixMain, and elastix::TransformixMain.
|
virtual |
Start the registration this version of 'run' first calls this->EnterCommandLineParameters(argc,argv) and then calls run().
Reimplemented in elastix::ElastixMain, and elastix::TransformixMain.
|
virtual |
Reimplemented in elastix::ElastixMain, and elastix::TransformixMain.
|
virtual |
Set/Get the configuration object.
|
virtual |
|
virtual |
Set/Get functions for the description of the image type.
|
virtual |
Set maximum number of threads, which is read from the command line arguments. Syntax: -threads <int>
|
virtual |
Set/Get functions for the moving images (if these are not used, elastix tries to read them from disk, according to the command line parameters).
|
virtual |
|
virtual |
|
virtual |
Set process priority, which is read from the command line arguments. Syntax: -priority <high, belownormal>
|
virtual |
|
virtual |
Set/Get functions for the result images (if these are not used, elastix tries to read them from disk, according to the command line parameters).
|
private |
The configuration object, containing the parameters and command-line arguments.
Definition at line 228 of file elxMainBase.h.
|
protected |
Definition at line 185 of file elxMainBase.h.
|
protected |
A pointer to elastix as an itk::object. In run() this pointer will be assigned to an ElastixTemplate<>.
Definition at line 174 of file elxMainBase.h.
|
protected |
Definition at line 181 of file elxMainBase.h.
|
protected |
Description of the ImageTypes.
Definition at line 180 of file elxMainBase.h.
|
protected |
The images and masks.
Definition at line 188 of file elxMainBase.h.
|
protected |
Definition at line 183 of file elxMainBase.h.
|
protected |
Definition at line 182 of file elxMainBase.h.
|
protected |
Definition at line 190 of file elxMainBase.h.
|
protected |
Definition at line 189 of file elxMainBase.h.
|
protected |
A vector of configuration objects, needed when transformix is used as library.
Definition at line 177 of file elxMainBase.h.
Generated on 2024-07-17 for elastix by 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) |