#include <itkSimilarity2DTransform.h>
Inheritance diagram for itk::Similarity2DTransform< TScalarType >:


This transform applies a homogenous scale and rigid transform in 2D space. The transform is specified as a scale and rotation around a arbitrary center and is followed by a translation. given one angle for rotation, a homogeneous scale and a 2D offset for translation.
The parameters for this transform can be set either using individual Set methods or in serialized form using SetParameters() and SetFixedParameters().
The serialization of the optimizable parameters is an array of 3 elements ordered as follows: p[0] = scale p[1] = angle p[2] = x component of the translation p[3] = y component of the translation
The serialization of the fixed parameters is an array of 2 elements ordered as follows: p[0] = x coordinate of the center p[1] = y coordinate of the center
Access methods for the center, translation and underlying matrix offset vectors are documented in the superclass MatrixOffsetTransformBase.
Access methods for the angle are documented in superclass Rigid2DTransform.
Definition at line 62 of file itkSimilarity2DTransform.h.
typedef InputPointType itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::CenterType [inherited] |
Definition at line 159 of file itkMatrixOffsetTransformBase.h.
| typedef SmartPointer<const Self> itk::Similarity2DTransform< TScalarType >::ConstPointer |
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 70 of file itkSimilarity2DTransform.h.
| typedef Superclass::InputCovariantVectorType itk::Similarity2DTransform< TScalarType >::InputCovariantVectorType |
CovariantVector type.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 110 of file itkSimilarity2DTransform.h.
| typedef Superclass::InputPointType itk::Similarity2DTransform< TScalarType >::InputPointType |
Point type.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 102 of file itkSimilarity2DTransform.h.
| typedef Superclass::InputVectorType itk::Similarity2DTransform< TScalarType >::InputVectorType |
Vector type.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 106 of file itkSimilarity2DTransform.h.
| typedef Superclass::InputVnlVectorType itk::Similarity2DTransform< TScalarType >::InputVnlVectorType |
VnlVector type.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 114 of file itkSimilarity2DTransform.h.
typedef int itk::LightObject::InternalReferenceCountType [protected, inherited] |
Define the type of the reference count according to the target. This allows the use of atomic operations
Definition at line 139 of file itkLightObject.h.
typedef Matrix<TScalarType , itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)> itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::InverseMatrixType [inherited] |
Standard inverse matrix type for this class
Definition at line 157 of file itkMatrixOffsetTransformBase.h.
| typedef Superclass::JacobianType itk::Similarity2DTransform< TScalarType >::JacobianType |
Jacobian type.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 93 of file itkSimilarity2DTransform.h.
| typedef Superclass::MatrixType itk::Similarity2DTransform< TScalarType >::MatrixType |
Matrix type.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Definition at line 99 of file itkSimilarity2DTransform.h.
| typedef Superclass::OffsetType itk::Similarity2DTransform< TScalarType >::OffsetType |
Offset type.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 96 of file itkSimilarity2DTransform.h.
| typedef Superclass::OutputCovariantVectorType itk::Similarity2DTransform< TScalarType >::OutputCovariantVectorType |
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 111 of file itkSimilarity2DTransform.h.
| typedef Superclass::OutputPointType itk::Similarity2DTransform< TScalarType >::OutputPointType |
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 103 of file itkSimilarity2DTransform.h.
| typedef Superclass::OutputVectorType itk::Similarity2DTransform< TScalarType >::OutputVectorType |
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 107 of file itkSimilarity2DTransform.h.
| typedef Superclass::OutputVnlVectorType itk::Similarity2DTransform< TScalarType >::OutputVnlVectorType |
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 115 of file itkSimilarity2DTransform.h.
| typedef Superclass::ParametersType itk::Similarity2DTransform< TScalarType >::ParametersType |
Parameters type.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 90 of file itkSimilarity2DTransform.h.
| typedef SmartPointer<Self> itk::Similarity2DTransform< TScalarType >::Pointer |
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 69 of file itkSimilarity2DTransform.h.
| typedef Superclass::ScalarType itk::Similarity2DTransform< TScalarType >::ScalarType |
Scalar type.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 86 of file itkSimilarity2DTransform.h.
| typedef TScalarType itk::Similarity2DTransform< TScalarType >::ScaleType |
Definition at line 87 of file itkSimilarity2DTransform.h.
| typedef Similarity2DTransform itk::Similarity2DTransform< TScalarType >::Self |
Standard class typedefs.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 67 of file itkSimilarity2DTransform.h.
| typedef Rigid2DTransform< TScalarType > itk::Similarity2DTransform< TScalarType >::Superclass |
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
Definition at line 68 of file itkSimilarity2DTransform.h.
typedef OutputVectorType itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::TranslationType [inherited] |
Definition at line 163 of file itkMatrixOffsetTransformBase.h.
| itk::Similarity2DTransform< TScalarType >::Similarity2DTransform | ( | ) | [protected] |
| itk::Similarity2DTransform< TScalarType >::Similarity2DTransform | ( | unsigned int | spaceDimension, | |
| unsigned int | parametersDimension | |||
| ) | [protected] |
| itk::Similarity2DTransform< TScalarType >::~Similarity2DTransform | ( | ) | [inline, protected] |
Definition at line 185 of file itkSimilarity2DTransform.h.
| unsigned long itk::Object::AddObserver | ( | const EventObject & | event, | |
| Command * | ||||
| ) | const [inherited] |
| unsigned long itk::Object::AddObserver | ( | const EventObject & | event, | |
| Command * | ||||
| ) | [inherited] |
Allow people to add/remove/invoke observers (callbacks) to any ITK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and an itk::Command to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. The memory for the Command becomes the responsibility of this object, so don't pass the same instance of a command to two different objects
| Rigid2DTransform< TScalarType >::InputCovariantVectorType itk::Rigid2DTransform< TScalarType >::BackTransform | ( | const OutputCovariantVectorType & | vector | ) | const [inline, inherited] |
Definition at line 301 of file itkRigid2DTransform.h.
References itk::MatrixOffsetTransformBase< TScalarType, 2, 2 >::GetMatrix(), and itkWarningMacro.
| Rigid2DTransform< TScalarType >::InputVnlVectorType itk::Rigid2DTransform< TScalarType >::BackTransform | ( | const OutputVnlVectorType & | vector | ) | const [inline, inherited] |
Definition at line 287 of file itkRigid2DTransform.h.
References itk::MatrixOffsetTransformBase< TScalarType, 2, 2 >::GetInverseMatrix(), and itkWarningMacro.
| Rigid2DTransform< TScalarType >::InputVectorType itk::Rigid2DTransform< TScalarType >::BackTransform | ( | const OutputVectorType & | vector | ) | const [inline, inherited] |
Definition at line 274 of file itkRigid2DTransform.h.
References itk::MatrixOffsetTransformBase< TScalarType, 2, 2 >::GetInverseMatrix(), and itkWarningMacro.
| Rigid2DTransform< TScalarType >::InputPointType itk::Rigid2DTransform< TScalarType >::BackTransform | ( | const OutputPointType & | point | ) | const [inline, inherited] |
Back transform by an rigid transformation.
The BackTransform() methods are slated to be removed from ITK. Instead, please use GetInverse() or CloneInverseTo() to generate an inverse transform and then perform the transform using that inverted transform.
Definition at line 261 of file itkRigid2DTransform.h.
References itk::MatrixOffsetTransformBase< TScalarType, 2, 2 >::GetInverseMatrix(), itk::MatrixOffsetTransformBase< TScalarType, 2, 2 >::GetOffset(), and itkWarningMacro.
| static void itk::LightObject::BreakOnError | ( | ) | [static, inherited] |
This method is called when itkExceptionMacro executes. It allows the debugger to break on error.
| void itk::Similarity2DTransform< TScalarType >::CloneInverseTo | ( | Pointer & | newinverse | ) | const |
This method creates and returns a new Similarity2DTransform object which is the inverse of self.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
| void itk::Similarity2DTransform< TScalarType >::CloneTo | ( | Pointer & | clone | ) | const |
This method creates and returns a new Similarity2DTransform object which has the same parameters.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
| void itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::Compose | ( | const Self * | other, | |
| bool | pre = 0 | |||
| ) | [inherited] |
Compose with another MatrixOffsetTransformBase
This method composes self with another MatrixOffsetTransformBase of the same dimension, modifying self to be the composition of self and other. If the argument pre is true, then other is precomposed with self; that is, the resulting transformation consists of first applying other to the source, followed by self. If pre is false or omitted, then other is post-composed with self; that is the resulting transformation consists of first applying self to the source, followed by other. This updates the Translation based on current center.
| virtual void itk::Similarity2DTransform< TScalarType >::ComputeMatrix | ( | void | ) | [protected, virtual] |
Compute matrix from angle and scale. This is used in Set methods to update the underlying matrix whenever a transform parameter is changed.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
| virtual void itk::Similarity2DTransform< TScalarType >::ComputeMatrixParameters | ( | void | ) | [protected, virtual] |
Compute the angle and scale from the matrix. This is used to compute transform parameters from a given matrix. This is used in MatrixOffsetTransformBase::Compose() and MatrixOffsetTransformBase::GetInverse().
Reimplemented from itk::Rigid2DTransform< TScalarType >.
| virtual void itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::ComputeOffset | ( | void | ) | [protected, virtual, inherited] |
| virtual void itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::ComputeTranslation | ( | void | ) | [protected, virtual, inherited] |
| virtual LightObject::Pointer itk::Object::CreateAnother | ( | ) | const [virtual, inherited] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LightObject.
| virtual void itk::Object::DebugOff | ( | ) | const [virtual, inherited] |
Turn debugging output off.
| virtual void itk::Object::DebugOn | ( | ) | const [virtual, inherited] |
Turn debugging output on.
| virtual void itk::LightObject::Delete | ( | ) | [virtual, inherited] |
Delete an itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting.
| virtual const TScalarType& itk::Rigid2DTransform< TScalarType >::GetAngle | ( | ) | [virtual, inherited] |
| const InputPointType& itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::GetCenter | ( | void | ) | const [inline, inherited] |
Get center of rotation of the MatrixOffsetTransformBase
This method returns the point used as the fixed center of rotation for the MatrixOffsetTransformBase. To define an affine transform, you must set the matrix, center, and translation OR the matrix and offset
Definition at line 250 of file itkMatrixOffsetTransformBase.h.
| Command* itk::Object::GetCommand | ( | unsigned long | tag | ) | [inherited] |
Get the command associated with the given tag. NOTE: This returns a pointer to a Command, but it is safe to asign this to a Command::Pointer. Since Command inherits from LightObject, at this point in the code, only a pointer or a reference to the Command can be used.
| bool itk::Object::GetDebug | ( | ) | const [inherited] |
Get the value of the debug flag.
| virtual const ParametersType& itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::GetFixedParameters | ( | void | ) | const [virtual, inherited] |
Get the Fixed Parameters.
Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.
Reimplemented in itk::CenteredRigid2DTransform< TScalarType >, and itk::CenteredSimilarity2DTransform< TScalarType >.
| static bool itk::Object::GetGlobalWarningDisplay | ( | ) | [static, inherited] |
| unsigned int itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >::GetInputSpaceDimension | ( | void | ) | const [inline, virtual, inherited] |
Get the size of the input space
Implements itk::TransformBase.
Definition at line 87 of file itkTransform.h.
| bool itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::GetInverse | ( | Self * | inverse | ) | const [inherited] |
Create inverse of an affine transformation
This populates the parameters an affine transform such that the transform is the inverse of self. If self is not invertible, an exception is thrown. Note that by default the inverese transform is centered at the origin. If you need to compute the inverse centered at a point, p,
transform2->SetCenter( p ); transform1->GetInverse( transform2 );
transform2 will now contain the inverse of transform1 and will with its center set to p. Flipping the two statements will produce an incorrect transform.
Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.
| const InverseMatrixType& itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::GetInverseMatrix | ( | void | ) | const [inherited] |
Referenced by itk::Rigid2DTransform< TScalarType >::BackTransform().
| const JacobianType& itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::GetJacobian | ( | const InputPointType & | point | ) | const [virtual, inherited] |
Compute the Jacobian of the transformation
This method computes the Jacobian matrix of the transformation. given point or vector, returning the transformed point or vector. The rank of the Jacobian will also indicate if the transform is invertible at this point.
Reimplemented from itk::Transform< TScalarType, NInputDimensions, NOutputDimensions >.
| const JacobianType& itk::Similarity2DTransform< TScalarType >::GetJacobian | ( | const InputPointType & | point | ) | const |
This method computes the Jacobian matrix of the transformation at a given input point.
Reimplemented from itk::Rigid2DTransform< TScalarType >.
Reimplemented in itk::CenteredSimilarity2DTransform< TScalarType >.
| const MatrixType& itk::MatrixOffsetTransformBase< TScalarType , NInputDimensions, NOutputDimensions >::GetMatrix | ( | void | ) | const [inline, inherited] |
Get matrix of an MatrixOffsetTransformBase
This method returns the value of the matrix of the MatrixOffsetTransformBase. To define an affine transform, you must set the matrix, center, and translation OR the matrix and offset
Definition at line 193 of file itkMatrixOffsetTransformBase.h.
Referenced by itk::Rigid2DTransform< TScalarType >::BackTransform().
| const MetaDataDictionary& itk::Object::GetMetaDataDictionary | ( | void | ) | const [inherited] |
| MetaDataDictionary& itk::Object::GetMetaDataDictionary | ( | void | ) | [inherited] |
| virtual unsigned long itk::Object::GetMTime | ( | ) | const [virtual, inherited] |
Return this objects modified time.
Reimplemented in itk::ImageRegistrationMethod< TFixedImage, TMovingImage >, itk::ImageToSpatialObjectRegistrationMethod< TFixedImage, TMovingSpatialObject >, itk::MultiResolutionImageRegistrationMethod< TFixedImage, TMovingImage >, itk::PointSetToImageRegistrationMethod< TFixedPointSet, TMovingImage >, itk::PointSetToPointSetRegistrationMethod< TFixedPointSet, TMovingPointSet >, itk::DeformationFieldSource< TOutputImage >, itk::InverseDeformationFieldImageFilter< TInputImage, TOutputImage >, itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >, itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >, itk::BoundingBox< TPointIdentifier, VPointDimension, TCoordRep, TPointsContainer >, itk::ImageAdaptor< TImage, TAccessor >, itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >, itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >, itk::ImageSpatialObject< TDimension, TPixelType >, itk::MeshSpatialObject< TMesh >, itk::SceneSpatialObject< TSpaceDimension >, itk::SpatialObject< TDimension >, itk::ImageAdaptor< TImage, itk::Accessor::AsinPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AbsPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::LogPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToPhasePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::Log10PixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ExpPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AddPixelAccessor< TImage::PixelType > >, itk::ImageAdaptor< itk::VectorImage< TPixelType, Dimension >, itk::Accessor::VectorImageToImagePixelAccessor< TPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::RGBToVectorPixelAccessor< TImage::PixelType::ComponentType > >, itk::ImageAdaptor< TImage, itk::PixelAccessor< TInternalType, TExternalType > >, itk::ImageAdaptor< TImage, itk::Accessor::SqrtPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AcosPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToModulusPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ExpNegativePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::VectorToRGBPixelAccessor< TImage::PixelType::ValueType > >, itk::ImageAdaptor< TImage, itk::Accessor::TanPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToRealPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::RGBToLuminancePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AtanPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::SinPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToImaginaryPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::CosPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageSpatialObject< TDimension, unsig