Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <elxElastixMain.h>
A class with all functionality to configure elastix.
The ElastixMain initializes the MyConfiguration class with the parameters and commandline arguments. After this, the class loads and creates all components and sets them in ElastixTemplate.
FixedImageDimension: the dimension of the fixed image.
example: (FixedImageDimension 2)
MovingImageDimension: the dimension of the fixed image.
example: (MovingImageDimension 2)
FixedInternalImagePixelType: the pixel type of the internal fixed image representation. The fixed image is automatically converted to this type.
example: (FixedInternalImagePixelType "float")
Default/recommended: "float"
MovingInternalImagePixelType: the pixel type of the internal moving image representation. The moving image is automatically converted to this type.
example: (MovingInternalImagePixelType "float")
Default/recommended: "float"
FixedImageDimension: the dimension of the fixed image.
example: (FixedImageDimension 2)
MovingImageDimension: the dimension of the fixed image.
example: (MovingImageDimension 2)
FixedInternalImagePixelType: the pixel type of the internal fixed image representation. The fixed image is automatically converted to this type.
example: (FixedInternalImagePixelType "float")
Default/recommended: "float"
MovingInternalImagePixelType: the pixel type of the internal moving image representation. The moving image is automatically converted to this type.
example: (MovingInternalImagePixelType "float")
Default/recommended: "float"
Definition at line 94 of file elxElastixMain.h.
Static Public Member Functions | |
static ComponentDatabase * | GetComponentDatabase (void) |
static Pointer | New () |
static void | SetComponentDatabase (ComponentDatabase *arg) |
static void | UnloadComponents (void) |
Protected Member Functions | |
virtual ObjectPointer | CreateComponent (const ComponentDescriptionType &name) |
virtual ObjectContainerPointer | CreateComponents (const ComponentDescriptionType &key, const ComponentDescriptionType &defaultComponentName, int &errorcode, bool mandatoryComponent=true) |
ElastixMain () | |
void | GetImageInformationFromFile (const std::string &filename, ImageDimensionType &imageDimension) const |
virtual int | InitDBIndex (void) |
virtual int | LoadComponents (void) |
~ElastixMain () override | |
Static Protected Attributes | |
static ComponentDatabasePointer | s_CDB |
static ComponentLoaderPointer | s_ComponentLoader |
Private Member Functions | |
ElastixMain (const Self &) | |
void | operator= (const Self &) |
Definition at line 121 of file elxElastixMain.h.
Definition at line 133 of file elxElastixMain.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 132 of file elxElastixMain.h.
typedef ComponentDatabaseType::ComponentDescriptionType elastix::ElastixMain::ComponentDescriptionType |
Definition at line 135 of file elxElastixMain.h.
Definition at line 142 of file elxElastixMain.h.
Typedef for class that populates a ComponentDatabase.
Definition at line 141 of file elxElastixMain.h.
Definition at line 122 of file elxElastixMain.h.
Definition at line 120 of file elxElastixMain.h.
typedef itk::SmartPointer< const Self > elastix::ElastixMain::ConstPointer |
Definition at line 102 of file elxElastixMain.h.
Definition at line 126 of file elxElastixMain.h.
Definition at line 124 of file elxElastixMain.h.
typedef DataObjectType::Pointer elastix::ElastixMain::DataObjectPointer |
Definition at line 116 of file elxElastixMain.h.
typedef itk::DataObject elastix::ElastixMain::DataObjectType |
Definition at line 115 of file elxElastixMain.h.
Definition at line 138 of file elxElastixMain.h.
elastix components.
Definition at line 119 of file elxElastixMain.h.
Definition at line 127 of file elxElastixMain.h.
Definition at line 137 of file elxElastixMain.h.
Definition at line 125 of file elxElastixMain.h.
Definition at line 123 of file elxElastixMain.h.
typedef ObjectType::Pointer elastix::ElastixMain::ObjectPointer |
Definition at line 114 of file elxElastixMain.h.
typedef itk::Object elastix::ElastixMain::ObjectType |
Typedef's. ITK base objects.
Definition at line 113 of file elxElastixMain.h.
Typedef that is used in the elastix dll version.
Definition at line 145 of file elxElastixMain.h.
typedef ComponentDatabaseType::PixelTypeDescriptionType elastix::ElastixMain::PixelTypeDescriptionType |
Definition at line 136 of file elxElastixMain.h.
typedef itk::SmartPointer< Self > elastix::ElastixMain::Pointer |
Definition at line 101 of file elxElastixMain.h.
typedef ComponentDatabaseType::PtrToCreator elastix::ElastixMain::PtrToCreator |
Definition at line 134 of file elxElastixMain.h.
Standard itk.
Definition at line 99 of file elxElastixMain.h.
typedef itk::Object elastix::ElastixMain::Superclass |
Definition at line 100 of file elxElastixMain.h.
|
protected |
|
overrideprotected |
|
private |
|
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 |
Enter the command line parameters, which were given by the user, if elastix.exe is used to do a registration. The Configuration object will be initialized in this way.
|
virtual |
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented in elastix::TransformixMain.
|
inlinestatic |
Functions to get/set the ComponentDatabase.
Definition at line 275 of file elxElastixMain.h.
|
virtual |
Returns the Index that is used in elx::ComponentDatabase.
|
virtual |
Convenience function that returns the elastix component as a pointer to an ElastixBaseType. Use only after having called run()!
unsigned int elastix::ElastixMain::GetElastixLevel | ( | void | ) |
|
virtual |
|
virtual |
|
protected |
Helper function to obtain information from images on disk.
|
virtual |
|
virtual |
|
virtual |
unsigned int elastix::ElastixMain::GetTotalNumberOfElastixLevels | ( | void | ) |
|
virtual |
GetTransformParametersMap
|
protectedvirtual |
InitDBIndex sets m_DBIndex by asking the ImageTypes from the Configuration object and obtaining the corresponding DB index from the ComponentDatabase.
Reimplemented in elastix::TransformixMain.
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | Configuration | , |
ConfigurationType | |||
) |
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | Elastix | , |
ObjectType | |||
) |
Functions to get pointers to the elastix components. The components are returned as Object::Pointer. Before calling this functions, call run().
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | FinalTransform | , |
ObjectType | |||
) |
Get the final transform (the result of running elastix). You may pass this as an InitialTransform in an other instantiation of ElastixMain. Only valid after calling Run()!
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | FixedImageContainer | , |
DataObjectContainerType | |||
) |
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | FixedMaskContainer | , |
DataObjectContainerType | |||
) |
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | InitialTransform | , |
ObjectType | |||
) |
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | MovingImageContainer | , |
DataObjectContainerType | |||
) |
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | MovingMaskContainer | , |
DataObjectContainerType | |||
) |
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | ResultDeformationFieldContainer | , |
DataObjectContainerType | |||
) |
elastix::ElastixMain::itkGetModifiableObjectMacro | ( | ResultImageContainer | , |
DataObjectContainerType | |||
) |
|
protectedvirtual |
|
static |
Method for creation through the object factory.
|
private |
|
virtual |
Start the registration this version of 'run' first calls this->EnterCommandLineParameters(argc,argv) and then calls run().
Reimplemented in elastix::TransformixMain.
|
virtual |
Reimplemented in elastix::TransformixMain.
|
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.
Reimplemented in elastix::TransformixMain.
|
inlinestatic |
Definition at line 281 of file elxElastixMain.h.
|
virtual |
Set/Get the configuration object.
void elastix::ElastixMain::SetElastixLevel | ( | unsigned int | level | ) |
Get and Set the elastix level.
|
virtual |
Set/Get functions for the fixed and moving images (if these are not used, elastix tries to read them from disk, according to the command line parameters).
|
virtual |
|
virtual |
Set/Get functions for the description of the image type.
|
virtual |
Set/Get functions for the fixed and moving masks (if these are not used, elastix tries to read them from disk, according to the command line parameters).
|
virtual |
Set/Get the initial transform the type is ObjectType, but the pointer should actually point to an itk::Transform type (or inherited from that one).
|
virtual |
Set maximum number of threads, which is read from the command line arguments. Syntax: -threads <int>
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set/Get the original fixed image direction as a flat array (d11 d21 d31 d21 d22 etc )
|
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).
void elastix::ElastixMain::SetTotalNumberOfElastixLevels | ( | unsigned int | levels | ) |
Get and Set the total number of elastix levels.
|
static |
|
protected |
The configuration object, containing the parameters and command-line arguments.
Definition at line 306 of file elxElastixMain.h.
|
protected |
A vector of configuration objects, needed when transformix is used as library.
Definition at line 309 of file elxElastixMain.h.
|
protected |
Definition at line 317 of file elxElastixMain.h.
|
protected |
A pointer to elastix as an itk::object. In run() this pointer will be assigned to an ElastixTemplate<>.
Definition at line 303 of file elxElastixMain.h.
|
protected |
A transform that is the result of registration.
Definition at line 328 of file elxElastixMain.h.
|
protected |
The images and masks.
Definition at line 320 of file elxElastixMain.h.
|
protected |
Definition at line 313 of file elxElastixMain.h.
|
protected |
Description of the ImageTypes.
Definition at line 312 of file elxElastixMain.h.
|
protected |
Definition at line 322 of file elxElastixMain.h.
|
protected |
The initial transform.
Definition at line 331 of file elxElastixMain.h.
|
protected |
Definition at line 321 of file elxElastixMain.h.
|
protected |
Definition at line 315 of file elxElastixMain.h.
|
protected |
Definition at line 314 of file elxElastixMain.h.
|
protected |
Definition at line 323 of file elxElastixMain.h.
|
protected |
Definition at line 337 of file elxElastixMain.h.
|
protected |
Definition at line 325 of file elxElastixMain.h.
|
protected |
Definition at line 324 of file elxElastixMain.h.
|
protected |
Transformation parameters map containing parameters that is the result of registration.
Definition at line 335 of file elxElastixMain.h.
|
staticprotected |
Definition at line 339 of file elxElastixMain.h.
|
staticprotected |
Definition at line 340 of file elxElastixMain.h.
Generated on 1667476801 for elastix by 1.9.4 |