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

Generated on 1768596610 for elastix by 1.15.0 |