Loading...
Searching...
No Matches
itkAffineLogTransform.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 itkAffineLogTransform_h
#define itkAffineLogTransform_h
#include <iostream>
#include "itkAdvancedMatrixOffsetTransformBase.h"
namespace itk
{
template <class TScalarType = double, unsigned int Dimension = 2> // Data type for scalars (float or double)
class AffineLogTransform : public AdvancedMatrixOffsetTransformBase<TScalarType, Dimension, Dimension>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AffineLogTransform);
using Self = AffineLogTransform;
using Superclass = AdvancedMatrixOffsetTransformBase<TScalarType, Dimension, Dimension>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(AffineLogTransform, AdvancedMatrixOffsetTransformBase);
itkStaticConstMacro(SpaceDimension, unsigned int, Dimension);
itkStaticConstMacro(OutputSpaceDimension, unsigned int, Dimension);
itkStaticConstMacro(InputSpaceDimension, unsigned int, Dimension);
itkStaticConstMacro(ParametersDimension, unsigned int, (Dimension + 1) * Dimension);
using typename Superclass::ParametersType;
using typename Superclass::NumberOfParametersType;
using typename Superclass::JacobianType;
using typename Superclass::ScalarType;
using typename Superclass::InputVectorType;
using typename Superclass::OutputVectorType;
using typename Superclass::InputCovariantVectorType;
using typename Superclass::OutputCovariantVectorType;
using typename Superclass::InputVnlVectorType;
using typename Superclass::OutputVnlVectorType;
using typename Superclass::InputPointType;
using typename Superclass::OutputPointType;
using typename Superclass::MatrixType;
using typename Superclass::InverseMatrixType;
using typename Superclass::CenterType;
using typename Superclass::TranslationType;
using typename Superclass::OffsetType;
using AngleType = typename Superclass::ScalarType;
using typename Superclass::NonZeroJacobianIndicesType;
using typename Superclass::SpatialJacobianType;
using typename Superclass::JacobianOfSpatialJacobianType;
using typename Superclass::SpatialHessianType;
using typename Superclass::JacobianOfSpatialHessianType;
using typename Superclass::InternalMatrixType;
using ScalarArrayType = FixedArray<ScalarType>;
void
SetParameters(const ParametersType & parameters) override;
const ParametersType &
GetParameters() const override;
void
GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
void
SetIdentity() override;
protected:
AffineLogTransform();
AffineLogTransform(const MatrixType & matrix, const OutputPointType & offset);
AffineLogTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims);
~AffineLogTransform() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
virtual void
PrecomputeJacobianOfSpatialJacobian();
private:
MatrixType m_MatrixLogDomain{};
};
} // namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkAffineLogTransform.hxx"
#endif
#endif /* itkAffineLogTransform_h */
itk::AdvancedMatrixOffsetTransformBase::InternalMatrixType
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
Definition itkAdvancedTransform.h:140
itk::AdvancedMatrixOffsetTransformBase::SpatialJacobianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
Definition itkAdvancedTransform.h:134
itk::AdvancedMatrixOffsetTransformBase::JacobianOfSpatialHessianType
std::vector< SpatialHessianType > JacobianOfSpatialHessianType
Definition itkAdvancedTransform.h:139
itk::AdvancedMatrixOffsetTransformBase::TranslationType
OutputVectorType TranslationType
Definition itkAdvancedMatrixOffsetTransformBase.h:149
itk::AdvancedMatrixOffsetTransformBase::OffsetType
OutputVectorType OffsetType
Definition itkAdvancedMatrixOffsetTransformBase.h:148
itk::AdvancedMatrixOffsetTransformBase::CenterType
InputPointType CenterType
Definition itkAdvancedMatrixOffsetTransformBase.h:147
itk::AdvancedMatrixOffsetTransformBase::JacobianOfSpatialJacobianType
std::vector< SpatialJacobianType > JacobianOfSpatialJacobianType
Definition itkAdvancedTransform.h:135
itk::AdvancedMatrixOffsetTransformBase::SpatialHessianType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
Definition itkAdvancedTransform.h:137
itk::AdvancedMatrixOffsetTransformBase::NonZeroJacobianIndicesType
std::vector< unsigned long > NonZeroJacobianIndicesType
Definition itkAdvancedTransform.h:133
itk::AdvancedMatrixOffsetTransformBase::InverseMatrixType
Matrix< TScalarType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Definition itkAdvancedMatrixOffsetTransformBase.h:144
itk::AdvancedMatrixOffsetTransformBase::MatrixType
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
Definition itkAdvancedMatrixOffsetTransformBase.h:141
itk::AdvancedMatrixOffsetTransformBase< double, 2, 2 >::AdvancedMatrixOffsetTransformBase
AdvancedMatrixOffsetTransformBase(const unsigned int paramDims=ParametersDimension)
itk::AffineLogTransform::AffineLogTransform
AffineLogTransform()
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension >::Self
AffineLogTransform Self
Definition itkAffineLogTransform.h:39
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension >::m_MatrixLogDomain
MatrixType m_MatrixLogDomain
Definition itkAffineLogTransform.h:112
itk::AffineLogTransform::itkStaticConstMacro
itkStaticConstMacro(ParametersDimension, unsigned int,(Dimension+1) *Dimension)
itk::AffineLogTransform::SetParameters
void SetParameters(const ParametersType &parameters) override
itk::AffineLogTransform::GetJacobian
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
itk::AffineLogTransform::~AffineLogTransform
~AffineLogTransform() override=default
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension >::Pointer
SmartPointer< Self > Pointer
Definition itkAffineLogTransform.h:41
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension >::ScalarArrayType
FixedArray< ScalarType > ScalarArrayType
Definition itkAffineLogTransform.h:82
itk::AffineLogTransform::AffineLogTransform
AffineLogTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims)
itk::AffineLogTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AffineLogTransform)
itk::AffineLogTransform::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::AffineLogTransform::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, Dimension)
itk::AffineLogTransform::GetParameters
const ParametersType & GetParameters() const override
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension >::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkAffineLogTransform.h:42
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension >::AngleType
typename Superclass::ScalarType AngleType
Definition itkAffineLogTransform.h:73
itk::AffineLogTransform::AffineLogTransform
AffineLogTransform(const MatrixType &matrix, const OutputPointType &offset)
itk::AffineLogTransform::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, Dimension)
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension >::Superclass
AdvancedMatrixOffsetTransformBase< typename elx::TransformBase< TElastix >::CoordRepType, Dimension, Dimension > Superclass
Definition itkAffineLogTransform.h:40
itk::AffineLogTransform::PrecomputeJacobianOfSpatialJacobian
virtual void PrecomputeJacobianOfSpatialJacobian()
itk::AffineLogTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, Dimension)
itk::AffineLogTransform< typename elx::TransformBase< TElastix >::CoordRepType, Self::SpaceDimension >::NonZeroJacobianIndicesType
std::vector< unsigned long > NonZeroJacobianIndicesType
itk::AffineLogTransform::SetIdentity
void SetIdentity() override
itkAdvancedMatrixOffsetTransformBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |