Loading...
Searching...
No Matches
elxElastixMain.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef elxElastixMain_h
#define elxElastixMain_h
#include "elxMainBase.h"
namespace elastix
{
class ElastixMain : public MainBase
{
public:
ITK_DISALLOW_COPY_AND_MOVE(ElastixMain);
using Self = ElastixMain;
using Superclass = MainBase;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(ElastixMain, MainBase);
itkSetObjectMacro(FixedImageContainer, DataObjectContainerType);
itkGetModifiableObjectMacro(FixedImageContainer, DataObjectContainerType);
itkSetObjectMacro(FixedMaskContainer, DataObjectContainerType);
itkSetObjectMacro(MovingMaskContainer, DataObjectContainerType);
itkGetModifiableObjectMacro(FixedMaskContainer, DataObjectContainerType);
itkGetModifiableObjectMacro(MovingMaskContainer, DataObjectContainerType);
itkGetModifiableObjectMacro(FinalTransform, itk::Object);
itkSetObjectMacro(InitialTransform, itk::Object);
itkGetModifiableObjectMacro(InitialTransform, itk::Object);
virtual void
SetOriginalFixedImageDirectionFlat(const FlatDirectionCosinesType & arg);
virtual const FlatDirectionCosinesType &
GetOriginalFixedImageDirectionFlat() const;
void
SetElastixLevel(unsigned int level);
unsigned int
GetElastixLevel() const;
void
SetTotalNumberOfElastixLevels(unsigned int levels);
unsigned int
GetTotalNumberOfElastixLevels() const;
using Superclass::Run;
int
Run() override;
int
RunWithInitialTransformParameterMaps(const ArgumentMapType & argmap,
const ParameterMapType & inputMap,
const std::vector<ParameterMapType> & initialTransformParameterMaps);
virtual ParameterMapType
GetTransformParameterMap() const;
protected:
ElastixMain();
~ElastixMain() override;
DataObjectContainerPointer m_FixedImageContainer{ nullptr };
DataObjectContainerPointer m_FixedMaskContainer{ nullptr };
DataObjectContainerPointer m_MovingMaskContainer{ nullptr };
DataObjectContainerPointer m_ResultImageContainer{ nullptr };
ObjectPointer m_FinalTransform{ nullptr };
ObjectPointer m_InitialTransform{ nullptr };
ParameterMapType m_TransformParameterMap{};
FlatDirectionCosinesType m_OriginalFixedImageDirection{};
int
InitDBIndex() override;
void
GetImageInformationFromFile(const std::string & filename, ImageDimensionType & imageDimension) const;
};
} // end namespace elastix
#endif // end #ifndef elxElastixMain_h
elastix::ElastixMain::SetElastixLevel
void SetElastixLevel(unsigned int level)
elastix::ElastixMain::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxElastixMain.h:77
elastix::ElastixMain::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(InitialTransform, itk::Object)
elastix::ElastixMain::m_MovingMaskContainer
DataObjectContainerPointer m_MovingMaskContainer
Definition elxElastixMain.h:163
elastix::ElastixMain::Pointer
itk::SmartPointer< Self > Pointer
Definition elxElastixMain.h:76
elastix::ElastixMain::~ElastixMain
~ElastixMain() override
elastix::ElastixMain::m_TransformParameterMap
ParameterMapType m_TransformParameterMap
Definition elxElastixMain.h:175
elastix::ElastixMain::RunWithInitialTransformParameterMaps
int RunWithInitialTransformParameterMaps(const ArgumentMapType &argmap, const ParameterMapType &inputMap, const std::vector< ParameterMapType > &initialTransformParameterMaps)
elastix::ElastixMain::GetTotalNumberOfElastixLevels
unsigned int GetTotalNumberOfElastixLevels() const
elastix::ElastixMain::m_FixedImageContainer
DataObjectContainerPointer m_FixedImageContainer
Definition elxElastixMain.h:161
elastix::ElastixMain::m_FixedMaskContainer
DataObjectContainerPointer m_FixedMaskContainer
Definition elxElastixMain.h:162
elastix::ElastixMain::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(MovingMaskContainer, DataObjectContainerType)
elastix::ElastixMain::SetOriginalFixedImageDirectionFlat
virtual void SetOriginalFixedImageDirectionFlat(const FlatDirectionCosinesType &arg)
elastix::ElastixMain::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(ElastixMain)
elastix::ElastixMain::GetTransformParameterMap
virtual ParameterMapType GetTransformParameterMap() const
elastix::ElastixMain::ElastixMain
ElastixMain()
elastix::ElastixMain::InitDBIndex
int InitDBIndex() override
elastix::ElastixMain::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(FixedImageContainer, DataObjectContainerType)
elastix::ElastixMain::m_OriginalFixedImageDirection
FlatDirectionCosinesType m_OriginalFixedImageDirection
Definition elxElastixMain.h:177
elastix::ElastixMain::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(FinalTransform, itk::Object)
elastix::ElastixMain::Run
int Run() override
elastix::ElastixMain::GetImageInformationFromFile
void GetImageInformationFromFile(const std::string &filename, ImageDimensionType &imageDimension) const
elastix::ElastixMain::m_ResultImageContainer
DataObjectContainerPointer m_ResultImageContainer
Definition elxElastixMain.h:164
elastix::ElastixMain::Self
ElastixMain Self
Definition elxElastixMain.h:74
elastix::ElastixMain::GetElastixLevel
unsigned int GetElastixLevel() const
elastix::ElastixMain::GetOriginalFixedImageDirectionFlat
virtual const FlatDirectionCosinesType & GetOriginalFixedImageDirectionFlat() const
elastix::ElastixMain::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(FixedMaskContainer, DataObjectContainerType)
elastix::ElastixMain::Superclass
MainBase Superclass
Definition elxElastixMain.h:75
elastix::ElastixMain::m_FinalTransform
ObjectPointer m_FinalTransform
Definition elxElastixMain.h:167
elastix::ElastixMain::m_InitialTransform
ObjectPointer m_InitialTransform
Definition elxElastixMain.h:170
elastix::ElastixMain::SetTotalNumberOfElastixLevels
void SetTotalNumberOfElastixLevels(unsigned int levels)
elastix::MainBase::Run
virtual int Run()=0
elastix::MainBase::FlatDirectionCosinesType
ElastixBase::FlatDirectionCosinesType FlatDirectionCosinesType
Definition elxMainBase.h:70
elastix::MainBase::ParameterMapType
itk::ParameterMapInterface::ParameterMapType ParameterMapType
Definition elxMainBase.h:83
elastix::MainBase::MainBase
MainBase()
elastix::MainBase::ImageDimensionType
ComponentDatabase::ImageDimensionType ImageDimensionType
Definition elxMainBase.h:79
elastix::MainBase::DataObjectContainerType
ElastixBase::DataObjectContainerType DataObjectContainerType
Definition elxMainBase.h:67
elastix::MainBase::DataObjectContainerPointer
ElastixBase::DataObjectContainerPointer DataObjectContainerPointer
Definition elxMainBase.h:69
elastix::MainBase::ObjectPointer
itk::Object::Pointer ObjectPointer
Definition elxMainBase.h:61
elastix::MainBase::ArgumentMapType
Configuration::CommandLineArgumentMapType ArgumentMapType
Definition elxMainBase.h:65
elxMainBase.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |