Loading...
Searching...
No Matches
elxExternalTransform.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 elxExternalTransform_h
#define elxExternalTransform_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "elxAdvancedTransformAdapter.h"
#include "elxDefaultConstruct.h"
#include "itkAdvancedCombinationTransform.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT ExternalTransform
: public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>
, public TransformBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(ExternalTransform);
using Self = ExternalTransform;
using Superclass1 = itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>;
using Superclass2 = elx::TransformBase<TElastix>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
using typename Superclass2::ParameterMapType;
using typename Superclass2::CoordRepType;
itkNewMacro(Self);
itkTypeMacro(ExternalTransform, itk::AdvancedCombinationTransform);
elxClassNameMacro("ExternalTransform");
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
void
ReadFromFile() override;
protected:
ExternalTransform();
~ExternalTransform() override = default;
private:
elxOverrideGetSelfMacro;
ParameterMapType
CreateDerivedTransformParameterMap() const override;
using AdvancedTransformAdapterType = AdvancedTransformAdapter<CoordRepType, Superclass2::FixedImageDimension>;
const itk::SmartPointer<AdvancedTransformAdapterType> m_AdvancedTransformAdapter{
AdvancedTransformAdapterType::New()
};
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxExternalTransform.hxx"
#endif
#endif
elastix::AdvancedTransformAdapter
Adapts the ITK transform that is specified by AdvancedTransformAdapter::SetExternalTransform to the e...
Definition elxAdvancedTransformAdapter.h:40
elastix::AdvancedTransformAdapter< CoordRepType, Superclass2::FixedImageDimension >::New
static Pointer New()
elastix::ExternalTransform::AdvancedTransformAdapterType
AdvancedTransformAdapter< CoordRepType, Superclass2::FixedImageDimension > AdvancedTransformAdapterType
Definition elxExternalTransform.h:105
elastix::ExternalTransform::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition elxExternalTransform.h:63
elastix::ExternalTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition elxExternalTransform.h:65
elastix::ExternalTransform::ExternalTransform
ExternalTransform()
elastix::ExternalTransform::Self
ExternalTransform Self
Definition elxExternalTransform.h:57
elastix::ExternalTransform::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::ExternalTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(ExternalTransform)
elastix::ExternalTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxExternalTransform.h:66
elastix::ExternalTransform::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition elxExternalTransform.h:60
elastix::ExternalTransform::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::ExternalTransform::elxClassNameMacro
elxClassNameMacro("ExternalTransform")
elastix::ExternalTransform::ReadFromFile
void ReadFromFile() override
elastix::ExternalTransform::~ExternalTransform
~ExternalTransform() override=default
elastix::ExternalTransform::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxExternalTransform.h:99
elastix::ExternalTransform::m_AdvancedTransformAdapter
const itk::SmartPointer< AdvancedTransformAdapterType > m_AdvancedTransformAdapter
Definition elxExternalTransform.h:108
elastix::ExternalTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::TransformBase
This class is the elastix base class for all Transforms.
Definition elxTransformBase.h:138
elastix::TransformBase::CoordRepType
ElastixBase::CoordRepType CoordRepType
Definition elxTransformBase.h:156
elastix::TransformBase::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::TransformBase::TransformBase
TransformBase()=default
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition itkAdvancedCombinationTransform.h:57
elxAdvancedTransformAdapter.h
elxDefaultConstruct.h
elxIncludes.h
itkAdvancedCombinationTransform.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |