Loading...
Searching...
No Matches
elxImageSamplerBase.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 elxImageSamplerBase_h
#define elxImageSamplerBase_h
#include "elxMacro.h"
#include "elxBaseComponentSE.h"
#include "itkImageSamplerBase.h"
namespace elastix
{
// using namespace itk; not here because itk::ImageSamplerBase exists also.
template <class TElastix>
class ITK_TEMPLATE_EXPORT ImageSamplerBase : public BaseComponentSE<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(ImageSamplerBase);
using Self = ImageSamplerBase;
using Superclass = BaseComponentSE<TElastix>;
itkTypeMacro(ImageSamplerBase, BaseComponentSE);
using typename Superclass::ElastixType;
using typename Superclass::RegistrationType;
using InputImageType = typename ElastixType::FixedImageType;
using ITKBaseType = itk::ImageSamplerBase<InputImageType>;
ITKBaseType *
GetAsITKBaseType()
{
return &(this->GetSelf());
}
const ITKBaseType *
GetAsITKBaseType() const
{
return &(this->GetSelf());
}
void
BeforeRegistrationBase() override;
void
BeforeEachResolutionBase() override;
protected:
ImageSamplerBase() = default;
~ImageSamplerBase() override = default;
private:
elxDeclarePureVirtualGetSelfMacro(ITKBaseType);
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxImageSamplerBase.hxx"
#endif
#endif // end #ifndef elxImageSamplerBase_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::ImageSamplerBase::BeforeRegistrationBase
void BeforeRegistrationBase() override
elastix::ImageSamplerBase::InputImageType
typename ElastixType::FixedImageType InputImageType
Definition elxImageSamplerBase.h:68
elastix::ImageSamplerBase::~ImageSamplerBase
~ImageSamplerBase() override=default
elastix::ImageSamplerBase::GetAsITKBaseType
const ITKBaseType * GetAsITKBaseType() const
Definition elxImageSamplerBase.h:83
elastix::ImageSamplerBase::GetAsITKBaseType
ITKBaseType * GetAsITKBaseType()
Definition elxImageSamplerBase.h:75
elastix::ImageSamplerBase::Self
ImageSamplerBase Self
Definition elxImageSamplerBase.h:57
elastix::ImageSamplerBase::ITKBaseType
itk::ImageSamplerBase< InputImageType > ITKBaseType
Definition elxImageSamplerBase.h:71
elastix::ImageSamplerBase::elxDeclarePureVirtualGetSelfMacro
elxDeclarePureVirtualGetSelfMacro(ITKBaseType)
elastix::ImageSamplerBase::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(ImageSamplerBase)
elastix::ImageSamplerBase::Superclass
BaseComponentSE< TElastix > Superclass
Definition elxImageSamplerBase.h:58
elastix::ImageSamplerBase::ImageSamplerBase
ImageSamplerBase()=default
elastix::ImageSamplerBase::BeforeEachResolutionBase
void BeforeEachResolutionBase() override
itk::ImageSamplerBase
This class is a base class for any image sampler.
Definition itkImageSamplerBase.h:44
elxBaseComponentSE.h
elxMacro.h
itkImageSamplerBase.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |