Loading...
Searching...
No Matches
itkGPUCompositeTransformCopier.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 itkGPUCompositeTransformCopier_h
#define itkGPUCompositeTransformCopier_h
#include "itkCompositeTransform.h"
#include "itkGPUTransformCopier.h"
namespace itk
{
template <typename TTypeList,
typename NDimensions,
typename TCompositeTransform,
typename TOutputTransformPrecisionType>
class ITK_TEMPLATE_EXPORT GPUCompositeTransformCopier : public Object
{
public:
ITK_DISALLOW_COPY_AND_MOVE(GPUCompositeTransformCopier);
using Self = GPUCompositeTransformCopier;
using Superclass = Object;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(GPUCompositeTransformCopier, Object);
using CPUCompositeTransformType = TCompositeTransform;
using CPUCompositeTransformConstPointer = typename CPUCompositeTransformType::ConstPointer;
using CPUTransformType = typename CPUCompositeTransformType::TransformType;
using CPUTransformPointer = typename CPUTransformType::Pointer;
using CPUScalarType = typename CPUCompositeTransformType::ScalarType;
itkStaticConstMacro(SpaceDimension, unsigned int, CPUCompositeTransformType::InputDimension);
using GPUScalarType = TOutputTransformPrecisionType;
using GPUCompositeTransformType = CompositeTransform<GPUScalarType, SpaceDimension>;
using GPUCompositeTransformPointer = typename GPUCompositeTransformType::Pointer;
using GPUTransformCopierType = GPUTransformCopier<TTypeList, NDimensions, CPUTransformType, GPUScalarType>;
using GPUTransformCopierPointer = typename GPUTransformCopierType::Pointer;
using GPUOutputTransformPointer = typename GPUTransformCopierType::GPUTransformPointer;
itkSetConstObjectMacro(InputTransform, CPUCompositeTransformType);
itkGetModifiableObjectMacro(Output, GPUCompositeTransformType);
itkGetConstMacro(ExplicitMode, bool);
itkSetMacro(ExplicitMode, bool);
void
Update();
#ifdef ITK_USE_CONCEPT_CHECKING
// Begin concept checking
itkConceptMacro(OutputTransformPrecisionTypeIsFloatingPointCheck,
(Concept::IsFloatingPoint<TOutputTransformPrecisionType>));
// End concept checking
#endif
protected:
GPUCompositeTransformCopier();
virtual ~GPUCompositeTransformCopier() {}
virtual void
PrintSelf(std::ostream & os, Indent indent) const override;
private:
CPUCompositeTransformConstPointer m_InputTransform{};
GPUCompositeTransformPointer m_Output{};
ModifiedTimeType m_InternalTransformTime{};
bool m_ExplicitMode{};
GPUTransformCopierPointer m_TransformCopier{};
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUCompositeTransformCopier.hxx"
#endif
#endif /* itkGPUCompositeTransformCopier_h */
CompositeTransform
itk::GPUCompositeTransformCopier::CPUTransformPointer
typename CPUTransformType::Pointer CPUTransformPointer
Definition itkGPUCompositeTransformCopier.h:88
itk::GPUCompositeTransformCopier::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkGPUCompositeTransformCopier.h:76
itk::GPUCompositeTransformCopier::m_ExplicitMode
bool m_ExplicitMode
Definition itkGPUCompositeTransformCopier.h:144
itk::GPUCompositeTransformCopier::~GPUCompositeTransformCopier
virtual ~GPUCompositeTransformCopier()
Definition itkGPUCompositeTransformCopier.h:136
itk::GPUCompositeTransformCopier::CPUScalarType
typename CPUCompositeTransformType::ScalarType CPUScalarType
Definition itkGPUCompositeTransformCopier.h:89
itk::GPUCompositeTransformCopier::m_InputTransform
CPUCompositeTransformConstPointer m_InputTransform
Definition itkGPUCompositeTransformCopier.h:141
itk::GPUCompositeTransformCopier::GPUCompositeTransformType
CompositeTransform< GPUScalarType, SpaceDimension > GPUCompositeTransformType
Definition itkGPUCompositeTransformCopier.h:98
itk::GPUCompositeTransformCopier::GPUTransformCopierType
GPUTransformCopier< TTypeList, NDimensions, CPUTransformType, GPUScalarType > GPUTransformCopierType
Definition itkGPUCompositeTransformCopier.h:102
itk::GPUCompositeTransformCopier::CPUTransformType
typename CPUCompositeTransformType::TransformType CPUTransformType
Definition itkGPUCompositeTransformCopier.h:87
itk::GPUCompositeTransformCopier::GPUTransformCopierPointer
typename GPUTransformCopierType::Pointer GPUTransformCopierPointer
Definition itkGPUCompositeTransformCopier.h:103
itk::GPUCompositeTransformCopier::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(GPUCompositeTransformCopier)
itk::GPUCompositeTransformCopier::Update
void Update()
itk::GPUCompositeTransformCopier::GPUScalarType
TOutputTransformPrecisionType GPUScalarType
Definition itkGPUCompositeTransformCopier.h:97
itk::GPUCompositeTransformCopier::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, CPUCompositeTransformType::InputDimension)
itk::GPUCompositeTransformCopier::itkGetModifiableObjectMacro
itkGetModifiableObjectMacro(Output, GPUCompositeTransformType)
itk::GPUCompositeTransformCopier::GPUCompositeTransformPointer
typename GPUCompositeTransformType::Pointer GPUCompositeTransformPointer
Definition itkGPUCompositeTransformCopier.h:99
itk::GPUCompositeTransformCopier::m_InternalTransformTime
ModifiedTimeType m_InternalTransformTime
Definition itkGPUCompositeTransformCopier.h:143
itk::GPUCompositeTransformCopier::m_Output
GPUCompositeTransformPointer m_Output
Definition itkGPUCompositeTransformCopier.h:142
itk::GPUCompositeTransformCopier::CPUCompositeTransformType
TCompositeTransform CPUCompositeTransformType
Definition itkGPUCompositeTransformCopier.h:85
itk::GPUCompositeTransformCopier::m_TransformCopier
GPUTransformCopierPointer m_TransformCopier
Definition itkGPUCompositeTransformCopier.h:145
itk::GPUCompositeTransformCopier::CPUCompositeTransformConstPointer
typename CPUCompositeTransformType::ConstPointer CPUCompositeTransformConstPointer
Definition itkGPUCompositeTransformCopier.h:86
itk::GPUCompositeTransformCopier::GPUOutputTransformPointer
typename GPUTransformCopierType::GPUTransformPointer GPUOutputTransformPointer
Definition itkGPUCompositeTransformCopier.h:104
itk::GPUCompositeTransformCopier::Pointer
SmartPointer< Self > Pointer
Definition itkGPUCompositeTransformCopier.h:75
itk::GPUCompositeTransformCopier::GPUCompositeTransformCopier
GPUCompositeTransformCopier()
itk::GPUCompositeTransformCopier::PrintSelf
virtual void PrintSelf(std::ostream &os, Indent indent) const override
itk::GPUCompositeTransformCopier::Superclass
Object Superclass
Definition itkGPUCompositeTransformCopier.h:74
itk::GPUCompositeTransformCopier::Self
GPUCompositeTransformCopier Self
Definition itkGPUCompositeTransformCopier.h:73
itk::GPUTransformCopier
A helper class which creates an GPU transform which is perfect copy of the CPU transform.
Definition itkGPUTransformCopier.h:63
itk::GPUTransformCopier< TTypeList, NDimensions, CPUTransformType, GPUScalarType >::Pointer
SmartPointer< Self > Pointer
Definition itkGPUTransformCopier.h:70
itk::GPUTransformCopier< TTypeList, NDimensions, CPUTransformType, GPUScalarType >::GPUTransformPointer
typename GPUTransformType::Pointer GPUTransformPointer
Definition itkGPUTransformCopier.h:93
itkGPUTransformCopier.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |