Loading...
Searching...
No Matches
itkAdvancedSimilarity2DTransform.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: itkAdvancedSimilarity2DTransform.h,v $
Date: $Date: 2006-06-07 16:06:32 $
Version: $Revision: 1.11 $
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 itkAdvancedSimilarity2DTransform_h
#define itkAdvancedSimilarity2DTransform_h
#include <iostream>
#include "itkAdvancedRigid2DTransform.h"
namespace itk
{
template <class TScalarType = double>
// Data type for scalars (float or double)
class ITK_TEMPLATE_EXPORT AdvancedSimilarity2DTransform : public AdvancedRigid2DTransform<TScalarType>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AdvancedSimilarity2DTransform);
using Self = AdvancedSimilarity2DTransform;
using Superclass = AdvancedRigid2DTransform<TScalarType>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(AdvancedSimilarity2DTransform, AdvancedRigid2DTransform);
itkStaticConstMacro(SpaceDimension, unsigned int, 2);
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2);
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2);
itkStaticConstMacro(ParametersDimension, unsigned int, 4);
using typename Superclass::ScalarType;
using ScaleType = TScalarType;
using typename Superclass::ParametersType;
using typename Superclass::NumberOfParametersType;
using typename Superclass::JacobianType;
using typename Superclass::OffsetType;
using typename Superclass::MatrixType;
using typename Superclass::InputPointType;
using typename Superclass::OutputPointType;
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::NonZeroJacobianIndicesType;
using typename Superclass::SpatialJacobianType;
using typename Superclass::JacobianOfSpatialJacobianType;
using typename Superclass::SpatialHessianType;
using typename Superclass::JacobianOfSpatialHessianType;
using typename Superclass::InternalMatrixType;
void
SetScale(ScaleType scale);
itkGetConstReferenceMacro(Scale, ScaleType);
void
SetParameters(const ParametersType & parameters) override;
const ParametersType &
GetParameters() const override;
void
GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override;
void
SetIdentity() override;
void
SetMatrix(const MatrixType & matrix) override;
protected:
AdvancedSimilarity2DTransform();
~AdvancedSimilarity2DTransform() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
void
ComputeMatrix() override;
void
ComputeMatrixParameters() override;
void
SetVarScale(ScaleType scale)
{
m_Scale = scale;
}
void
PrecomputeJacobianOfSpatialJacobian() override;
private:
ScaleType m_Scale{};
};
// class AdvancedSimilarity2DTransform
} // namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkAdvancedSimilarity2DTransform.hxx"
#endif
#endif /* itkAdvancedSimilarity2DTransform_h */
TScalarType
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::OffsetType
OutputVectorType OffsetType
Definition itkAdvancedMatrixOffsetTransformBase.h:148
itk::AdvancedMatrixOffsetTransformBase< TScalarType, 2, 2 >::MatrixType
Matrix< TScalarType, Self::OutputSpaceDimension, Self::InputSpaceDimension > MatrixType
Definition itkAdvancedMatrixOffsetTransformBase.h:141
itk::AdvancedRigid2DTransform< TScalarType >::SpatialJacobianType
Matrix< ScalarType, OutputSpaceDimension, InputSpaceDimension > SpatialJacobianType
itk::AdvancedRigid2DTransform< double >::AdvancedRigid2DTransform
AdvancedRigid2DTransform()
itk::AdvancedRigid2DTransform< TScalarType >::JacobianOfSpatialJacobianType
std::vector< SpatialJacobianType > JacobianOfSpatialJacobianType
itk::AdvancedRigid2DTransform< TScalarType >::SpatialHessianType
FixedArray< Matrix< ScalarType, InputSpaceDimension, InputSpaceDimension >, OutputSpaceDimension > SpatialHessianType
itk::AdvancedRigid2DTransform< TScalarType >::JacobianOfSpatialHessianType
std::vector< SpatialHessianType > JacobianOfSpatialHessianType
itk::AdvancedRigid2DTransform< TScalarType >::InternalMatrixType
typename SpatialJacobianType::InternalMatrixType InternalMatrixType
itk::AdvancedRigid2DTransform< TScalarType >::NonZeroJacobianIndicesType
std::vector< unsigned long > NonZeroJacobianIndicesType
itk::AdvancedSimilarity2DTransform::SetScale
void SetScale(ScaleType scale)
itk::AdvancedSimilarity2DTransform::GetJacobian
void GetJacobian(const InputPointType &, JacobianType &, NonZeroJacobianIndicesType &) const override
itk::AdvancedSimilarity2DTransform::Superclass
AdvancedRigid2DTransform< TScalarType > Superclass
Definition itkAdvancedSimilarity2DTransform.h:85
itk::AdvancedSimilarity2DTransform::~AdvancedSimilarity2DTransform
~AdvancedSimilarity2DTransform() override=default
itk::AdvancedSimilarity2DTransform::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, 2)
itk::AdvancedSimilarity2DTransform::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::AdvancedSimilarity2DTransform::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkAdvancedSimilarity2DTransform.h:87
itk::AdvancedSimilarity2DTransform::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AdvancedSimilarity2DTransform)
itk::AdvancedSimilarity2DTransform::PrecomputeJacobianOfSpatialJacobian
void PrecomputeJacobianOfSpatialJacobian() override
itk::AdvancedSimilarity2DTransform::m_Scale
ScaleType m_Scale
Definition itkAdvancedSimilarity2DTransform.h:231
itk::AdvancedSimilarity2DTransform::SetParameters
void SetParameters(const ParametersType &parameters) override
itk::AdvancedSimilarity2DTransform::SetIdentity
void SetIdentity() override
itk::AdvancedSimilarity2DTransform::itkStaticConstMacro
itkStaticConstMacro(ParametersDimension, unsigned int, 4)
itk::AdvancedSimilarity2DTransform::ComputeMatrix
void ComputeMatrix() override
itk::AdvancedSimilarity2DTransform::ScaleType
TScalarType ScaleType
Definition itkAdvancedSimilarity2DTransform.h:103
itk::AdvancedSimilarity2DTransform::SetMatrix
void SetMatrix(const MatrixType &matrix) override
itk::AdvancedSimilarity2DTransform::Self
AdvancedSimilarity2DTransform Self
Definition itkAdvancedSimilarity2DTransform.h:84
itk::AdvancedSimilarity2DTransform::ComputeMatrixParameters
void ComputeMatrixParameters() override
itk::AdvancedSimilarity2DTransform::Pointer
SmartPointer< Self > Pointer
Definition itkAdvancedSimilarity2DTransform.h:86
itk::AdvancedSimilarity2DTransform::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, 2)
itk::AdvancedSimilarity2DTransform::GetParameters
const ParametersType & GetParameters() const override
itk::AdvancedSimilarity2DTransform::SetVarScale
void SetVarScale(ScaleType scale)
Definition itkAdvancedSimilarity2DTransform.h:221
itk::AdvancedSimilarity2DTransform::NonZeroJacobianIndicesType
std::vector< unsigned long > NonZeroJacobianIndicesType
itk::AdvancedSimilarity2DTransform::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, 2)
itk::AdvancedSimilarity2DTransform::AdvancedSimilarity2DTransform
AdvancedSimilarity2DTransform()
itkAdvancedRigid2DTransform.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |