Loading...
Searching...
No Matches
itkGPUCompositeTransformBase.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 itkGPUCompositeTransformBase_h
#define itkGPUCompositeTransformBase_h
#include "itkGPUTransformBase.h"
#include "itkTransform.h"
namespace itk
{
template <typename TScalarType = float, unsigned int NDimensions = 3>
class ITK_TEMPLATE_EXPORT GPUCompositeTransformBase : public GPUTransformBase
{
public:
using Self = GPUCompositeTransformBase;
using GPUSuperclass = GPUTransformBase;
itkTypeMacro(GPUCompositeTransformBase, GPUSuperclass);
using ScalarType = TScalarType;
using TransformType = Transform<TScalarType, NDimensions, NDimensions>;
using TransformTypePointer = typename TransformType::Pointer;
using TransformTypeConstPointer = typename TransformType::ConstPointer;
itkStaticConstMacro(InputSpaceDimension, unsigned int, NDimensions);
itkStaticConstMacro(OutputSpaceDimension, unsigned int, NDimensions);
virtual SizeValueType
GetNumberOfTransforms() const = 0;
virtual const TransformTypePointer
GetNthTransform(SizeValueType n) const = 0;
virtual bool
HasIdentityTransform() const;
virtual bool
HasMatrixOffsetTransform() const;
virtual bool
HasTranslationTransform() const;
virtual bool
HasBSplineTransform() const;
virtual bool
IsIdentityTransform(const std::size_t index) const;
virtual bool
IsMatrixOffsetTransform(const std::size_t index) const;
virtual bool
IsTranslationTransform(const std::size_t index) const;
virtual bool
IsBSplineTransform(const std::size_t index) const;
protected:
GPUCompositeTransformBase() = default;
~GPUCompositeTransformBase() override = default;
bool
GetSourceCode(std::string & source) const override;
GPUDataManager::Pointer
GetParametersDataManager(const std::size_t index) const override;
private:
GPUCompositeTransformBase(const Self & other) = delete;
const Self &
operator=(const Self &) = delete;
bool
IsIdentityTransform(const std::size_t index, const bool loadSource, std::string & source) const;
bool
IsMatrixOffsetTransform(const std::size_t index, const bool loadSource, std::string & source) const;
bool
IsTranslationTransform(const std::size_t index, const bool loadSource, std::string & source) const;
bool
IsBSplineTransform(const std::size_t index, const bool loadSource, std::string & source) const;
};
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkGPUCompositeTransformBase.hxx"
#endif
#endif /* itkGPUCompositeTransformBase_h */
TScalarType
itk::GPUCompositeTransformBase::GetParametersDataManager
GPUDataManager::Pointer GetParametersDataManager(const std::vcl_size_t index) const override
itk::GPUCompositeTransformBase< TScalarType, NDimensions >::TransformTypeConstPointer
typename TransformType::ConstPointer TransformTypeConstPointer
Definition itkGPUCompositeTransformBase.h:52
itk::GPUCompositeTransformBase::HasIdentityTransform
virtual bool HasIdentityTransform() const
itk::GPUCompositeTransformBase::GetNumberOfTransforms
virtual SizeValueType GetNumberOfTransforms() const =0
itk::GPUCompositeTransformBase::GetNthTransform
virtual const TransformTypePointer GetNthTransform(SizeValueType n) const =0
itk::GPUCompositeTransformBase::IsBSplineTransform
bool IsBSplineTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, NDimensions)
itk::GPUCompositeTransformBase::operator=
const Self & operator=(const Self &)=delete
itk::GPUCompositeTransformBase::HasMatrixOffsetTransform
virtual bool HasMatrixOffsetTransform() const
itk::GPUCompositeTransformBase< TScalarType, NDimensions >::ScalarType
TScalarType ScalarType
Definition itkGPUCompositeTransformBase.h:49
itk::GPUCompositeTransformBase::IsIdentityTransform
virtual bool IsIdentityTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase< TScalarType, NDimensions >::GPUSuperclass
GPUTransformBase GPUSuperclass
Definition itkGPUCompositeTransformBase.h:43
itk::GPUCompositeTransformBase::HasBSplineTransform
virtual bool HasBSplineTransform() const
itk::GPUCompositeTransformBase::GetSourceCode
bool GetSourceCode(std::string &source) const override
itk::GPUCompositeTransformBase::HasTranslationTransform
virtual bool HasTranslationTransform() const
itk::GPUCompositeTransformBase::IsBSplineTransform
virtual bool IsBSplineTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::IsIdentityTransform
bool IsIdentityTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase< TScalarType, NDimensions >::TransformTypePointer
typename TransformType::Pointer TransformTypePointer
Definition itkGPUCompositeTransformBase.h:51
itk::GPUCompositeTransformBase::IsMatrixOffsetTransform
virtual bool IsMatrixOffsetTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase::IsTranslationTransform
virtual bool IsTranslationTransform(const std::vcl_size_t index) const
itk::GPUCompositeTransformBase< TScalarType, NDimensions >::TransformType
Transform< TScalarType, NDimensions, NDimensions > TransformType
Definition itkGPUCompositeTransformBase.h:50
itk::GPUCompositeTransformBase::GPUCompositeTransformBase
GPUCompositeTransformBase(const Self &other)=delete
itk::GPUCompositeTransformBase< TScalarType, NDimensions >::Self
GPUCompositeTransformBase Self
Definition itkGPUCompositeTransformBase.h:42
itk::GPUCompositeTransformBase::IsTranslationTransform
bool IsTranslationTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::GPUCompositeTransformBase
GPUCompositeTransformBase()=default
itk::GPUCompositeTransformBase::IsMatrixOffsetTransform
bool IsMatrixOffsetTransform(const std::vcl_size_t index, const bool loadSource, std::string &source) const
itk::GPUCompositeTransformBase::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, NDimensions)
itk::GPUCompositeTransformBase::~GPUCompositeTransformBase
~GPUCompositeTransformBase() override=default
itk::GPUDataManager::Pointer
SmartPointer< Self > Pointer
Definition itkGPUDataManager.h:74
itk::GPUTransformBase::GPUTransformBase
GPUTransformBase()
itkGPUTransformBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |