Loading...
Searching...
No Matches
itkGPUBSplineInterpolateImageFunctionFactory.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 itkGPUBSplineInterpolateImageFunctionFactory_h
#define itkGPUBSplineInterpolateImageFunctionFactory_h
#include "itkGPUObjectFactoryBase.h"
#include "itkGPUBSplineInterpolateImageFunction.h"
namespace itk
{
template <typename TTypeList, typename NDimensions>
class ITK_TEMPLATE_EXPORT GPUBSplineInterpolateImageFunctionFactory2 : public GPUObjectFactoryBase<NDimensions>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUBSplineInterpolateImageFunctionFactory2);
using Self = GPUBSplineInterpolateImageFunctionFactory2;
using Superclass = GPUObjectFactoryBase<NDimensions>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
const char *
GetDescription() const
{
return "A Factory for GPUBSplineInterpolateImageFunction";
}
itkFactorylessNewMacro(Self);
itkTypeMacro(GPUBSplineInterpolateImageFunctionFactory2, GPUObjectFactoryBase);
static void
RegisterOneFactory();
template <typename TType, unsigned int VImageDimension>
void
operator()()
{
// Image typedefs
using InputImageType = Image<TType, VImageDimension>;
using GPUInputImageType = GPUImage<TType, VImageDimension>;
// Override default with the coordinate representation type as float
// and coefficient type as float
this->RegisterOverride(
typeid(BSplineInterpolateImageFunction<InputImageType, float, float>).name(),
typeid(GPUBSplineInterpolateImageFunction<InputImageType, float, float>).name(),
"GPU BSplineInterpolateImageFunction override with coord rep and coefficient as float",
true,
CreateObjectFunction<GPUBSplineInterpolateImageFunction<InputImageType, float, float>>::New());
// Override when itkGPUImage is first template argument,
// the coordinate representation type as float and coefficient type as float
this->RegisterOverride(
typeid(BSplineInterpolateImageFunction<GPUInputImageType, float, float>).name(),
typeid(GPUBSplineInterpolateImageFunction<GPUInputImageType, float, float>).name(),
"GPU BSplineInterpolateImageFunction override for GPUImage with coord rep and coefficient as float",
true,
CreateObjectFunction<GPUBSplineInterpolateImageFunction<GPUInputImageType, float, float>>::New());
// Override default with and the coordinate representation type as double
// and coefficient type as double
this->RegisterOverride(
typeid(BSplineInterpolateImageFunction<InputImageType, double, double>).name(),
typeid(GPUBSplineInterpolateImageFunction<InputImageType, double, double>).name(),
"GPU BSplineInterpolateImageFunction override with coord rep and coefficient as double",
true,
CreateObjectFunction<GPUBSplineInterpolateImageFunction<InputImageType, double, double>>::New());
// Override when itkGPUImage is first template argument,
// the coordinate representation type as double and coefficient type as double
this->RegisterOverride(
typeid(BSplineInterpolateImageFunction<GPUInputImageType, double, double>).name(),
typeid(GPUBSplineInterpolateImageFunction<GPUInputImageType, double, double>).name(),
"GPU BSplineInterpolateImageFunction override for GPUImage with coord rep and coefficient as double",
true,
CreateObjectFunction<GPUBSplineInterpolateImageFunction<GPUInputImageType, double, double>>::New());
}
protected:
GPUBSplineInterpolateImageFunctionFactory2();
virtual ~GPUBSplineInterpolateImageFunctionFactory2() {}
virtual void
Register1D();
virtual void
Register2D();
virtual void
Register3D();
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUBSplineInterpolateImageFunctionFactory.hxx"
#endif
#endif // end #ifndef itkGPUBSplineInterpolateImageFunctionFactory_h
itk::GPUBSplineInterpolateImageFunctionFactory2::Pointer
SmartPointer< Self > Pointer
Definition itkGPUBSplineInterpolateImageFunctionFactory.h:44
itk::GPUBSplineInterpolateImageFunctionFactory2::RegisterOneFactory
static void RegisterOneFactory()
itk::GPUBSplineInterpolateImageFunctionFactory2::Register1D
virtual void Register1D()
itk::GPUBSplineInterpolateImageFunctionFactory2::Register3D
virtual void Register3D()
itk::GPUBSplineInterpolateImageFunctionFactory2::GPUBSplineInterpolateImageFunctionFactory2
GPUBSplineInterpolateImageFunctionFactory2()
itk::GPUBSplineInterpolateImageFunctionFactory2::Self
GPUBSplineInterpolateImageFunctionFactory2 Self
Definition itkGPUBSplineInterpolateImageFunctionFactory.h:42
itk::GPUBSplineInterpolateImageFunctionFactory2::Register2D
virtual void Register2D()
itk::GPUBSplineInterpolateImageFunctionFactory2::itkFactorylessNewMacro
itkFactorylessNewMacro(Self)
itk::GPUBSplineInterpolateImageFunctionFactory2::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkGPUBSplineInterpolateImageFunctionFactory.h:45
itk::GPUBSplineInterpolateImageFunctionFactory2::Superclass
GPUObjectFactoryBase< NDimensions > Superclass
Definition itkGPUBSplineInterpolateImageFunctionFactory.h:43
itk::GPUBSplineInterpolateImageFunctionFactory2::operator()
void operator()()
Definition itkGPUBSplineInterpolateImageFunctionFactory.h:67
itk::GPUBSplineInterpolateImageFunctionFactory2::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(GPUBSplineInterpolateImageFunctionFactory2)
itk::GPUBSplineInterpolateImageFunctionFactory2::GetDescription
const char * GetDescription() const
Definition itkGPUBSplineInterpolateImageFunctionFactory.h:49
itk::GPUBSplineInterpolateImageFunctionFactory2::~GPUBSplineInterpolateImageFunctionFactory2
virtual ~GPUBSplineInterpolateImageFunctionFactory2()
Definition itkGPUBSplineInterpolateImageFunctionFactory.h:113
itk::GPUBSplineInterpolateImageFunction
GPU version of BSplineInterpolateImageFunction.
Definition itkGPUBSplineInterpolateImageFunction.h:49
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition itkGPUImage.h:64
itk::GPUObjectFactoryBase::GPUObjectFactoryBase
GPUObjectFactoryBase()=default
itkGPUBSplineInterpolateImageFunction.h
itkGPUObjectFactoryBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |