Loading...
Searching...
No Matches
itkGPUBSplineTransformFactory.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 itkGPUBSplineTransformFactory_h
#define itkGPUBSplineTransformFactory_h
#include "itkGPUObjectFactoryBase.h"
#include "itkGPUBSplineTransform.h"
namespace itk
{
template <typename NDimensions>
class ITK_TEMPLATE_EXPORT GPUBSplineTransformFactory2 : public GPUObjectFactoryBase<NDimensions>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUBSplineTransformFactory2);
using Self = GPUBSplineTransformFactory2;
using Superclass = GPUObjectFactoryBase<NDimensions>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
const char *
GetDescription() const
{
return "A Factory for GPUBSplineTransform";
}
itkFactorylessNewMacro(Self);
itkTypeMacro(GPUBSplineTransformFactory2, GPUObjectFactoryBase);
static void
RegisterOneFactory();
template <typename TType, unsigned int VImageDimension>
void
operator()()
{
// Override for spline order equal 1
this->RegisterOverride(typeid(BSplineTransform<TType, VImageDimension, 1>).name(),
typeid(GPUBSplineTransform<TType, VImageDimension, 1>).name(),
"GPU BSplineTransform override",
true,
CreateObjectFunction<GPUBSplineTransform<TType, VImageDimension, 1>>::New());
// Override for spline order equal 2
this->RegisterOverride(typeid(BSplineTransform<TType, VImageDimension, 2>).name(),
typeid(GPUBSplineTransform<TType, VImageDimension, 2>).name(),
"GPU BSplineTransform override",
true,
CreateObjectFunction<GPUBSplineTransform<TType, VImageDimension, 2>>::New());
// Override for spline order equal 3
this->RegisterOverride(typeid(BSplineTransform<TType, VImageDimension, 3>).name(),
typeid(GPUBSplineTransform<TType, VImageDimension, 3>).name(),
"GPU BSplineTransform override",
true,
CreateObjectFunction<GPUBSplineTransform<TType, VImageDimension, 3>>::New());
}
protected:
GPUBSplineTransformFactory2();
virtual ~GPUBSplineTransformFactory2() {}
using RealTypeList = typelist::MakeTypeList<float, double>::Type;
virtual void
Register1D();
virtual void
Register2D();
virtual void
Register3D();
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUBSplineTransformFactory.hxx"
#endif
#endif /* itkGPUBSplineTransformFactory_h */
BSplineTransform
itk::GPUBSplineTransformFactory2::RealTypeList
typelist::MakeTypeList< float, double >::Type RealTypeList
Definition itkGPUBSplineTransformFactory.h:97
itk::GPUBSplineTransformFactory2::RegisterOneFactory
static void RegisterOneFactory()
itk::GPUBSplineTransformFactory2::operator()
void operator()()
Definition itkGPUBSplineTransformFactory.h:67
itk::GPUBSplineTransformFactory2::Register3D
virtual void Register3D()
itk::GPUBSplineTransformFactory2::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkGPUBSplineTransformFactory.h:45
itk::GPUBSplineTransformFactory2::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(GPUBSplineTransformFactory2)
itk::GPUBSplineTransformFactory2::Register2D
virtual void Register2D()
itk::GPUBSplineTransformFactory2::Register1D
virtual void Register1D()
itk::GPUBSplineTransformFactory2::GPUBSplineTransformFactory2
GPUBSplineTransformFactory2()
itk::GPUBSplineTransformFactory2::itkFactorylessNewMacro
itkFactorylessNewMacro(Self)
itk::GPUBSplineTransformFactory2::~GPUBSplineTransformFactory2
virtual ~GPUBSplineTransformFactory2()
Definition itkGPUBSplineTransformFactory.h:94
itk::GPUBSplineTransformFactory2::Pointer
SmartPointer< Self > Pointer
Definition itkGPUBSplineTransformFactory.h:44
itk::GPUBSplineTransformFactory2::Self
GPUBSplineTransformFactory2 Self
Definition itkGPUBSplineTransformFactory.h:42
itk::GPUBSplineTransformFactory2::Superclass
GPUObjectFactoryBase< NDimensions > Superclass
Definition itkGPUBSplineTransformFactory.h:43
itk::GPUBSplineTransformFactory2::GetDescription
const char * GetDescription() const
Definition itkGPUBSplineTransformFactory.h:49
itk::GPUBSplineTransform
GPU version of BSplineTransform.
Definition itkGPUBSplineTransform.h:44
itk::GPUObjectFactoryBase::GPUObjectFactoryBase
GPUObjectFactoryBase()=default
itkGPUBSplineTransform.h
itkGPUObjectFactoryBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |