Loading...
Searching...
No Matches
itkAdvancedVersorTransform.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.
*
*=========================================================================*/
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: itkAdvancedVersorTransform.h,v $
Date: $Date: 2006-08-09 04:35:32 $
Version: $Revision: 1.17 $
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef itkAdvancedVersorTransform_h
#define itkAdvancedVersorTransform_h
#include <iostream>
#include "itkAdvancedRigid3DTransform.h"
#include <vnl/vnl_quaternion.h>
#include "itkVersor.h"
namespace itk
{
template <class TScalarType = double>
// Data type for scalars (float or double)
class ITK_TEMPLATE_EXPORT AdvancedVersorTransform : public AdvancedRigid3DTransform<TScalarType>
{
public:
using Self = AdvancedVersorTransform;
using Superclass = AdvancedRigid3DTransform<TScalarType>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkTypeMacro(AdvancedVersorTransform, AdvancedRigid3DTransform);
itkNewMacro(Self);
itkStaticConstMacro(SpaceDimension, unsigned int, 3);
itkStaticConstMacro(InputSpaceDimension, unsigned int, 3);
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3);
itkStaticConstMacro(ParametersDimension, unsigned int, 3);
using typename Superclass::ParametersType;
using typename Superclass::NumberOfParametersType;
using typename Superclass::JacobianType;
using typename Superclass::ScalarType;
using typename Superclass::InputPointType;
using typename Superclass::OutputPointType;
using typename Superclass::InputVectorType;
using typename Superclass::OutputVectorType;
using typename Superclass::InputVnlVectorType;
using typename Superclass::OutputVnlVectorType;
using typename Superclass::InputCovariantVectorType;
using typename Superclass::OutputCovariantVectorType;
using typename Superclass::MatrixType;
using typename Superclass::InverseMatrixType;
using typename Superclass::CenterType;
using typename Superclass::OffsetType;
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 VnlQuaternionType = vnl_quaternion<TScalarType>;
using VersorType = Versor<TScalarType>;
using AxisType = typename VersorType::VectorType;
using AngleType = typename VersorType::ValueType;
void
SetParameters(const ParametersType & parameters) override;
const ParametersType &
GetParameters() const override;
void
SetRotation(const VersorType & versor);
void
SetRotation(const AxisType & axis, AngleType angle);
itkGetConstReferenceMacro(Versor, VersorType);
void
SetIdentity() override;
void
GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
protected:
AdvancedVersorTransform(const MatrixType & matrix, const OutputVectorType & offset);
AdvancedVersorTransform(unsigned int paramDims);
AdvancedVersorTransform();
~AdvancedVersorTransform() override = default;
void
SetVarVersor(const VersorType & newVersor)
{
m_Versor = newVersor;
}
void
PrintSelf(std::ostream & os, Indent indent) const override;
void
ComputeMatrix() override;
void
ComputeMatrixParameters() override;
private:
AdvancedVersorTransform(const Self & other); // Not implemented
const Self &
operator=(const Self &); // Not implemented
VersorType m_Versor{};
};
// class AdvancedVersorTransform
} // namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkAdvancedVersorTransform.hxx"
#endif
#endif /* itkAdvancedVersorTransform_h */
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 3, 3 >::OffsetType
OutputVectorType OffsetType
Definition itkAdvancedMatrixOffsetTransformBase.h:148
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 3, 3 >::CenterType
InputPointType CenterType
Definition itkAdvancedMatrixOffsetTransformBase.h:147
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 3, 3 >::InverseMatrixType
Matrix< TScalarType, Self::InputSpaceDimension, Self::OutputSpaceDimension > InverseMatrixType
Definition itkAdvancedMatrixOffsetTransformBase.h:144
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 3, 3 >::MatrixType
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
Definition itkAdvancedMatrixOffsetTransformBase.h:141
itk::AdvancedRigid3DTransform< TScalarType >::SpatialJacobianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
itk::AdvancedRigid3DTransform< TScalarType >::JacobianOfSpatialJacobianType
std::vector< SpatialJacobianType > JacobianOfSpatialJacobianType
itk::AdvancedRigid3DTransform< TScalarType >::SpatialHessianType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
itk::AdvancedRigid3DTransform< TScalarType >::JacobianOfSpatialHessianType
std::vector< SpatialHessianType > JacobianOfSpatialHessianType
itk::AdvancedRigid3DTransform< TScalarType >::InternalMatrixType
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
itk::AdvancedRigid3DTransform< double >::AdvancedRigid3DTransform
AdvancedRigid3DTransform(unsigned int paramDim)
itk::AdvancedRigid3DTransform< TScalarType >::NonZeroJacobianIndicesType
std::vector< unsigned long > NonZeroJacobianIndicesType
itk::AdvancedVersorTransform::AdvancedVersorTransform
AdvancedVersorTransform(unsigned int paramDims)
itk::AdvancedVersorTransform< TScalarType >::Superclass
AdvancedRigid3DTransform< TScalarType > Superclass
Definition itkAdvancedVersorTransform.h:72
itk::AdvancedVersorTransform< TScalarType >::AngleType
typename VersorType::ValueType AngleType
Definition itkAdvancedVersorTransform.h:119
itk::AdvancedVersorTransform< TScalarType >::AxisType
typename VersorType::VectorType AxisType
Definition itkAdvancedVersorTransform.h:118
itk::AdvancedVersorTransform::~AdvancedVersorTransform
~AdvancedVersorTransform() override=default
itk::AdvancedVersorTransform< TScalarType >::m_Versor
VersorType m_Versor
Definition itkAdvancedVersorTransform.h:189
itk::AdvancedVersorTransform::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::AdvancedVersorTransform::AdvancedVersorTransform
AdvancedVersorTransform(const Self &other)
itk::AdvancedVersorTransform< TScalarType >::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkAdvancedVersorTransform.h:74
itk::AdvancedVersorTransform< TScalarType >::Self
AdvancedVersorTransform Self
Definition itkAdvancedVersorTransform.h:71
itk::AdvancedVersorTransform::operator=
const Self & operator=(const Self &)
itk::AdvancedVersorTransform::GetJacobian
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
itk::AdvancedVersorTransform::GetParameters
const ParametersType & GetParameters() const override
itk::AdvancedVersorTransform::AdvancedVersorTransform
AdvancedVersorTransform(const MatrixType &matrix, const OutputVectorType &offset)
itk::AdvancedVersorTransform::AdvancedVersorTransform
AdvancedVersorTransform()
itk::AdvancedVersorTransform::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 3)
itk::AdvancedVersorTransform::SetIdentity
void SetIdentity() override
itk::AdvancedVersorTransform::SetRotation
void SetRotation(const AxisType &axis, AngleType angle)
itk::AdvancedVersorTransform::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, 3)
itk::AdvancedVersorTransform::itkStaticConstMacro
itkStaticConstMacro(ParametersDimension, unsigned int, 3)
itk::AdvancedVersorTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, 3)
itk::AdvancedVersorTransform::ComputeMatrix
void ComputeMatrix() override
itk::AdvancedVersorTransform::ComputeMatrixParameters
void ComputeMatrixParameters() override
itk::AdvancedVersorTransform< TScalarType >::VnlQuaternionType
vnl_quaternion< TScalarType > VnlQuaternionType
Definition itkAdvancedVersorTransform.h:114
itk::AdvancedVersorTransform< TScalarType >::VersorType
Versor< TScalarType > VersorType
Definition itkAdvancedVersorTransform.h:117
itk::AdvancedVersorTransform::SetParameters
void SetParameters(const ParametersType &parameters) override
itk::AdvancedVersorTransform< TScalarType >::Pointer
SmartPointer< Self > Pointer
Definition itkAdvancedVersorTransform.h:73
itk::AdvancedVersorTransform::SetVarVersor
void SetVarVersor(const VersorType &newVersor)
Definition itkAdvancedVersorTransform.h:163
itk::AdvancedVersorTransform::SetRotation
void SetRotation(const VersorType &versor)
itk::AdvancedVersorTransform< TScalarType >::NonZeroJacobianIndicesType
std::vector< unsigned long > NonZeroJacobianIndicesType
itkAdvancedRigid3DTransform.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |