Loading...
Searching...
No Matches
elxInterpolatorBase.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 elxInterpolatorBase_h
#define elxInterpolatorBase_h
#include "elxMacro.h"
#include "elxBaseComponentSE.h"
#include "elxElastixBase.h"
#include "itkInterpolateImageFunction.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT InterpolatorBase : public BaseComponentSE<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(InterpolatorBase);
using Self = InterpolatorBase;
using Superclass = BaseComponentSE<TElastix>;
itkTypeMacro(InterpolatorBase, BaseComponentSE);
using typename Superclass::ElastixType;
using typename Superclass::RegistrationType;
using InputImageType = typename ElastixType::MovingImageType;
using CoordRepType = ElastixBase::CoordRepType;
using ITKBaseType = itk::InterpolateImageFunction<InputImageType, CoordRepType>;
ITKBaseType *
GetAsITKBaseType()
{
return &(this->GetSelf());
}
const ITKBaseType *
GetAsITKBaseType() const
{
return &(this->GetSelf());
}
protected:
InterpolatorBase() = default;
~InterpolatorBase() override = default;
private:
elxDeclarePureVirtualGetSelfMacro(ITKBaseType);
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxInterpolatorBase.hxx"
#endif
#endif // end #ifndef elxInterpolatorBase_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::InterpolatorBase::~InterpolatorBase
~InterpolatorBase() override=default
elastix::InterpolatorBase::InputImageType
typename ElastixType::MovingImageType InputImageType
Definition elxInterpolatorBase.h:61
elastix::InterpolatorBase::GetAsITKBaseType
ITKBaseType * GetAsITKBaseType()
Definition elxInterpolatorBase.h:69
elastix::InterpolatorBase::ITKBaseType
itk::InterpolateImageFunction< InputImageType, CoordRepType > ITKBaseType
Definition elxInterpolatorBase.h:65
elastix::InterpolatorBase::GetAsITKBaseType
const ITKBaseType * GetAsITKBaseType() const
Definition elxInterpolatorBase.h:77
elastix::InterpolatorBase::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(InterpolatorBase)
elastix::InterpolatorBase::Superclass
BaseComponentSE< TElastix > Superclass
Definition elxInterpolatorBase.h:51
elastix::InterpolatorBase::CoordRepType
ElastixBase::CoordRepType CoordRepType
Definition elxInterpolatorBase.h:62
elastix::InterpolatorBase::elxDeclarePureVirtualGetSelfMacro
elxDeclarePureVirtualGetSelfMacro(ITKBaseType)
elastix::InterpolatorBase::InterpolatorBase
InterpolatorBase()=default
elastix::InterpolatorBase::Self
InterpolatorBase Self
Definition elxInterpolatorBase.h:50
elxBaseComponentSE.h
elxElastixBase.h
elxMacro.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |