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

Generated on 1768596610 for elastix by 1.15.0 |