Loading...
Searching...
No Matches
itkAdvancedRigid2DTransform.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: itkAdvancedRigid2DTransform.h,v $
Date: $Date: 2009-01-14 18:39:05 $
Version: $Revision: 1.22 $
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 itkAdvancedRigid2DTransform_h
#define itkAdvancedRigid2DTransform_h
#include <iostream>
#include "itkAdvancedMatrixOffsetTransformBase.h"
#include "itkMacro.h"
namespace itk
{
template <class TScalarType = double>
// Data type for scalars (float or double)
class ITK_TEMPLATE_EXPORT AdvancedRigid2DTransform
: public AdvancedMatrixOffsetTransformBase<TScalarType, 2, 2> // Dimensions of input and output spaces
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AdvancedRigid2DTransform);
using Self = AdvancedRigid2DTransform;
using Superclass = AdvancedMatrixOffsetTransformBase<TScalarType, 2, 2>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkTypeMacro(AdvancedRigid2DTransform, AdvancedMatrixOffsetTransformBase);
itkNewMacro(Self);
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
itkStaticConstMacro(ParametersDimension, unsigned int, 3);
using typename Superclass::ScalarType;
using typename Superclass::ParametersType;
using typename Superclass::NumberOfParametersType;
using typename Superclass::JacobianType;
using typename Superclass::MatrixType;
using typename Superclass::OffsetType;
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::NonZeroJacobianIndicesType;
using typename Superclass::SpatialJacobianType;
using typename Superclass::JacobianOfSpatialJacobianType;
using typename Superclass::SpatialHessianType;
using typename Superclass::JacobianOfSpatialHessianType;
using typename Superclass::InternalMatrixType;
void
SetMatrix(const MatrixType & matrix) override;
void
SetAngle(TScalarType angle);
itkGetConstReferenceMacro(Angle, TScalarType);
void
SetParameters(const ParametersType & parameters) override;
const ParametersType &
GetParameters() const override;
void
GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
void
SetIdentity() override;
protected:
AdvancedRigid2DTransform();
explicit AdvancedRigid2DTransform(unsigned int parametersDimension);
~AdvancedRigid2DTransform() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
void
ComputeMatrix() override;
void
ComputeMatrixParameters() override;
void
SetVarAngle(TScalarType angle)
{
m_Angle = angle;
}
virtual void
PrecomputeJacobianOfSpatialJacobian();
private:
TScalarType m_Angle{};
};
} // namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkAdvancedRigid2DTransform.hxx"
#endif
#endif /* itkAdvancedRigid2DTransform_h */
TScalarType
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 >::OffsetType
OutputVectorType OffsetType
Definition itkAdvancedMatrixOffsetTransformBase.h:148
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 >::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::AdvancedRigid2DTransform::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::AdvancedRigid2DTransform::Superclass
AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 > Superclass
Definition itkAdvancedRigid2DTransform.h:83
itk::AdvancedRigid2DTransform::PrecomputeJacobianOfSpatialJacobian
virtual void PrecomputeJacobianOfSpatialJacobian()
itk::AdvancedRigid2DTransform::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2)
itk::AdvancedRigid2DTransform::ComputeMatrixParameters
void ComputeMatrixParameters() override
itk::AdvancedRigid2DTransform::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkAdvancedRigid2DTransform.h:85
itk::AdvancedRigid2DTransform< TScalarType >::m_Angle
TScalarType m_Angle
Definition itkAdvancedRigid2DTransform.h:228
itk::AdvancedRigid2DTransform::AdvancedRigid2DTransform
AdvancedRigid2DTransform()
itk::AdvancedRigid2DTransform::SetParameters
void SetParameters(const ParametersType &parameters) override
itk::AdvancedRigid2DTransform::GetParameters
const ParametersType & GetParameters() const override
itk::AdvancedRigid2DTransform::GetJacobian
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
itk::AdvancedRigid2DTransform::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2)
itk::AdvancedRigid2DTransform::Self
AdvancedRigid2DTransform Self
Definition itkAdvancedRigid2DTransform.h:82
itk::AdvancedRigid2DTransform::Pointer
SmartPointer< Self > Pointer
Definition itkAdvancedRigid2DTransform.h:84
itk::AdvancedRigid2DTransform::SetAngle
void SetAngle(TScalarType angle)
itk::AdvancedRigid2DTransform::AdvancedRigid2DTransform
AdvancedRigid2DTransform(unsigned int parametersDimension)
itk::AdvancedRigid2DTransform::ComputeMatrix
void ComputeMatrix() override
itk::AdvancedRigid2DTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AdvancedRigid2DTransform)
itk::AdvancedRigid2DTransform::SetMatrix
void SetMatrix(const MatrixType &matrix) override
itk::AdvancedRigid2DTransform::SetVarAngle
void SetVarAngle(TScalarType angle)
Definition itkAdvancedRigid2DTransform.h:218
itk::AdvancedRigid2DTransform::~AdvancedRigid2DTransform
~AdvancedRigid2DTransform() override=default
itk::AdvancedRigid2DTransform::itkStaticConstMacro
itkStaticConstMacro(ParametersDimension, unsigned int, 3)
itk::AdvancedRigid2DTransform::SetIdentity
void SetIdentity() override
itk::AdvancedRigid2DTransform< TScalarType >::NonZeroJacobianIndicesType
std::vector< unsigned long > NonZeroJacobianIndicesType
itkAdvancedMatrixOffsetTransformBase.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |