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

Generated on 1768596610 for elastix by 1.15.0 |