Loading...
Searching...
No Matches
itkGPUAdvancedBSplineDeformableTransformFactory.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 itkGPUAdvancedBSplineDeformableTransformFactory_h
#define itkGPUAdvancedBSplineDeformableTransformFactory_h
#include "itkGPUObjectFactoryBase.h"
#include "itkGPUAdvancedBSplineDeformableTransform.h"
namespace itk
{
template <typename NDimensions>
class ITK_TEMPLATE_EXPORT GPUAdvancedBSplineDeformableTransformFactory2 : public GPUObjectFactoryBase<NDimensions>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUAdvancedBSplineDeformableTransformFactory2);
using Self = GPUAdvancedBSplineDeformableTransformFactory2;
using Superclass = GPUObjectFactoryBase<NDimensions>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
const char *
GetDescription() const
{
return "A Factory for GPUAdvancedBSplineDeformableTransform";
}
itkFactorylessNewMacro(Self);
itkTypeMacro(GPUAdvancedBSplineDeformableTransformFactory2, GPUObjectFactoryBase);
static void
RegisterOneFactory();
template <typename TType, unsigned int VImageDimension>
void
operator()()
{
// Override for spline order equal 1
this->RegisterOverride(
typeid(AdvancedBSplineDeformableTransform<TType, VImageDimension, 1>).name(),
typeid(GPUAdvancedBSplineDeformableTransform<TType, VImageDimension, 1>).name(),
"GPU AdvancedBSplineDeformableTransform override, spline order 1",
true,
CreateObjectFunction<GPUAdvancedBSplineDeformableTransform<TType, VImageDimension, 1>>::New());
// Override for spline order equal 2
this->RegisterOverride(
typeid(AdvancedBSplineDeformableTransform<TType, VImageDimension, 2>).name(),
typeid(GPUAdvancedBSplineDeformableTransform<TType, VImageDimension, 2>).name(),
"GPU AdvancedBSplineDeformableTransform override, spline order 2",
true,
CreateObjectFunction<GPUAdvancedBSplineDeformableTransform<TType, VImageDimension, 2>>::New());
// Override for spline order equal 3
this->RegisterOverride(
typeid(AdvancedBSplineDeformableTransform<TType, VImageDimension, 3>).name(),
typeid(GPUAdvancedBSplineDeformableTransform<TType, VImageDimension, 3>).name(),
"GPU AdvancedBSplineDeformableTransform override, spline order 3",
true,
CreateObjectFunction<GPUAdvancedBSplineDeformableTransform<TType, VImageDimension, 3>>::New());
}
protected:
GPUAdvancedBSplineDeformableTransformFactory2();
virtual ~GPUAdvancedBSplineDeformableTransformFactory2() {}
using RealTypeList = typelist::MakeTypeList<float, double>::Type;
virtual void
Register1D();
virtual void
Register2D();
virtual void
Register3D();
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUAdvancedBSplineDeformableTransformFactory.hxx"
#endif
#endif /* itkGPUAdvancedBSplineDeformableTransformFactory_h */
itk::GPUObjectFactoryBase
Base class for all GPU factory classes.
Definition itkGPUObjectFactoryBase.h:41
itkGPUAdvancedBSplineDeformableTransform.h
itkGPUObjectFactoryBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |