Loading...
Searching...
No Matches
elxResampleInterpolatorBase.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 elxResampleInterpolatorBase_h
#define elxResampleInterpolatorBase_h
#include "elxMacro.h"
#include "elxBaseComponentSE.h"
#include "elxElastixBase.h"
#include "itkInterpolateImageFunction.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT ResampleInterpolatorBase : public BaseComponentSE<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(ResampleInterpolatorBase);
using Self = ResampleInterpolatorBase;
using Superclass = BaseComponentSE<TElastix>;
itkTypeMacro(ResampleInterpolatorBase, BaseComponentSE);
using typename Superclass::ElastixType;
using typename Superclass::RegistrationType;
using InputImageType = typename ElastixType::MovingImageType;
using CoordRepType = ElastixBase::CoordRepType;
using ITKBaseType = itk::InterpolateImageFunction<InputImageType, CoordRepType>;
using ParameterMapType = typename ElastixType::ParameterMapType;
ITKBaseType *
GetAsITKBaseType()
{
return &(this->GetSelf());
}
const ITKBaseType *
GetAsITKBaseType() const
{
return &(this->GetSelf());
}
virtual int
BeforeAllTransformix()
{
return 0;
}
virtual void
ReadFromFile();
void
WriteToFile(std::ostream & transformationParameterInfo) const;
void
CreateTransformParameterMap(ParameterMapType & parameterMap) const;
protected:
ResampleInterpolatorBase() = default;
~ResampleInterpolatorBase() override = default;
private:
elxDeclarePureVirtualGetSelfMacro(ITKBaseType);
virtual ParameterMapType
CreateDerivedTransformParameterMap() const
{
return {};
}
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxResampleInterpolatorBase.hxx"
#endif
#endif // end #ifndef elxResampleInterpolatorBase_h
elastix::BaseComponentSE::BaseComponentSE
BaseComponentSE()=default
elastix::BaseComponentSE::RegistrationType
typename ElastixType::RegistrationBaseType RegistrationType
Definition elxBaseComponentSE.h:62
elastix::BaseComponentSE::ElastixType
TElastix ElastixType
Definition elxBaseComponentSE.h:57
elastix::BaseComponentSE::GetSelf
virtual const itk::Object & GetSelf() const =0
elastix::ElastixBase::CoordRepType
double CoordRepType
Definition elxElastixBase.h:173
elastix::ResampleInterpolatorBase::CoordRepType
ElastixBase::CoordRepType CoordRepType
Definition elxResampleInterpolatorBase.h:61
elastix::ResampleInterpolatorBase::GetAsITKBaseType
const ITKBaseType * GetAsITKBaseType() const
Definition elxResampleInterpolatorBase.h:79
elastix::ResampleInterpolatorBase::~ResampleInterpolatorBase
~ResampleInterpolatorBase() override=default
elastix::ResampleInterpolatorBase::Self
ResampleInterpolatorBase Self
Definition elxResampleInterpolatorBase.h:49
elastix::ResampleInterpolatorBase::ITKBaseType
itk::InterpolateImageFunction< InputImageType, CoordRepType > ITKBaseType
Definition elxResampleInterpolatorBase.h:64
elastix::ResampleInterpolatorBase::ReadFromFile
virtual void ReadFromFile()
elastix::ResampleInterpolatorBase::GetAsITKBaseType
ITKBaseType * GetAsITKBaseType()
Definition elxResampleInterpolatorBase.h:71
elastix::ResampleInterpolatorBase::ParameterMapType
typename ElastixType::ParameterMapType ParameterMapType
Definition elxResampleInterpolatorBase.h:67
elastix::ResampleInterpolatorBase::CreateTransformParameterMap
void CreateTransformParameterMap(ParameterMapType &parameterMap) const
elastix::ResampleInterpolatorBase::ResampleInterpolatorBase
ResampleInterpolatorBase()=default
elastix::ResampleInterpolatorBase::elxDeclarePureVirtualGetSelfMacro
elxDeclarePureVirtualGetSelfMacro(ITKBaseType)
elastix::ResampleInterpolatorBase::WriteToFile
void WriteToFile(std::ostream &transformationParameterInfo) const
elastix::ResampleInterpolatorBase::CreateDerivedTransformParameterMap
virtual ParameterMapType CreateDerivedTransformParameterMap() const
Definition elxResampleInterpolatorBase.h:116
elastix::ResampleInterpolatorBase::BeforeAllTransformix
virtual int BeforeAllTransformix()
Definition elxResampleInterpolatorBase.h:89
elastix::ResampleInterpolatorBase::Superclass
BaseComponentSE< TElastix > Superclass
Definition elxResampleInterpolatorBase.h:50
elastix::ResampleInterpolatorBase::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(ResampleInterpolatorBase)
elastix::ResampleInterpolatorBase::InputImageType
typename ElastixType::MovingImageType InputImageType
Definition elxResampleInterpolatorBase.h:60
elxBaseComponentSE.h
elxElastixBase.h
elxMacro.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |