Loading...
Searching...
No Matches
itkGPUShrinkImageFilter.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 itkGPUShrinkImageFilter_h
#define itkGPUShrinkImageFilter_h
#include "itkShrinkImageFilter.h"
#include "itkGPUImageToImageFilter.h"
#include "itkGPUImage.h"
#include "itkVersion.h"
namespace itk
{
itkGPUKernelClassMacro(GPUShrinkImageFilterKernel);
template <typename TInputImage, typename TOutputImage>
class ITK_EXPORT GPUShrinkImageFilter
: public GPUImageToImageFilter<TInputImage, TOutputImage, ShrinkImageFilter<TInputImage, TOutputImage>>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUShrinkImageFilter);
using Self = GPUShrinkImageFilter;
using CPUSuperclass = ShrinkImageFilter<TInputImage, TOutputImage>;
using GPUSuperclass = GPUImageToImageFilter<TInputImage, TOutputImage, CPUSuperclass>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(GPUShrinkImageFilter, GPUSuperclass);
using OutputImageRegionType = typename GPUSuperclass::OutputImageRegionType;
using OutputImagePixelType = typename GPUSuperclass::OutputImagePixelType;
using InputImageType = TInputImage;
using InputImagePointer = typename InputImageType::Pointer;
using InputImageConstPointer = typename InputImageType::ConstPointer;
using InputImageRegionType = typename InputImageType::RegionType;
using InputImagePixelType = typename InputImageType::PixelType;
using ShrinkFactorsType = typename CPUSuperclass::ShrinkFactorsType;
using OutputIndexType = typename CPUSuperclass::OutputIndexType;
using InputIndexType = typename CPUSuperclass::InputIndexType;
using OutputOffsetType = typename CPUSuperclass::OutputOffsetType;
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
protected:
GPUShrinkImageFilter();
~GPUShrinkImageFilter() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
void
GPUGenerateData() override;
private:
std::size_t m_FilterGPUKernelHandle{};
std::size_t m_DeviceLocalMemorySize{};
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUShrinkImageFilter.hxx"
#endif
#endif /* itkGPUShrinkImageFilter_h */
itk::GPUImageToImageFilter< TInputImage, TOutputImage, ShrinkImageFilter< TInputImage, TOutputImage > >::GPUImageToImageFilter
GPUImageToImageFilter()
itk::GPUShrinkImageFilter::CPUSuperclass
ShrinkImageFilter< TInputImage, TOutputImage > CPUSuperclass
Definition itkGPUShrinkImageFilter.h:52
itk::GPUShrinkImageFilter::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(GPUShrinkImageFilter)
itk::GPUShrinkImageFilter::OutputImagePixelType
typename GPUSuperclass::OutputImagePixelType OutputImagePixelType
Definition itkGPUShrinkImageFilter.h:65
itk::GPUShrinkImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition itkGPUShrinkImageFilter.h:71
itk::GPUShrinkImageFilter::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::GPUShrinkImageFilter::OutputOffsetType
typename CPUSuperclass::OutputOffsetType OutputOffsetType
Definition itkGPUShrinkImageFilter.h:77
itk::GPUShrinkImageFilter::InputImageType
TInputImage InputImageType
Definition itkGPUShrinkImageFilter.h:68
itk::GPUShrinkImageFilter::GPUShrinkImageFilter
GPUShrinkImageFilter()
itk::GPUShrinkImageFilter::itkStaticConstMacro
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension)
itk::GPUShrinkImageFilter::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkGPUShrinkImageFilter.h:55
itk::GPUShrinkImageFilter::~GPUShrinkImageFilter
~GPUShrinkImageFilter() override=default
itk::GPUShrinkImageFilter::InputIndexType
typename CPUSuperclass::InputIndexType InputIndexType
Definition itkGPUShrinkImageFilter.h:76
itk::GPUShrinkImageFilter::Pointer
SmartPointer< Self > Pointer
Definition itkGPUShrinkImageFilter.h:54
itk::GPUShrinkImageFilter::GPUSuperclass
GPUImageToImageFilter< TInputImage, TOutputImage, CPUSuperclass > GPUSuperclass
Definition itkGPUShrinkImageFilter.h:53
itk::GPUShrinkImageFilter::m_DeviceLocalMemorySize
std::vcl_size_t m_DeviceLocalMemorySize
Definition itkGPUShrinkImageFilter.h:94
itk::GPUShrinkImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition itkGPUShrinkImageFilter.h:69
itk::GPUShrinkImageFilter::m_FilterGPUKernelHandle
std::vcl_size_t m_FilterGPUKernelHandle
Definition itkGPUShrinkImageFilter.h:93
itk::GPUShrinkImageFilter::GPUGenerateData
void GPUGenerateData() override
itk::GPUShrinkImageFilter::itkStaticConstMacro
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
itk::GPUShrinkImageFilter::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition itkGPUShrinkImageFilter.h:70
itk::GPUShrinkImageFilter::OutputImageRegionType
typename GPUSuperclass::OutputImageRegionType OutputImageRegionType
Definition itkGPUShrinkImageFilter.h:64
itk::GPUShrinkImageFilter::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition itkGPUShrinkImageFilter.h:72
itk::GPUShrinkImageFilter::OutputIndexType
typename CPUSuperclass::OutputIndexType OutputIndexType
Definition itkGPUShrinkImageFilter.h:75
itk::GPUShrinkImageFilter::Self
GPUShrinkImageFilter Self
Definition itkGPUShrinkImageFilter.h:51
itk::GPUShrinkImageFilter::ShrinkFactorsType
typename CPUSuperclass::ShrinkFactorsType ShrinkFactorsType
Definition itkGPUShrinkImageFilter.h:74
itkGPUImageToImageFilter.h
itkGPUImage.h
itk
Definition itkAdvancedImageToImageMetric.h:43
itk::itkGPUKernelClassMacro
itkGPUKernelClassMacro(GPUBSplineTransformKernel)

Generated on 1768596610 for elastix by 1.15.0 |