Loading...
Searching...
No Matches
itkGPUBSplineDecompositionImageFilterFactory.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 itkGPUBSplineDecompositionImageFilterFactory_h
#define itkGPUBSplineDecompositionImageFilterFactory_h
#include "itkGPUObjectFactoryBase.h"
#include "itkGPUBSplineDecompositionImageFilter.h"
namespace itk
{
template <typename TTypeListIn, typename TTypeListOut, typename NDimensions>
class ITK_TEMPLATE_EXPORT GPUBSplineDecompositionImageFilterFactory2 : public GPUObjectFactoryBase<NDimensions>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUBSplineDecompositionImageFilterFactory2);
using Self = GPUBSplineDecompositionImageFilterFactory2;
using Superclass = GPUObjectFactoryBase<NDimensions>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
const char *
GetDescription() const
{
return "A Factory for GPUBSplineDecompositionImageFilter";
}
itkFactorylessNewMacro(Self);
itkTypeMacro(GPUBSplineDecompositionImageFilterFactory2, GPUObjectFactoryBase);
static void
RegisterOneFactory();
template <typename TTypeIn, typename TTypeOut, unsigned int VImageDimension>
void
operator()()
{
// Image typedefs
using InputImageType = Image<TTypeIn, VImageDimension>;
using OutputImageType = Image<TTypeOut, VImageDimension>;
using GPUInputImageType = GPUImage<TTypeIn, VImageDimension>;
using GPUOutputImageType = GPUImage<TTypeOut, VImageDimension>;
// Override default
this->RegisterOverride(
typeid(BSplineDecompositionImageFilter<InputImageType, OutputImageType>).name(),
typeid(GPUBSplineDecompositionImageFilter<InputImageType, OutputImageType>).name(),
"GPU BSplineDecompositionImageFilter override default",
true,
CreateObjectFunction<GPUBSplineDecompositionImageFilter<InputImageType, OutputImageType>>::New());
// Override when itkGPUImage is first template argument
this->RegisterOverride(
typeid(BSplineDecompositionImageFilter<GPUInputImageType, OutputImageType>).name(),
typeid(GPUBSplineDecompositionImageFilter<GPUInputImageType, OutputImageType>).name(),
"GPU BSplineDecompositionImageFilter override GPUImage first",
true,
CreateObjectFunction<GPUBSplineDecompositionImageFilter<GPUInputImageType, OutputImageType>>::New());
// Override when itkGPUImage is second template argument
this->RegisterOverride(
typeid(BSplineDecompositionImageFilter<InputImageType, GPUOutputImageType>).name(),
typeid(GPUBSplineDecompositionImageFilter<InputImageType, GPUOutputImageType>).name(),
"GPU BSplineDecompositionImageFilter override GPUImage second",
true,
CreateObjectFunction<GPUBSplineDecompositionImageFilter<InputImageType, GPUOutputImageType>>::New());
// Override when itkGPUImage is first and second template arguments
this->RegisterOverride(
typeid(BSplineDecompositionImageFilter<GPUInputImageType, GPUOutputImageType>).name(),
typeid(GPUBSplineDecompositionImageFilter<GPUInputImageType, GPUOutputImageType>).name(),
"GPU BSplineDecompositionImageFilter override GPUImage first and second",
true,
CreateObjectFunction<GPUBSplineDecompositionImageFilter<GPUInputImageType, GPUOutputImageType>>::New());
}
protected:
GPUBSplineDecompositionImageFilterFactory2();
virtual ~GPUBSplineDecompositionImageFilterFactory2() {}
virtual void
Register1D();
virtual void
Register2D();
virtual void
Register3D();
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUBSplineDecompositionImageFilterFactory.hxx"
#endif
#endif // end #ifndef itkGPUBSplineDecompositionImageFilterFactory_h
itk::GPUBSplineDecompositionImageFilterFactory2::operator()
void operator()()
Definition itkGPUBSplineDecompositionImageFilterFactory.h:67
itk::GPUBSplineDecompositionImageFilterFactory2::Register1D
virtual void Register1D()
itk::GPUBSplineDecompositionImageFilterFactory2::Pointer
SmartPointer< Self > Pointer
Definition itkGPUBSplineDecompositionImageFilterFactory.h:44
itk::GPUBSplineDecompositionImageFilterFactory2::~GPUBSplineDecompositionImageFilterFactory2
virtual ~GPUBSplineDecompositionImageFilterFactory2()
Definition itkGPUBSplineDecompositionImageFilterFactory.h:111
itk::GPUBSplineDecompositionImageFilterFactory2::itkFactorylessNewMacro
itkFactorylessNewMacro(Self)
itk::GPUBSplineDecompositionImageFilterFactory2::RegisterOneFactory
static void RegisterOneFactory()
itk::GPUBSplineDecompositionImageFilterFactory2::Self
GPUBSplineDecompositionImageFilterFactory2 Self
Definition itkGPUBSplineDecompositionImageFilterFactory.h:42
itk::GPUBSplineDecompositionImageFilterFactory2::GetDescription
const char * GetDescription() const
Definition itkGPUBSplineDecompositionImageFilterFactory.h:49
itk::GPUBSplineDecompositionImageFilterFactory2::GPUBSplineDecompositionImageFilterFactory2
GPUBSplineDecompositionImageFilterFactory2()
itk::GPUBSplineDecompositionImageFilterFactory2::Superclass
GPUObjectFactoryBase< NDimensions > Superclass
Definition itkGPUBSplineDecompositionImageFilterFactory.h:43
itk::GPUBSplineDecompositionImageFilterFactory2::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkGPUBSplineDecompositionImageFilterFactory.h:45
itk::GPUBSplineDecompositionImageFilterFactory2::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(GPUBSplineDecompositionImageFilterFactory2)
itk::GPUBSplineDecompositionImageFilterFactory2::Register3D
virtual void Register3D()
itk::GPUBSplineDecompositionImageFilterFactory2::Register2D
virtual void Register2D()
itk::GPUBSplineDecompositionImageFilter
GPU version of BSplineDecompositionImageFilter.
Definition itkGPUBSplineDecompositionImageFilter.h:43
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition itkGPUImage.h:64
itk::GPUObjectFactoryBase::GPUObjectFactoryBase
GPUObjectFactoryBase()=default
itkGPUBSplineDecompositionImageFilter.h
itkGPUObjectFactoryBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |