Loading...
Searching...
No Matches
elxSplineKernelTransform.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 elxSplineKernelTransform_h
#define elxSplineKernelTransform_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkKernelTransform2.h"
#include "itkElasticBodySplineKernelTransform2.h"
#include "itkElasticBodyReciprocalSplineKernelTransform2.h"
#include "itkThinPlateSplineKernelTransform2.h"
#include "itkThinPlateR2LogRSplineKernelTransform2.h"
#include "itkVolumeSplineKernelTransform2.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT SplineKernelTransform
: public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>
, public elx::TransformBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(SplineKernelTransform);
using Self = SplineKernelTransform;
using Superclass1 = itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>;
using Superclass2 = elx::TransformBase<TElastix>;
using KernelTransformType = itk::KernelTransform2<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(SplineKernelTransform, itk::AdvancedCombinationTransform);
elxClassNameMacro("SplineKernelTransform");
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
using typename Superclass1::ScalarType;
using typename Superclass1::ParametersType;
using typename Superclass1::NumberOfParametersType;
using typename Superclass1::JacobianType;
using typename Superclass1::InputVectorType;
using typename Superclass1::OutputVectorType;
using typename Superclass1::InputCovariantVectorType;
using typename Superclass1::OutputCovariantVectorType;
using typename Superclass1::InputVnlVectorType;
using typename Superclass1::OutputVnlVectorType;
using typename Superclass1::InputPointType;
using typename Superclass1::OutputPointType;
using typename Superclass2::ElastixType;
using typename Superclass2::ParameterMapType;
using typename Superclass2::RegistrationType;
using typename Superclass2::CoordRepType;
using typename Superclass2::FixedImageType;
using typename Superclass2::MovingImageType;
using ITKBaseType = typename Superclass2::ITKBaseType;
using CombinationTransformType = typename Superclass2::CombinationTransformType;
using KernelTransformPointer = typename KernelTransformType::Pointer;
using PointSetType = typename KernelTransformType::PointSetType;
using PointSetPointer = typename PointSetType::Pointer;
int
BeforeAll() override;
void
BeforeRegistration() override;
void
ReadFromFile() override;
protected:
SplineKernelTransform();
~SplineKernelTransform() override = default;
using TPKernelTransformType = itk::ThinPlateSplineKernelTransform2<CoordRepType, Self::SpaceDimension>;
using TPRKernelTransformType = itk::ThinPlateR2LogRSplineKernelTransform2<CoordRepType, Self::SpaceDimension>;
using VKernelTransformType = itk::VolumeSplineKernelTransform2<CoordRepType, Self::SpaceDimension>;
using EBKernelTransformType = itk::ElasticBodySplineKernelTransform2<CoordRepType, Self::SpaceDimension>;
using EBRKernelTransformType = itk::ElasticBodyReciprocalSplineKernelTransform2<CoordRepType, Self::SpaceDimension>;
virtual bool
SetKernelType(const std::string & kernelType);
virtual void
DetermineSourceLandmarks();
virtual bool
DetermineTargetLandmarks();
void
ReadLandmarkFile(const std::string & filename, PointSetPointer & landmarkPointSet, const bool landmarksInFixedImage);
KernelTransformPointer m_KernelTransform;
private:
elxOverrideGetSelfMacro;
ParameterMapType
CreateDerivedTransformParameterMap() const override;
std::string m_SplineKernelType;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxSplineKernelTransform.hxx"
#endif
#endif // end #ifndef elxSplineKernelTransform_h
elastix::BaseComponentSE::ElastixType
TElastix ElastixType
Definition elxBaseComponentSE.h:57
elastix::SplineKernelTransform::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::SplineKernelTransform::EBRKernelTransformType
itk::ElasticBodyReciprocalSplineKernelTransform2< CoordRepType, Self::SpaceDimension > EBRKernelTransformType
Definition elxSplineKernelTransform.h:211
elastix::SplineKernelTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::SplineKernelTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(SplineKernelTransform)
elastix::SplineKernelTransform::PointSetPointer
typename PointSetType::Pointer PointSetPointer
Definition elxSplineKernelTransform.h:179
elastix::SplineKernelTransform::m_SplineKernelType
std::string m_SplineKernelType
Definition elxSplineKernelTransform.h:246
elastix::SplineKernelTransform::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition elxSplineKernelTransform.h:127
elastix::SplineKernelTransform::BeforeRegistration
void BeforeRegistration() override
elastix::SplineKernelTransform::SplineKernelTransform
SplineKernelTransform()
elastix::SplineKernelTransform::KernelTransformType
itk::KernelTransform2< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > KernelTransformType
Definition elxSplineKernelTransform.h:132
elastix::SplineKernelTransform::PointSetType
typename KernelTransformType::PointSetType PointSetType
Definition elxSplineKernelTransform.h:178
elastix::SplineKernelTransform::~SplineKernelTransform
~SplineKernelTransform() override=default
elastix::SplineKernelTransform::BeforeAll
int BeforeAll() override
elastix::SplineKernelTransform::EBKernelTransformType
itk::ElasticBodySplineKernelTransform2< CoordRepType, Self::SpaceDimension > EBKernelTransformType
Definition elxSplineKernelTransform.h:210
elastix::SplineKernelTransform::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxSplineKernelTransform.h:135
elastix::SplineKernelTransform::elxClassNameMacro
elxClassNameMacro("SplineKernelTransform")
elastix::SplineKernelTransform::Self
SplineKernelTransform Self
Definition elxSplineKernelTransform.h:124
elastix::SplineKernelTransform::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::SplineKernelTransform::CombinationTransformType
typename Superclass2::CombinationTransformType CombinationTransformType
Definition elxSplineKernelTransform.h:174
elastix::SplineKernelTransform::KernelTransformPointer
typename KernelTransformType::Pointer KernelTransformPointer
Definition elxSplineKernelTransform.h:177
elastix::SplineKernelTransform::DetermineSourceLandmarks
virtual void DetermineSourceLandmarks()
elastix::SplineKernelTransform::ReadFromFile
void ReadFromFile() override
elastix::SplineKernelTransform::SetKernelType
virtual bool SetKernelType(const std::string &kernelType)
elastix::SplineKernelTransform::m_KernelTransform
KernelTransformPointer m_KernelTransform
Definition elxSplineKernelTransform.h:237
elastix::SplineKernelTransform::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition elxSplineKernelTransform.h:125
elastix::SplineKernelTransform::TPRKernelTransformType
itk::ThinPlateR2LogRSplineKernelTransform2< CoordRepType, Self::SpaceDimension > TPRKernelTransformType
Definition elxSplineKernelTransform.h:208
elastix::SplineKernelTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition elxSplineKernelTransform.h:134
elastix::SplineKernelTransform::ReadLandmarkFile
void ReadLandmarkFile(const std::string &filename, PointSetPointer &landmarkPointSet, const bool landmarksInFixedImage)
elastix::SplineKernelTransform::DetermineTargetLandmarks
virtual bool DetermineTargetLandmarks()
elastix::SplineKernelTransform::TPKernelTransformType
itk::ThinPlateSplineKernelTransform2< CoordRepType, Self::SpaceDimension > TPKernelTransformType
Definition elxSplineKernelTransform.h:207
elastix::SplineKernelTransform::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxSplineKernelTransform.h:240
elastix::SplineKernelTransform::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxSplineKernelTransform.h:173
elastix::SplineKernelTransform::VKernelTransformType
itk::VolumeSplineKernelTransform2< CoordRepType, Self::SpaceDimension > VKernelTransformType
Definition elxSplineKernelTransform.h:209
elastix::TransformBase
This class is the elastix base class for all Transforms.
Definition elxTransformBase.h:138
elastix::TransformBase::FixedImageType
typename TElastix::FixedImageType FixedImageType
Definition elxTransformBase.h:157
elastix::TransformBase::CoordRepType
ElastixBase::CoordRepType CoordRepType
Definition elxTransformBase.h:156
elastix::TransformBase::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::TransformBase::MovingImageType
typename TElastix::MovingImageType MovingImageType
Definition elxTransformBase.h:158
elastix::TransformBase::RegistrationType
typename ElastixType::RegistrationBaseType RegistrationType
Definition elxBaseComponentSE.h:62
elastix::TransformBase::CombinationTransformType
itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension > CombinationTransformType
Definition elxTransformBase.h:171
elastix::TransformBase::ITKBaseType
CombinationTransformType ITKBaseType
Definition elxTransformBase.h:172
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition itkAdvancedCombinationTransform.h:57
itk::ElasticBodyReciprocalSplineKernelTransform2
Definition itkElasticBodyReciprocalSplineKernelTransform2.h:58
itk::ElasticBodySplineKernelTransform2
Definition itkElasticBodySplineKernelTransform2.h:57
itk::KernelTransform2
Definition itkKernelTransform2.h:98
itk::ThinPlateR2LogRSplineKernelTransform2
Definition itkThinPlateR2LogRSplineKernelTransform2.h:54
itk::ThinPlateSplineKernelTransform2
Definition itkThinPlateSplineKernelTransform2.h:52
itk::VolumeSplineKernelTransform2
Definition itkVolumeSplineKernelTransform2.h:52
elxIncludes.h
itkElasticBodyReciprocalSplineKernelTransform2.h
itkElasticBodySplineKernelTransform2.h
itkKernelTransform2.h
itkThinPlateR2LogRSplineKernelTransform2.h
itkThinPlateSplineKernelTransform2.h
itkVolumeSplineKernelTransform2.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |