Loading...
Searching...
No Matches
itkGPUInterpolatorCopier.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 itkGPUInterpolatorCopier_h
#define itkGPUInterpolatorCopier_h
#include "itkInterpolateImageFunction.h"
#include "itkGPUImage.h"
namespace itk
{
template <typename TTypeList, typename NDimensions, typename TInterpolator, typename TOutputCoordRep>
class ITK_TEMPLATE_EXPORT GPUInterpolatorCopier : public Object
{
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUInterpolatorCopier);
using Self = GPUInterpolatorCopier;
using Superclass = Object;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(GPUInterpolatorCopier, Object);
using CPUInterpolatorType = TInterpolator;
using CPUInterpolatorConstPointer = typename CPUInterpolatorType::ConstPointer;
using CPUInputImageType = typename CPUInterpolatorType::InputImageType;
using CPUCoordRepType = typename CPUInterpolatorType::CoordRepType;
using GPUCoordRepType = TOutputCoordRep;
using GPUInterpolatorType = InterpolateImageFunction<CPUInputImageType, GPUCoordRepType>;
using GPUInterpolatorPointer = typename GPUInterpolatorType::Pointer;
using GPUInterpolatorConstPointer = typename GPUInterpolatorType::ConstPointer;
using CPUInputImagePixelType = typename CPUInputImageType::PixelType;
using GPUInputImageType = itk::GPUImage<CPUInputImagePixelType, CPUInputImageType::ImageDimension>;
using GPUExplicitInterpolatorType = InterpolateImageFunction<GPUInputImageType, GPUCoordRepType>;
using GPUExplicitInterpolatorPointer = typename GPUExplicitInterpolatorType::Pointer;
using GPUExplicitInterpolatorConstPointer = typename GPUExplicitInterpolatorType::ConstPointer;
itkSetConstObjectMacro(InputInterpolator, CPUInterpolatorType);
itkGetModifiableObjectMacro(Output, GPUInterpolatorType);
itkGetModifiableObjectMacro(ExplicitOutput, GPUExplicitInterpolatorType);
itkGetConstMacro(ExplicitMode, bool);
itkSetMacro(ExplicitMode, bool);
void
Update();
#ifdef ITK_USE_CONCEPT_CHECKING
// Begin concept checking
itkConceptMacro(OutputCoordRepIsFloatingPointCheck, (Concept::IsFloatingPoint<TOutputCoordRep>));
// End concept checking
#endif
protected:
GPUInterpolatorCopier();
~GPUInterpolatorCopier() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
private:
CPUInterpolatorConstPointer m_InputInterpolator{};
GPUInterpolatorPointer m_Output{};
GPUExplicitInterpolatorPointer m_ExplicitOutput{};
ModifiedTimeType m_InternalTransformTime{};
bool m_ExplicitMode{};
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUInterpolatorCopier.hxx"
#endif
#endif /* itkGPUInterpolatorCopier_h */
itk::GPUImage
Templated n-dimensional image class for the GPU.
Definition itkGPUImage.h:64
itk::GPUInterpolatorCopier::CPUInterpolatorType
TInterpolator CPUInterpolatorType
Definition itkGPUInterpolatorCopier.h:83
itk::GPUInterpolatorCopier::GPUCoordRepType
TOutputCoordRep GPUCoordRepType
Definition itkGPUInterpolatorCopier.h:87
itk::GPUInterpolatorCopier::GPUInterpolatorConstPointer
typename GPUInterpolatorType::ConstPointer GPUInterpolatorConstPointer
Definition itkGPUInterpolatorCopier.h:92
itk::GPUInterpolatorCopier::~GPUInterpolatorCopier
~GPUInterpolatorCopier() override=default
itk::GPUInterpolatorCopier::GPUInterpolatorPointer
typename GPUInterpolatorType::Pointer GPUInterpolatorPointer
Definition itkGPUInterpolatorCopier.h:91
itk::GPUInterpolatorCopier::Update
void Update()
itk::GPUInterpolatorCopier::GPUExplicitInterpolatorType
InterpolateImageFunction< GPUInputImageType, GPUCoordRepType > GPUExplicitInterpolatorType
Definition itkGPUInterpolatorCopier.h:97
itk::GPUInterpolatorCopier::Self
GPUInterpolatorCopier Self
Definition itkGPUInterpolatorCopier.h:71
itk::GPUInterpolatorCopier::m_ExplicitMode
bool m_ExplicitMode
Definition itkGPUInterpolatorCopier.h:141
itk::GPUInterpolatorCopier::m_InternalTransformTime
ModifiedTimeType m_InternalTransformTime
Definition itkGPUInterpolatorCopier.h:140
itk::GPUInterpolatorCopier::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkGPUInterpolatorCopier.h:74
itk::GPUInterpolatorCopier::Superclass
Object Superclass
Definition itkGPUInterpolatorCopier.h:72
itk::GPUInterpolatorCopier::GPUExplicitInterpolatorPointer
typename GPUExplicitInterpolatorType::Pointer GPUExplicitInterpolatorPointer
Definition itkGPUInterpolatorCopier.h:98
itk::GPUInterpolatorCopier::CPUInterpolatorConstPointer
typename CPUInterpolatorType::ConstPointer CPUInterpolatorConstPointer
Definition itkGPUInterpolatorCopier.h:84
itk::GPUInterpolatorCopier::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(Output, GPUInterpolatorType)
itk::GPUInterpolatorCopier::GPUInterpolatorCopier
GPUInterpolatorCopier()
itk::GPUInterpolatorCopier::CPUInputImagePixelType
typename CPUInputImageType::PixelType CPUInputImagePixelType
Definition itkGPUInterpolatorCopier.h:95
itk::GPUInterpolatorCopier::GPUInputImageType
itk::GPUImage< CPUInputImagePixelType, CPUInputImageType::ImageDimension > GPUInputImageType
Definition itkGPUInterpolatorCopier.h:96
itk::GPUInterpolatorCopier::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(ExplicitOutput, GPUExplicitInterpolatorType)
itk::GPUInterpolatorCopier::m_Output
GPUInterpolatorPointer m_Output
Definition itkGPUInterpolatorCopier.h:138
itk::GPUInterpolatorCopier::m_ExplicitOutput
GPUExplicitInterpolatorPointer m_ExplicitOutput
Definition itkGPUInterpolatorCopier.h:139
itk::GPUInterpolatorCopier::m_InputInterpolator
CPUInterpolatorConstPointer m_InputInterpolator
Definition itkGPUInterpolatorCopier.h:137
itk::GPUInterpolatorCopier::GPUInterpolatorType
InterpolateImageFunction< CPUInputImageType, GPUCoordRepType > GPUInterpolatorType
Definition itkGPUInterpolatorCopier.h:90
itk::GPUInterpolatorCopier::CPUCoordRepType
typename CPUInterpolatorType::CoordRepType CPUCoordRepType
Definition itkGPUInterpolatorCopier.h:86
itk::GPUInterpolatorCopier::Pointer
SmartPointer< Self > Pointer
Definition itkGPUInterpolatorCopier.h:73
itk::GPUInterpolatorCopier::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(GPUInterpolatorCopier)
itk::GPUInterpolatorCopier::GPUExplicitInterpolatorConstPointer
typename GPUExplicitInterpolatorType::ConstPointer GPUExplicitInterpolatorConstPointer
Definition itkGPUInterpolatorCopier.h:99
itk::GPUInterpolatorCopier::CPUInputImageType
typename CPUInterpolatorType::InputImageType CPUInputImageType
Definition itkGPUInterpolatorCopier.h:85
itk::GPUInterpolatorCopier::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itkGPUImage.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |