Loading...
Searching...
No Matches
itkGPUCastImageFilter.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 itkGPUCastImageFilter_h
#define itkGPUCastImageFilter_h
#include "itkCastImageFilter.h"
#include "itkSimpleDataObjectDecorator.h"
#include "itkGPUFunctorBase.h"
#include "itkOpenCLKernelManager.h"
#include "itkGPUUnaryFunctorImageFilter.h"
namespace itk
{
itkGPUKernelClassMacro(GPUCastImageFilterKernel);
namespace Functor
{
template <typename TInput, typename TOutput>
class ITK_TEMPLATE_EXPORT GPUCast : public GPUFunctorBase
{
public:
GPUCast() = default;
~GPUCast() override = default;
int
SetGPUKernelArguments(OpenCLKernelManager::Pointer KernelManager, int KernelHandle) override
{
return 0;
}
};
} // end of namespace Functor
template <typename TInputImage, typename TOutputImage>
class ITK_EXPORT GPUCastImageFilter
: public GPUUnaryFunctorImageFilter<
TInputImage,
TOutputImage,
Functor::GPUCast<typename TInputImage::PixelType, typename TOutputImage::PixelType>,
CastImageFilter<TInputImage, TOutputImage>>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUCastImageFilter);
using Self = GPUCastImageFilter;
using GPUSuperclass =
GPUUnaryFunctorImageFilter<TInputImage,
TOutputImage,
Functor::GPUCast<typename TInputImage::PixelType, typename TOutputImage::PixelType>,
CastImageFilter<TInputImage, TOutputImage>>;
using CPUSuperclass = CastImageFilter<TInputImage, TOutputImage>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(GPUCastImageFilter, GPUUnaryFunctorImageFilter);
using InputPixelType = typename TInputImage::PixelType;
using OutputPixelType = typename TOutputImage::PixelType;
using InputPixelObjectType = SimpleDataObjectDecorator<InputPixelType>;
protected:
GPUCastImageFilter();
~GPUCastImageFilter() override = default;
void
GPUGenerateData() override;
};
} // end of namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUCastImageFilter.hxx"
#endif
#endif /* itkGPUCastImageFilter_h */
itk::Functor::GPUFunctorBase
Base functor class for GPU functor image filters.
Definition itkGPUFunctorBase.h:51
itk::GPUCastImageFilter::InputPixelObjectType
SimpleDataObjectDecorator< InputPixelType > InputPixelObjectType
Definition itkGPUCastImageFilter.h:100
itk::GPUCastImageFilter::InputPixelType
typename TInputImage::PixelType InputPixelType
Definition itkGPUCastImageFilter.h:96
itk::GPUCastImageFilter::GPUCastImageFilter
GPUCastImageFilter()
itk::GPUCastImageFilter::~GPUCastImageFilter
~GPUCastImageFilter() override=default
itk::GPUCastImageFilter::Self
GPUCastImageFilter Self
Definition itkGPUCastImageFilter.h:79
itk::GPUCastImageFilter::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkGPUCastImageFilter.h:87
itk::GPUCastImageFilter::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(GPUCastImageFilter)
itk::GPUCastImageFilter::GPUGenerateData
void GPUGenerateData() override
itk::GPUCastImageFilter::OutputPixelType
typename TOutputImage::PixelType OutputPixelType
Definition itkGPUCastImageFilter.h:97
itk::GPUCastImageFilter::CPUSuperclass
CastImageFilter< TInputImage, TOutputImage > CPUSuperclass
Definition itkGPUCastImageFilter.h:85
itk::GPUCastImageFilter::Pointer
SmartPointer< Self > Pointer
Definition itkGPUCastImageFilter.h:86
itk::GPUCastImageFilter::GPUSuperclass
GPUUnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::GPUCast< typename TInputImage::PixelType, typename TOutputImage::PixelType >, CastImageFilter< TInputImage, TOutputImage > > GPUSuperclass
Definition itkGPUCastImageFilter.h:80
itk::GPUUnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::GPUCast< TInputImage::PixelType, TOutputImage::PixelType >, CastImageFilter< TInputImage, TOutputImage > >::GPUUnaryFunctorImageFilter
GPUUnaryFunctorImageFilter()=default
itk::OpenCLKernelManager::Pointer
SmartPointer< Self > Pointer
Definition itkOpenCLKernelManager.h:75
itkGPUFunctorBase.h
itkGPUUnaryFunctorImageFilter.h
itkOpenCLKernelManager.h
itk::Functor
Definition itkGPUCastImageFilter.h:45
itk
Definition itkAdvancedImageToImageMetric.h:43
itk::itkGPUKernelClassMacro
itkGPUKernelClassMacro(GPUBSplineTransformKernel)

Generated on 1768596610 for elastix by 1.15.0 |