Loading...
Searching...
No Matches
elxMultiBSplineTransformWithNormal.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 elxMultiBSplineTransformWithNormal_h
#define elxMultiBSplineTransformWithNormal_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkAdvancedCombinationTransform.h"
#include "itkAdvancedBSplineDeformableTransform.h"
#include "itkMultiBSplineDeformableTransformWithNormal.h"
#include "itkGridScheduleComputer.h"
#include "itkUpsampleBSplineParametersFilter.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT MultiBSplineTransformWithNormal
: public itk::AdvancedCombinationTransform<typename elx::TransformBase<TElastix>::CoordRepType,
elx::TransformBase<TElastix>::FixedImageDimension>
, public TransformBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(MultiBSplineTransformWithNormal);
using Self = MultiBSplineTransformWithNormal;
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>;
itkNewMacro(Self);
itkTypeMacro(MultiBSplineTransformWithNormal, AdvancedCombinationTransform);
elxClassNameMacro("MultiBSplineTransformWithNormal");
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension);
using BSplineTransformBaseType =
itk::AdvancedBSplineDeformableTransformBase<typename elx::TransformBase<TElastix>::CoordRepType,
Self::SpaceDimension>;
using BSplineTransformBasePointer = typename BSplineTransformBaseType::Pointer;
using MultiBSplineTransformWithNormalLinearType =
itk::MultiBSplineDeformableTransformWithNormal<typename elx::TransformBase<TElastix>::CoordRepType,
Self::SpaceDimension,
1>;
using MultiBSplineTransformWithNormalQuadraticType =
itk::MultiBSplineDeformableTransformWithNormal<typename elx::TransformBase<TElastix>::CoordRepType,
Self::SpaceDimension,
2>;
using MultiBSplineTransformWithNormalCubicType =
itk::MultiBSplineDeformableTransformWithNormal<typename elx::TransformBase<TElastix>::CoordRepType,
Self::SpaceDimension,
3>;
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 PixelType = typename BSplineTransformBaseType::PixelType;
using ImageType = typename BSplineTransformBaseType::ImageType;
using ImagePointer = typename BSplineTransformBaseType::ImagePointer;
using RegionType = typename BSplineTransformBaseType::RegionType;
using IndexType = typename BSplineTransformBaseType::IndexType;
using SizeType = typename BSplineTransformBaseType::SizeType;
using SpacingType = typename BSplineTransformBaseType::SpacingType;
using OriginType = typename BSplineTransformBaseType::OriginType;
using DirectionType = typename BSplineTransformBaseType::DirectionType;
using ContinuousIndexType = typename BSplineTransformBaseType::ContinuousIndexType;
using ParameterIndexArrayType = typename BSplineTransformBaseType::ParameterIndexArrayType;
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 GridScheduleComputerType = itk::GridScheduleComputer<CoordRepType, SpaceDimension>;
using GridScheduleComputerPointer = typename GridScheduleComputerType::Pointer;
using GridScheduleType = typename GridScheduleComputerType ::VectorGridSpacingFactorType;
using GridUpsamplerType = itk::UpsampleBSplineParametersFilter<ParametersType, ImageType>;
using GridUpsamplerPointer = typename GridUpsamplerType::Pointer;
using ImageLabelType = itk::Image<unsigned char, Self::SpaceDimension>;
using ImageLabelPointer = typename ImageLabelType::Pointer;
int
BeforeAll() override;
void
BeforeRegistration() override;
void
BeforeEachResolution() override;
virtual void
IncreaseScale();
void
ReadFromFile() override;
virtual void
SetOptimizerScales(const unsigned int edgeWidth);
protected:
MultiBSplineTransformWithNormal() = default;
~MultiBSplineTransformWithNormal() override = default;
virtual void
PreComputeGridInformation();
private:
elxOverrideGetSelfMacro;
void
InitializeTransform();
ParameterMapType
CreateDerivedTransformParameterMap() const override;
typename MultiBSplineTransformWithNormalCubicType::Pointer m_MultiBSplineTransformWithNormal;
GridScheduleComputerPointer m_GridScheduleComputer;
GridUpsamplerPointer m_GridUpsampler;
ImageLabelPointer m_Labels;
std::string m_LabelsPath;
unsigned int m_SplineOrder;
unsigned int
InitializeBSplineTransform();
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxMultiBSplineTransformWithNormal.hxx"
#endif
#endif // end #ifndef elxMultiBSplineTransformWithNormal_h
elastix::BaseComponentSE::ElastixType
TElastix ElastixType
Definition elxBaseComponentSE.h:57
elastix::MultiBSplineTransformWithNormal::Pointer
itk::SmartPointer< Self > Pointer
Definition elxMultiBSplineTransformWithNormal.h:103
elastix::MultiBSplineTransformWithNormal::MultiBSplineTransformWithNormalQuadraticType
itk::MultiBSplineDeformableTransformWithNormal< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension, 2 > MultiBSplineTransformWithNormalQuadraticType
Definition elxMultiBSplineTransformWithNormal.h:134
elastix::MultiBSplineTransformWithNormal::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(MultiBSplineTransformWithNormal)
elastix::MultiBSplineTransformWithNormal::ImageLabelType
itk::Image< unsigned char, Self::SpaceDimension > ImageLabelType
Definition elxMultiBSplineTransformWithNormal.h:188
elastix::MultiBSplineTransformWithNormal::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxMultiBSplineTransformWithNormal.h:104
elastix::MultiBSplineTransformWithNormal::OriginType
typename BSplineTransformBaseType::OriginType OriginType
Definition elxMultiBSplineTransformWithNormal.h:165
elastix::MultiBSplineTransformWithNormal::m_GridUpsampler
GridUpsamplerPointer m_GridUpsampler
Definition elxMultiBSplineTransformWithNormal.h:264
elastix::MultiBSplineTransformWithNormal::GridScheduleComputerType
itk::GridScheduleComputer< CoordRepType, SpaceDimension > GridScheduleComputerType
Definition elxMultiBSplineTransformWithNormal.h:181
elastix::MultiBSplineTransformWithNormal::BeforeEachResolution
void BeforeEachResolution() override
elastix::MultiBSplineTransformWithNormal::PreComputeGridInformation
virtual void PreComputeGridInformation()
elastix::MultiBSplineTransformWithNormal::ImageLabelPointer
typename ImageLabelType::Pointer ImageLabelPointer
Definition elxMultiBSplineTransformWithNormal.h:189
elastix::MultiBSplineTransformWithNormal::InitializeTransform
void InitializeTransform()
elastix::MultiBSplineTransformWithNormal::~MultiBSplineTransformWithNormal
~MultiBSplineTransformWithNormal() override=default
elastix::MultiBSplineTransformWithNormal::Superclass1
itk::AdvancedCombinationTransform< typename elx::TransformBase< TElastix >::CoordRepType, elx::TransformBase< TElastix >::FixedImageDimension > Superclass1
Definition elxMultiBSplineTransformWithNormal.h:100
elastix::MultiBSplineTransformWithNormal::GridUpsamplerType
itk::UpsampleBSplineParametersFilter< ParametersType, ImageType > GridUpsamplerType
Definition elxMultiBSplineTransformWithNormal.h:184
elastix::MultiBSplineTransformWithNormal::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxMultiBSplineTransformWithNormal.h:247
elastix::MultiBSplineTransformWithNormal::SpacingType
typename BSplineTransformBaseType::SpacingType SpacingType
Definition elxMultiBSplineTransformWithNormal.h:164
elastix::MultiBSplineTransformWithNormal::ImageType
typename BSplineTransformBaseType::ImageType ImageType
Definition elxMultiBSplineTransformWithNormal.h:159
elastix::MultiBSplineTransformWithNormal::ReadFromFile
void ReadFromFile() override
elastix::MultiBSplineTransformWithNormal::m_Labels
ImageLabelPointer m_Labels
Definition elxMultiBSplineTransformWithNormal.h:265
elastix::MultiBSplineTransformWithNormal::IncreaseScale
virtual void IncreaseScale()
elastix::MultiBSplineTransformWithNormal::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxMultiBSplineTransformWithNormal.h:177
elastix::MultiBSplineTransformWithNormal::ContinuousIndexType
typename BSplineTransformBaseType::ContinuousIndexType ContinuousIndexType
Definition elxMultiBSplineTransformWithNormal.h:167
elastix::MultiBSplineTransformWithNormal::BeforeRegistration
void BeforeRegistration() override
elastix::MultiBSplineTransformWithNormal::Self
MultiBSplineTransformWithNormal Self
Definition elxMultiBSplineTransformWithNormal.h:99
elastix::MultiBSplineTransformWithNormal::ParameterMapType
typename TElastix::ParameterMapType ParameterMapType
Definition elxTransformBase.h:199
elastix::MultiBSplineTransformWithNormal::m_MultiBSplineTransformWithNormal
MultiBSplineTransformWithNormalCubicType::Pointer m_MultiBSplineTransformWithNormal
Definition elxMultiBSplineTransformWithNormal.h:262
elastix::MultiBSplineTransformWithNormal::ImagePointer
typename BSplineTransformBaseType::ImagePointer ImagePointer
Definition elxMultiBSplineTransformWithNormal.h:160
elastix::MultiBSplineTransformWithNormal::DirectionType
typename BSplineTransformBaseType::DirectionType DirectionType
Definition elxMultiBSplineTransformWithNormal.h:166
elastix::MultiBSplineTransformWithNormal::MultiBSplineTransformWithNormalLinearType
itk::MultiBSplineDeformableTransformWithNormal< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension, 1 > MultiBSplineTransformWithNormalLinearType
Definition elxMultiBSplineTransformWithNormal.h:130
elastix::MultiBSplineTransformWithNormal::ParameterIndexArrayType
typename BSplineTransformBaseType::ParameterIndexArrayType ParameterIndexArrayType
Definition elxMultiBSplineTransformWithNormal.h:168
elastix::MultiBSplineTransformWithNormal::CreateDerivedTransformParameterMap
ParameterMapType CreateDerivedTransformParameterMap() const override
elastix::MultiBSplineTransformWithNormal::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Superclass2::FixedImageDimension)
elastix::MultiBSplineTransformWithNormal::GridScheduleComputerPointer
typename GridScheduleComputerType::Pointer GridScheduleComputerPointer
Definition elxMultiBSplineTransformWithNormal.h:182
elastix::MultiBSplineTransformWithNormal::GridUpsamplerPointer
typename GridUpsamplerType::Pointer GridUpsamplerPointer
Definition elxMultiBSplineTransformWithNormal.h:185
elastix::MultiBSplineTransformWithNormal::m_SplineOrder
unsigned int m_SplineOrder
Definition elxMultiBSplineTransformWithNormal.h:269
elastix::MultiBSplineTransformWithNormal::m_GridScheduleComputer
GridScheduleComputerPointer m_GridScheduleComputer
Definition elxMultiBSplineTransformWithNormal.h:263
elastix::MultiBSplineTransformWithNormal::RegionType
typename BSplineTransformBaseType::RegionType RegionType
Definition elxMultiBSplineTransformWithNormal.h:161
elastix::MultiBSplineTransformWithNormal::BeforeAll
int BeforeAll() override
elastix::MultiBSplineTransformWithNormal::MultiBSplineTransformWithNormalCubicType
itk::MultiBSplineDeformableTransformWithNormal< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension, 3 > MultiBSplineTransformWithNormalCubicType
Definition elxMultiBSplineTransformWithNormal.h:138
elastix::MultiBSplineTransformWithNormal::IndexType
typename BSplineTransformBaseType::IndexType IndexType
Definition elxMultiBSplineTransformWithNormal.h:162
elastix::MultiBSplineTransformWithNormal::BSplineTransformBasePointer
typename BSplineTransformBaseType::Pointer BSplineTransformBasePointer
Definition elxMultiBSplineTransformWithNormal.h:127
elastix::MultiBSplineTransformWithNormal::MultiBSplineTransformWithNormal
MultiBSplineTransformWithNormal()=default
elastix::MultiBSplineTransformWithNormal::Superclass2
elx::TransformBase< TElastix > Superclass2
Definition elxMultiBSplineTransformWithNormal.h:102
elastix::MultiBSplineTransformWithNormal::InitializeBSplineTransform
unsigned int InitializeBSplineTransform()
elastix::MultiBSplineTransformWithNormal::elxClassNameMacro
elxClassNameMacro("MultiBSplineTransformWithNormal")
elastix::MultiBSplineTransformWithNormal::CombinationTransformType
typename Superclass2::CombinationTransformType CombinationTransformType
Definition elxMultiBSplineTransformWithNormal.h:178
elastix::MultiBSplineTransformWithNormal::GridScheduleType
typename GridScheduleComputerType ::VectorGridSpacingFactorType GridScheduleType
Definition elxMultiBSplineTransformWithNormal.h:183
elastix::MultiBSplineTransformWithNormal::m_LabelsPath
std::string m_LabelsPath
Definition elxMultiBSplineTransformWithNormal.h:266
elastix::MultiBSplineTransformWithNormal::SetOptimizerScales
virtual void SetOptimizerScales(const unsigned int edgeWidth)
elastix::MultiBSplineTransformWithNormal::SizeType
typename BSplineTransformBaseType::SizeType SizeType
Definition elxMultiBSplineTransformWithNormal.h:163
elastix::MultiBSplineTransformWithNormal::BSplineTransformBaseType
itk::AdvancedBSplineDeformableTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension > BSplineTransformBaseType
Definition elxMultiBSplineTransformWithNormal.h:124
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::TransformBase
TransformBase()=default
elastix::TransformBase::CombinationTransformType
itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension > CombinationTransformType
Definition elxTransformBase.h:171
elastix::TransformBase::ITKBaseType
CombinationTransformType ITKBaseType
Definition elxTransformBase.h:172
itk::AdvancedBSplineDeformableTransformBase
Base class for deformable transform using a B-spline representation.
Definition itkAdvancedBSplineDeformableTransformBase.h:43
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition itkAdvancedCombinationTransform.h:57
itk::AdvancedCombinationTransform::AdvancedCombinationTransform
AdvancedCombinationTransform()
itk::GridScheduleComputer
This class computes all information about the B-spline grid, given the image information and the desi...
Definition itkGridScheduleComputer.h:41
itk::GridScheduleComputer< CoordRepType, SpaceDimension >::Pointer
SmartPointer< Self > Pointer
Definition itkGridScheduleComputer.h:48
itk::MultiBSplineDeformableTransformWithNormal
This transform is a composition of B-spline transformations, allowing sliding motion between differen...
Definition itkMultiBSplineDeformableTransformWithNormal.h:44
itk::UpsampleBSplineParametersFilter
Convenience class for upsampling a B-spline coefficient image.
Definition itkUpsampleBSplineParametersFilter.h:40
itk::UpsampleBSplineParametersFilter< ParametersType, ImageType >::Pointer
SmartPointer< Self > Pointer
Definition itkUpsampleBSplineParametersFilter.h:47
elxIncludes.h
itkAdvancedBSplineDeformableTransform.h
itkAdvancedCombinationTransform.h
itkGridScheduleComputer.h
itkMultiBSplineDeformableTransformWithNormal.h
itkUpsampleBSplineParametersFilter.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |