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

Generated on 1768596610 for elastix by 1.15.0 |