Loading...
Searching...
No Matches
elxOpenCLMovingGenericPyramid.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 elxOpenCLMovingGenericPyramid_h
#define elxOpenCLMovingGenericPyramid_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "elxMovingGenericPyramid.h"
#include "itkGPUImage.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT OpenCLMovingGenericPyramid : public MovingGenericPyramid<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(OpenCLMovingGenericPyramid);
using Self = OpenCLMovingGenericPyramid;
using Superclass = MovingGenericPyramid<TElastix>;
using Superclass1 = typename MovingGenericPyramid<TElastix>::Superclass1;
using Superclass2 = typename MovingGenericPyramid<TElastix>::Superclass2;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(OpenCLMovingGenericPyramid, MovingGenericPyramid);
elxClassNameMacro("OpenCLMovingGenericImagePyramid");
itkStaticConstMacro(ImageDimension, unsigned int, Superclass1::ImageDimension);
using typename Superclass1::InputImageType;
using typename Superclass1::OutputImageType;
using InputImagePixelType = typename Superclass1::InputImageType::PixelType;
using OutputImagePixelType = typename Superclass1::OutputImageType::PixelType;
using ObjectFactoryBasePointer = typename itk::ObjectFactoryBase::Pointer;
using GPUInputImageType = itk::GPUImage<InputImagePixelType, InputImageType::ImageDimension>;
using GPUInputImagePointer = typename GPUInputImageType::Pointer;
using GPUOutputImageType = itk::GPUImage<OutputImagePixelType, OutputImageType::ImageDimension>;
using GPUPyramidType = itk::GenericMultiResolutionPyramidImageFilter<GPUInputImageType, GPUOutputImageType, float>;
using GPUPyramidPointer = typename GPUPyramidType::Pointer;
void
BeforeRegistration() override;
virtual void
ReadFromFile();
protected:
void
BeforeGenerateData();
void
GenerateData() override;
OpenCLMovingGenericPyramid();
~OpenCLMovingGenericPyramid() override = default;
private:
elxOverrideGetSelfMacro;
void
RegisterFactories();
void
UnregisterFactories();
void
SwitchingToCPUAndReport(const bool configError);
void
ReportToLog();
GPUPyramidPointer m_GPUPyramid;
bool m_GPUPyramidReady;
bool m_GPUPyramidCreated;
bool m_ContextCreated;
bool m_UseOpenCL;
std::vector<ObjectFactoryBasePointer> m_Factories;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxOpenCLMovingGenericPyramid.hxx"
#endif
#endif // end #ifndef elxOpenCLMovingGenericPyramid_h
elastix::MovingGenericPyramid::Superclass2
MovingImagePyramidBase< TElastix > Superclass2
Definition elxMovingGenericPyramid.h:81
elastix::MovingGenericPyramid::Superclass1
itk::GenericMultiResolutionPyramidImageFilter< typename MovingImagePyramidBase< TElastix >::InputImageType, typename MovingImagePyramidBase< TElastix >::OutputImageType > Superclass1
Definition elxMovingGenericPyramid.h:78
elastix::MovingGenericPyramid::MovingGenericPyramid
MovingGenericPyramid()=default
elastix::OpenCLMovingGenericPyramid::GPUInputImagePointer
typename GPUInputImageType::Pointer GPUInputImagePointer
Definition elxOpenCLMovingGenericPyramid.h:87
elastix::OpenCLMovingGenericPyramid::m_UseOpenCL
bool m_UseOpenCL
Definition elxOpenCLMovingGenericPyramid.h:137
elastix::OpenCLMovingGenericPyramid::OutputImagePixelType
typename Superclass1::OutputImageType::PixelType OutputImagePixelType
Definition elxOpenCLMovingGenericPyramid.h:80
elastix::OpenCLMovingGenericPyramid::ObjectFactoryBasePointer
typename itk::ObjectFactoryBase::Pointer ObjectFactoryBasePointer
Definition elxOpenCLMovingGenericPyramid.h:83
elastix::OpenCLMovingGenericPyramid::itkStaticConstMacro
itkStaticConstMacro(ImageDimension, unsigned int, Superclass1::ImageDimension)
elastix::OpenCLMovingGenericPyramid::Superclass1
typename MovingGenericPyramid< TElastix >::Superclass1 Superclass1
Definition elxOpenCLMovingGenericPyramid.h:56
elastix::OpenCLMovingGenericPyramid::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxOpenCLMovingGenericPyramid.h:116
elastix::OpenCLMovingGenericPyramid::GPUPyramidType
itk::GenericMultiResolutionPyramidImageFilter< GPUInputImageType, GPUOutputImageType, float > GPUPyramidType
Definition elxOpenCLMovingGenericPyramid.h:90
elastix::OpenCLMovingGenericPyramid::RegisterFactories
void RegisterFactories()
elastix::OpenCLMovingGenericPyramid::~OpenCLMovingGenericPyramid
~OpenCLMovingGenericPyramid() override=default
elastix::OpenCLMovingGenericPyramid::BeforeGenerateData
void BeforeGenerateData()
elastix::OpenCLMovingGenericPyramid::SwitchingToCPUAndReport
void SwitchingToCPUAndReport(const bool configError)
elastix::OpenCLMovingGenericPyramid::Superclass2
typename MovingGenericPyramid< TElastix >::Superclass2 Superclass2
Definition elxOpenCLMovingGenericPyramid.h:57
elastix::OpenCLMovingGenericPyramid::BeforeRegistration
void BeforeRegistration() override
elastix::OpenCLMovingGenericPyramid::Superclass
MovingGenericPyramid< TElastix > Superclass
Definition elxOpenCLMovingGenericPyramid.h:55
elastix::OpenCLMovingGenericPyramid::OpenCLMovingGenericPyramid
OpenCLMovingGenericPyramid()
elastix::OpenCLMovingGenericPyramid::Self
OpenCLMovingGenericPyramid Self
Definition elxOpenCLMovingGenericPyramid.h:54
elastix::OpenCLMovingGenericPyramid::Pointer
itk::SmartPointer< Self > Pointer
Definition elxOpenCLMovingGenericPyramid.h:58
elastix::OpenCLMovingGenericPyramid::elxClassNameMacro
elxClassNameMacro("OpenCLMovingGenericImagePyramid")
elastix::OpenCLMovingGenericPyramid::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(OpenCLMovingGenericPyramid)
elastix::OpenCLMovingGenericPyramid::m_GPUPyramidCreated
bool m_GPUPyramidCreated
Definition elxOpenCLMovingGenericPyramid.h:135
elastix::OpenCLMovingGenericPyramid::GPUOutputImageType
itk::GPUImage< OutputImagePixelType, OutputImageType::ImageDimension > GPUOutputImageType
Definition elxOpenCLMovingGenericPyramid.h:88
elastix::OpenCLMovingGenericPyramid::m_GPUPyramidReady
bool m_GPUPyramidReady
Definition elxOpenCLMovingGenericPyramid.h:134
elastix::OpenCLMovingGenericPyramid::m_ContextCreated
bool m_ContextCreated
Definition elxOpenCLMovingGenericPyramid.h:136
elastix::OpenCLMovingGenericPyramid::m_GPUPyramid
GPUPyramidPointer m_GPUPyramid
Definition elxOpenCLMovingGenericPyramid.h:133
elastix::OpenCLMovingGenericPyramid::GPUPyramidPointer
typename GPUPyramidType::Pointer GPUPyramidPointer
Definition elxOpenCLMovingGenericPyramid.h:91
elastix::OpenCLMovingGenericPyramid::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxOpenCLMovingGenericPyramid.h:59
elastix::OpenCLMovingGenericPyramid::ReadFromFile
virtual void ReadFromFile()
elastix::OpenCLMovingGenericPyramid::ReportToLog
void ReportToLog()
elastix::OpenCLMovingGenericPyramid::GPUInputImageType
itk::GPUImage< InputImagePixelType, InputImageType::ImageDimension > GPUInputImageType
Definition elxOpenCLMovingGenericPyramid.h:86
elastix::OpenCLMovingGenericPyramid::InputImagePixelType
typename Superclass1::InputImageType::PixelType InputImagePixelType
Definition elxOpenCLMovingGenericPyramid.h:79
elastix::OpenCLMovingGenericPyramid::m_Factories
std::vector< ObjectFactoryBasePointer > m_Factories
Definition elxOpenCLMovingGenericPyramid.h:138
elastix::OpenCLMovingGenericPyramid::GenerateData
void GenerateData() override
elastix::OpenCLMovingGenericPyramid::UnregisterFactories
void UnregisterFactories()
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition itkGPUImage.h:64
itk::GPUImage< InputImagePixelType, InputImageType::ImageDimension >::Pointer
SmartPointer< Self > Pointer
Definition itkGPUImage.h:70
itk::GenericMultiResolutionPyramidImageFilter
Framework for creating images in a multi-resolution pyramid.
Definition itkGenericMultiResolutionPyramidImageFilter.h:119
itk::GenericMultiResolutionPyramidImageFilter< GPUInputImageType, GPUOutputImageType, float >::Pointer
SmartPointer< Self > Pointer
Definition itkGenericMultiResolutionPyramidImageFilter.h:127
elxIncludes.h
elxMovingGenericPyramid.h
itkGPUImage.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |