Loading...
Searching...
No Matches
elxMovingImagePyramidBase.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 elxMovingImagePyramidBase_h
#define elxMovingImagePyramidBase_h
#include "elxMacro.h"
#include "elxBaseComponentSE.h"
#include "itkObject.h"
#include "itkMultiResolutionPyramidImageFilter.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT MovingImagePyramidBase : public BaseComponentSE<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(MovingImagePyramidBase);
using Self = MovingImagePyramidBase;
using Superclass = BaseComponentSE<TElastix>;
itkTypeMacro(MovingImagePyramidBase, BaseComponentSE);
using typename Superclass::ElastixType;
using typename Superclass::RegistrationType;
using InputImageType = typename ElastixType::MovingImageType;
using OutputImageType = typename ElastixType::MovingImageType;
using ITKBaseType = itk::MultiResolutionPyramidImageFilter<InputImageType, OutputImageType>;
using ScheduleType = typename ITKBaseType::ScheduleType;
ITKBaseType *
GetAsITKBaseType()
{
return &(this->GetSelf());
}
const ITKBaseType *
GetAsITKBaseType() const
{
return &(this->GetSelf());
}
void
BeforeRegistrationBase() override;
void
BeforeEachResolutionBase() override;
virtual void
SetMovingSchedule();
void
WritePyramidImage(const std::string & filename,
const unsigned int level); // const;
protected:
MovingImagePyramidBase() = default;
~MovingImagePyramidBase() override = default;
private:
elxDeclarePureVirtualGetSelfMacro(ITKBaseType);
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxMovingImagePyramidBase.hxx"
#endif
#endif // end #ifndef elxMovingImagePyramidBase_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::MovingImagePyramidBase::Superclass
BaseComponentSE< TElastix > Superclass
Definition elxMovingImagePyramidBase.h:67
elastix::MovingImagePyramidBase::GetAsITKBaseType
const ITKBaseType * GetAsITKBaseType() const
Definition elxMovingImagePyramidBase.h:96
elastix::MovingImagePyramidBase::WritePyramidImage
void WritePyramidImage(const std::string &filename, const unsigned int level)
elastix::MovingImagePyramidBase::elxDeclarePureVirtualGetSelfMacro
elxDeclarePureVirtualGetSelfMacro(ITKBaseType)
elastix::MovingImagePyramidBase::GetAsITKBaseType
ITKBaseType * GetAsITKBaseType()
Definition elxMovingImagePyramidBase.h:88
elastix::MovingImagePyramidBase::SetMovingSchedule
virtual void SetMovingSchedule()
elastix::MovingImagePyramidBase::MovingImagePyramidBase
MovingImagePyramidBase()=default
elastix::MovingImagePyramidBase::BeforeRegistrationBase
void BeforeRegistrationBase() override
elastix::MovingImagePyramidBase::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(MovingImagePyramidBase)
elastix::MovingImagePyramidBase::InputImageType
typename ElastixType::MovingImageType InputImageType
Definition elxMovingImagePyramidBase.h:77
elastix::MovingImagePyramidBase::BeforeEachResolutionBase
void BeforeEachResolutionBase() override
elastix::MovingImagePyramidBase::ScheduleType
typename ITKBaseType::ScheduleType ScheduleType
Definition elxMovingImagePyramidBase.h:84
elastix::MovingImagePyramidBase::OutputImageType
typename ElastixType::MovingImageType OutputImageType
Definition elxMovingImagePyramidBase.h:78
elastix::MovingImagePyramidBase::ITKBaseType
itk::MultiResolutionPyramidImageFilter< InputImageType, OutputImageType > ITKBaseType
Definition elxMovingImagePyramidBase.h:81
elastix::MovingImagePyramidBase::~MovingImagePyramidBase
~MovingImagePyramidBase() override=default
elastix::MovingImagePyramidBase::Self
MovingImagePyramidBase Self
Definition elxMovingImagePyramidBase.h:66
elxBaseComponentSE.h
elxMacro.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |