Loading...
Searching...
No Matches
itkGPUTranslationTransformBase.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 itkGPUTranslationTransformBase_h
#define itkGPUTranslationTransformBase_h
#include "itkGPUTransformBase.h"
namespace itk
{
itkGPUKernelClassMacro(GPUTranslationTransformBaseKernel);
template <typename TScalarType = float, // Data type for scalars
unsigned int NDimensions = 3>
class ITK_EXPORT GPUTranslationTransformBase : public GPUTransformBase
{
public:
using Self = GPUTranslationTransformBase;
using GPUSuperclass = GPUTransformBase;
itkTypeMacro(GPUTranslationTransformBase, GPUSuperclass);
bool
IsTranslationTransform() const override
{
return true;
}
using ScalarType = TScalarType;
itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions);
itkStaticConstMacro(ParametersDimension, unsigned int, NDimensions);
using CPUOutputVectorType = Vector<TScalarType, NDimensions>;
virtual const CPUOutputVectorType &
GetCPUOffset() const = 0;
protected:
GPUTranslationTransformBase();
~GPUTranslationTransformBase() override = default;
bool
GetSourceCode(std::string & source) const override;
GPUDataManager::Pointer
GetParametersDataManager() const override;
private:
GPUTranslationTransformBase(const Self & other) = delete;
const Self &
operator=(const Self &) = delete;
std::vector<std::string> m_Sources{};
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUTranslationTransformBase.hxx"
#endif
#endif /* itkGPUTranslationTransformBase_h */
TScalarType
float
itk::GPUDataManager::Pointer
SmartPointer< Self > Pointer
Definition itkGPUDataManager.h:74
itk::GPUTransformBase::GPUTransformBase
GPUTransformBase()
itk::GPUTranslationTransformBase< TScalarType, NDimensions >::Self
GPUTranslationTransformBase Self
Definition itkGPUTranslationTransformBase.h:45
itk::GPUTranslationTransformBase::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, NDimensions)
itk::GPUTranslationTransformBase::IsTranslationTransform
bool IsTranslationTransform() const override
Definition itkGPUTranslationTransformBase.h:53
itk::GPUTranslationTransformBase< TScalarType, NDimensions >::CPUOutputVectorType
Vector< TScalarType, NDimensions > CPUOutputVectorType
Definition itkGPUTranslationTransformBase.h:66
itk::GPUTranslationTransformBase::GPUTranslationTransformBase
GPUTranslationTransformBase(const Self &other)=delete
itk::GPUTranslationTransformBase::itkStaticConstMacro
itkStaticConstMacro(ParametersDimension, unsigned int, NDimensions)
itk::GPUTranslationTransformBase::GetCPUOffset
virtual const CPUOutputVectorType & GetCPUOffset() const =0
itk::GPUTranslationTransformBase::operator=
const Self & operator=(const Self &)=delete
itk::GPUTranslationTransformBase< TScalarType, NDimensions >::ScalarType
TScalarType ScalarType
Definition itkGPUTranslationTransformBase.h:59
itk::GPUTranslationTransformBase< TScalarType, NDimensions >::GPUSuperclass
GPUTransformBase GPUSuperclass
Definition itkGPUTranslationTransformBase.h:46
itk::GPUTranslationTransformBase::GetSourceCode
bool GetSourceCode(std::string &source) const override
itk::GPUTranslationTransformBase< TScalarType, NDimensions >::m_Sources
std::vector< std::string > m_Sources
Definition itkGPUTranslationTransformBase.h:90
itk::GPUTranslationTransformBase::GPUTranslationTransformBase
GPUTranslationTransformBase()
itk::GPUTranslationTransformBase::GetParametersDataManager
GPUDataManager::Pointer GetParametersDataManager() const override
itk::GPUTranslationTransformBase::~GPUTranslationTransformBase
~GPUTranslationTransformBase() override=default
itkGPUTransformBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43
itk::itkGPUKernelClassMacro
itkGPUKernelClassMacro(GPUBSplineTransformKernel)

Generated on 1768596610 for elastix by 1.15.0 |