Loading...
Searching...
No Matches
itkGPUUnaryFunctorImageFilter.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.
*
*=========================================================================*/
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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 itkGPUUnaryFunctorImageFilter_h
#define itkGPUUnaryFunctorImageFilter_h
#include "itkGPUFunctorBase.h"
#include "itkGPUInPlaceImageFilter.h"
#include "itkUnaryFunctorImageFilter.h"
namespace itk
{
template <typename TInputImage,
typename TOutputImage,
typename TFunction,
typename TParentImageFilter = InPlaceImageFilter<TInputImage, TOutputImage>>
class ITK_TEMPLATE_EXPORT ITKOpenCL_EXPORT GPUUnaryFunctorImageFilter
: public GPUInPlaceImageFilter<TInputImage, TOutputImage, TParentImageFilter>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUUnaryFunctorImageFilter);
using Self = GPUUnaryFunctorImageFilter;
using CPUSuperclass = TParentImageFilter;
using GPUSuperclass = GPUInPlaceImageFilter<TInputImage, TOutputImage>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(GPUUnaryFunctorImageFilter, GPUInPlaceImageFilter);
using FunctorType = TFunction;
using InputImageType = TInputImage;
using InputImagePointer = typename InputImageType::ConstPointer;
using InputImageRegionType = typename InputImageType::RegionType;
using InputImagePixelType = typename InputImageType::PixelType;
using OutputImageType = TOutputImage;
using OutputImagePointer = typename OutputImageType::Pointer;
using OutputImageRegionType = typename OutputImageType::RegionType;
using OutputImagePixelType = typename OutputImageType::PixelType;
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
FunctorType &
GetFunctor()
{
return m_Functor;
}
const FunctorType &
GetFunctor() const
{
return m_Functor;
}
void
SetFunctor(const FunctorType & functor)
{
if (m_Functor != functor)
{
m_Functor = functor;
this->Modified();
}
}
protected:
GPUUnaryFunctorImageFilter() = default;
~GPUUnaryFunctorImageFilter() override = default;
void
GenerateOutputInformation() override;
void
GPUGenerateData() override;
int m_UnaryFunctorImageFilterGPUKernelHandle{};
private:
FunctorType m_Functor{};
};
} // end of namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUUnaryFunctorImageFilter.hxx"
#endif
#endif
itk::GPUInPlaceImageFilter::GPUInPlaceImageFilter
GPUInPlaceImageFilter()=default
itk::GPUUnaryFunctorImageFilter::SetFunctor
void SetFunctor(const FunctorType &functor)
Definition itkGPUUnaryFunctorImageFilter.h:115
itk::GPUUnaryFunctorImageFilter::GPUUnaryFunctorImageFilter
GPUUnaryFunctorImageFilter()=default
itk::GPUUnaryFunctorImageFilter::m_Functor
FunctorType m_Functor
Definition itkGPUUnaryFunctorImageFilter.h:141
itk::GPUUnaryFunctorImageFilter::GetFunctor
FunctorType & GetFunctor()
Definition itkGPUUnaryFunctorImageFilter.h:100
itk::GPUUnaryFunctorImageFilter::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
itk::GPUUnaryFunctorImageFilter::Pointer
SmartPointer< Self > Pointer
Definition itkGPUUnaryFunctorImageFilter.h:73
itk::GPUUnaryFunctorImageFilter::m_UnaryFunctorImageFilterGPUKernelHandle
int m_UnaryFunctorImageFilterGPUKernelHandle
Definition itkGPUUnaryFunctorImageFilter.h:138
itk::GPUUnaryFunctorImageFilter::OutputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
Definition itkGPUUnaryFunctorImageFilter.h:93
itk::GPUUnaryFunctorImageFilter::Self
GPUUnaryFunctorImageFilter Self
Definition itkGPUUnaryFunctorImageFilter.h:70
itk::GPUUnaryFunctorImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition itkGPUUnaryFunctorImageFilter.h:87
itk::GPUUnaryFunctorImageFilter::InputImagePointer
typename InputImageType::ConstPointer InputImagePointer
Definition itkGPUUnaryFunctorImageFilter.h:86
itk::GPUUnaryFunctorImageFilter::FunctorType
TFunction FunctorType
Definition itkGPUUnaryFunctorImageFilter.h:83
itk::GPUUnaryFunctorImageFilter::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkGPUUnaryFunctorImageFilter.h:74
itk::GPUUnaryFunctorImageFilter::GPUGenerateData
void GPUGenerateData() override
itk::GPUUnaryFunctorImageFilter::itkStaticConstMacro
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
itk::GPUUnaryFunctorImageFilter::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition itkGPUUnaryFunctorImageFilter.h:92
itk::GPUUnaryFunctorImageFilter::~GPUUnaryFunctorImageFilter
~GPUUnaryFunctorImageFilter() override=default
itk::GPUUnaryFunctorImageFilter::GPUSuperclass
GPUInPlaceImageFilter< TInputImage, TOutputImage > GPUSuperclass
Definition itkGPUUnaryFunctorImageFilter.h:72
itk::GPUUnaryFunctorImageFilter::InputImageType
TInputImage InputImageType
Definition itkGPUUnaryFunctorImageFilter.h:85
itk::GPUUnaryFunctorImageFilter::GetFunctor
const FunctorType & GetFunctor() const
Definition itkGPUUnaryFunctorImageFilter.h:107
itk::GPUUnaryFunctorImageFilter::OutputImageType
TOutputImage OutputImageType
Definition itkGPUUnaryFunctorImageFilter.h:90
itk::GPUUnaryFunctorImageFilter::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition itkGPUUnaryFunctorImageFilter.h:91
itk::GPUUnaryFunctorImageFilter::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(GPUUnaryFunctorImageFilter)
itk::GPUUnaryFunctorImageFilter::GenerateOutputInformation
void GenerateOutputInformation() override
itk::GPUUnaryFunctorImageFilter::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition itkGPUUnaryFunctorImageFilter.h:88
itk::GPUUnaryFunctorImageFilter::CPUSuperclass
TParentImageFilter CPUSuperclass
Definition itkGPUUnaryFunctorImageFilter.h:71
itkGPUFunctorBase.h
itkGPUInPlaceImageFilter.h
ITKOpenCL_EXPORT
#define ITKOpenCL_EXPORT
Definition itkOpenCLExport.h:33
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |