Loading...
Searching...
No Matches
itkAffineDTI2DTransform.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 itkAffineDTI2DTransform_h
#define itkAffineDTI2DTransform_h
#include <iostream>
#include "itkAdvancedMatrixOffsetTransformBase.h"
namespace itk
{
template <class TScalarType = double>
// Data type for scalars (float or double)
class AffineDTI2DTransform : public AdvancedMatrixOffsetTransformBase<TScalarType, 2, 2>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AffineDTI2DTransform);
using Self = AffineDTI2DTransform;
using Superclass = AdvancedMatrixOffsetTransformBase<TScalarType, 2, 2>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(AffineDTI2DTransform, AdvancedMatrixOffsetTransformBase);
itkStaticConstMacro(SpaceDimension, unsigned int, 2);
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
itkStaticConstMacro(ParametersDimension, unsigned int, 7);
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:
AffineDTI2DTransform();
AffineDTI2DTransform(const MatrixType & matrix, const OutputPointType & offset);
AffineDTI2DTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims);
~AffineDTI2DTransform() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
void
SetVarAngleScaleShear(ScalarArrayType angle, ScalarArrayType shear, ScalarArrayType scale);
void
ComputeMatrix() override;
void
ComputeMatrixParameters() override;
virtual void
PrecomputeJacobianOfSpatialJacobian();
private:
ScalarArrayType m_Angle{};
ScalarArrayType m_Shear{};
ScalarArrayType m_Scale{};
};
} // namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkAffineDTI2DTransform.hxx"
#endif
#endif /* itkAffineDTI2DTransform_h */
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::InternalMatrixType
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::SpatialJacobianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::JacobianOfSpatialHessianType
std::vector< SpatialHessianType > JacobianOfSpatialHessianType
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::TranslationType
OutputVectorType TranslationType
Definition itkAdvancedMatrixOffsetTransformBase.h:149
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::OffsetType
OutputVectorType OffsetType
Definition itkAdvancedMatrixOffsetTransformBase.h:148
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::CenterType
InputPointType CenterType
Definition itkAdvancedMatrixOffsetTransformBase.h:147
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::JacobianOfSpatialJacobianType
std::vector< SpatialJacobianType > JacobianOfSpatialJacobianType
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::SpatialHessianType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::NonZeroJacobianIndicesType
std::vector< unsigned long > NonZeroJacobianIndicesType
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::InverseMatrixType
Matrix< TScalarType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Definition itkAdvancedMatrixOffsetTransformBase.h:144
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::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::AffineDTI2DTransform::Pointer
SmartPointer< Self > Pointer
Definition itkAffineDTI2DTransform.h:73
itk::AffineDTI2DTransform::ScalarArrayType
FixedArray< ScalarType > ScalarArrayType
Definition itkAffineDTI2DTransform.h:114
itk::AffineDTI2DTransform::AffineDTI2DTransform
AffineDTI2DTransform(const MatrixType &matrix, const OutputPointType &offset)
itk::AffineDTI2DTransform::PrecomputeJacobianOfSpatialJacobian
virtual void PrecomputeJacobianOfSpatialJacobian()
itk::AffineDTI2DTransform::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2)
itk::AffineDTI2DTransform::SetVarAngleScaleShear
void SetVarAngleScaleShear(ScalarArrayType angle, ScalarArrayType shear, ScalarArrayType scale)
itk::AffineDTI2DTransform::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::AffineDTI2DTransform::m_Shear
ScalarArrayType m_Shear
Definition itkAffineDTI2DTransform.h:161
itk::AffineDTI2DTransform::SetIdentity
void SetIdentity() override
itk::AffineDTI2DTransform::GetParameters
const ParametersType & GetParameters() const override
itk::AffineDTI2DTransform::m_Angle
ScalarArrayType m_Angle
Definition itkAffineDTI2DTransform.h:160
itk::AffineDTI2DTransform::AngleType
typename Superclass::ScalarType AngleType
Definition itkAffineDTI2DTransform.h:105
itk::AffineDTI2DTransform::m_Scale
ScalarArrayType m_Scale
Definition itkAffineDTI2DTransform.h:162
itk::AffineDTI2DTransform::AffineDTI2DTransform
AffineDTI2DTransform()
itk::AffineDTI2DTransform::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkAffineDTI2DTransform.h:74
itk::AffineDTI2DTransform::AffineDTI2DTransform
AffineDTI2DTransform(unsigned int outputSpaceDims, unsigned int paramsSpaceDims)
itk::AffineDTI2DTransform::Self
AffineDTI2DTransform Self
Definition itkAffineDTI2DTransform.h:71
itk::AffineDTI2DTransform::GetJacobian
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
itk::AffineDTI2DTransform::SetParameters
void SetParameters(const ParametersType &parameters) override
itk::AffineDTI2DTransform::itkStaticConstMacro
itkStaticConstMacro(ParametersDimension, unsigned int, 7)
itk::AffineDTI2DTransform::ComputeMatrixParameters
void ComputeMatrixParameters() override
itk::AffineDTI2DTransform::ComputeMatrix
void ComputeMatrix() override
itk::AffineDTI2DTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AffineDTI2DTransform)
itk::AffineDTI2DTransform::Superclass
AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 > Superclass
Definition itkAffineDTI2DTransform.h:72
itk::AffineDTI2DTransform::~AffineDTI2DTransform
~AffineDTI2DTransform() override=default
itk::AffineDTI2DTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, 2)
itk::AffineDTI2DTransform::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2)
itk::AffineDTI2DTransform::NonZeroJacobianIndicesType
std::vector< unsigned long > NonZeroJacobianIndicesType
itkAdvancedMatrixOffsetTransformBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |