Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
BIAS::TextureTransformDisplacement Class Reference

analytic properties of 2D image displacement More...

#include <Image/TextureTransformDisplacement.hh>

+ Inheritance diagram for BIAS::TextureTransformDisplacement:

Public Member Functions

virtual
TextureTransformDisplacement
Clone () const
 virtual covariant copy constructor, caller must eventually destroy the created object More...
 
void ComposeWithInverseDeltaP (const Vector< double > &deltaP)
 concatenate *this and an inverse transform with param deltaP and save new parameter vector to *this. More...
 
virtual Vector< double > GetInverseParameters () const
 returns parameter vector which undoes the current warp More...
 
void GetParameters (Vector< double > &p) const
 get the current parameter vector More...
 
int MapBackward (const HomgPoint2D &sink, HomgPoint2D &src) const
 map a point in image "source" to a point in image "sink" More...
 
int MapForward (const HomgPoint2D &src, HomgPoint2D &sink) const
 map a point in image "source" to a point in image "sink" More...
 
int ParameterInversionJacobian (Matrix< double > &Jac) const
 compute parameters for inverse operation and obtain the jacobian of the inverse parameters with respect to the original parameters for error propagation More...
 
int ParameterJacobianBackward (Matrix< double > &Jac, const HomgPoint2D &src)
 transformed position change when parameters change More...
 
int ParameterJacobianForward (Matrix< double > &Jac, const HomgPoint2D &src)
 transformed position change when parameters change More...
 
bool ParameterJacobianIsConstant () const
 return true, if the parameter jacobian does not depend on the image position More...
 
void SetParameters (const Vector< double > &p)
 dx,dy More...
 
int TextureJacobianBackward (const HomgPoint2D &sink, Matrix2x2< double > &Jac) const
 shape change of the local region when mapping backward More...
 
int TextureJacobianForward (const HomgPoint2D &src, Matrix2x2< double > &Jac) const
 shape change of the local region when mapping forward More...
 
virtual bool TextureJacobianIsConstant () const
 return true if the texture jacobian does not depend on the image position More...
 
 TextureTransformDisplacement ()
 
virtual ~TextureTransformDisplacement ()
 

Protected Attributes

Vector< double > P_
 current set of parameters, see SetParameters for meaning More...
 

Detailed Description

analytic properties of 2D image displacement

analytic properties of similarity image warp (scale+rot.

See BIAS::TextureTransform for explanation of methods.

Author
koeser 01/2008

+displ.)

See BIAS::TextureTransform for explanation of methods.

Author
koeser 01/2008
Examples:
ExampleAlignment.cpp.

Definition at line 40 of file TextureTransformDisplacement.hh.

Constructor & Destructor Documentation

BIAS::TextureTransformDisplacement::TextureTransformDisplacement ( )
inline

Definition at line 42 of file TextureTransformDisplacement.hh.

References TNT::Vector< T >::newsize(), and BIAS::TextureTransform::P_.

Referenced by Clone().

virtual BIAS::TextureTransformDisplacement::~TextureTransformDisplacement ( )
inlinevirtual

Definition at line 48 of file TextureTransformDisplacement.hh.

Member Function Documentation

virtual TextureTransformDisplacement* BIAS::TextureTransformDisplacement::Clone ( ) const
inlinevirtual

virtual covariant copy constructor, caller must eventually destroy the created object

Implements BIAS::TextureTransform.

Definition at line 113 of file TextureTransformDisplacement.hh.

References TextureTransformDisplacement().

void BIAS::TextureTransformDisplacement::ComposeWithInverseDeltaP ( const Vector< double > &  deltaP)
inlinevirtual

concatenate *this and an inverse transform with param deltaP and save new parameter vector to *this.

Apart from very simple transformations like displacement THIS IS NOT A SIMPLE ADDITION but rather a multiplication-like operation!

This function is particularly important for inverse compositional image alignment (KLT)

Implements BIAS::TextureTransform.

Definition at line 100 of file TextureTransformDisplacement.hh.

References BIAS::TextureTransform::P_.

virtual Vector<double> BIAS::TextureTransform::GetInverseParameters ( ) const
inlinevirtualinherited

returns parameter vector which undoes the current warp

Reimplemented in BIAS::TextureTransformAffine.

Examples:
ExampleAlignment.cpp.

Definition at line 130 of file TextureTransform.hh.

Referenced by BIAS::ImageAlignment::Align().

void BIAS::TextureTransform::GetParameters ( Vector< double > &  p) const
inlineinherited

get the current parameter vector

Definition at line 83 of file TextureTransform.hh.

Referenced by BIAS::ImageAlignment::Align().

int BIAS::TextureTransformDisplacement::MapBackward ( const HomgPoint2D sink,
HomgPoint2D source 
) const
inlinevirtual

map a point in image "source" to a point in image "sink"

Implements BIAS::TextureTransform.

Definition at line 57 of file TextureTransformDisplacement.hh.

References BIAS::TextureTransform::P_.

int BIAS::TextureTransformDisplacement::MapForward ( const HomgPoint2D src,
HomgPoint2D sink 
) const
inlinevirtual

map a point in image "source" to a point in image "sink"

Implements BIAS::TextureTransform.

Definition at line 50 of file TextureTransformDisplacement.hh.

References BIAS::TextureTransform::P_.

int BIAS::TextureTransformDisplacement::ParameterInversionJacobian ( Matrix< double > &  Jac) const
inlinevirtual

compute parameters for inverse operation and obtain the jacobian of the inverse parameters with respect to the original parameters for error propagation

Reimplemented from BIAS::TextureTransform.

Definition at line 105 of file TextureTransformDisplacement.hh.

References TNT::Matrix< T >::newsize().

int BIAS::TextureTransformDisplacement::ParameterJacobianBackward ( Matrix< double > &  Jac,
const HomgPoint2D sink 
)
inlinevirtual

transformed position change when parameters change

Reimplemented from BIAS::TextureTransform.

Definition at line 85 of file TextureTransformDisplacement.hh.

References TNT::Matrix< T >::newsize().

int BIAS::TextureTransformDisplacement::ParameterJacobianForward ( Matrix< double > &  Jac,
const HomgPoint2D src 
)
inlinevirtual

transformed position change when parameters change

Reimplemented from BIAS::TextureTransform.

Definition at line 78 of file TextureTransformDisplacement.hh.

References TNT::Matrix< T >::newsize().

bool BIAS::TextureTransformDisplacement::ParameterJacobianIsConstant ( ) const
inlinevirtual

return true, if the parameter jacobian does not depend on the image position

Implements BIAS::TextureTransform.

Definition at line 92 of file TextureTransformDisplacement.hh.

void BIAS::TextureTransformDisplacement::SetParameters ( const Vector< double > &  p)
inlinevirtual
int BIAS::TextureTransformDisplacement::TextureJacobianBackward ( const HomgPoint2D sink,
Matrix2x2< double > &  Jac 
) const
inlinevirtual

shape change of the local region when mapping backward

Reimplemented from BIAS::TextureTransform.

Definition at line 70 of file TextureTransformDisplacement.hh.

References BIAS::Matrix2x2< T >::SetIdentity().

int BIAS::TextureTransformDisplacement::TextureJacobianForward ( const HomgPoint2D src,
Matrix2x2< double > &  Jac 
) const
inlinevirtual

shape change of the local region when mapping forward

Reimplemented from BIAS::TextureTransform.

Definition at line 64 of file TextureTransformDisplacement.hh.

References BIAS::Matrix2x2< T >::SetIdentity().

virtual bool BIAS::TextureTransformDisplacement::TextureJacobianIsConstant ( ) const
inlinevirtual

return true if the texture jacobian does not depend on the image position

Implements BIAS::TextureTransform.

Definition at line 76 of file TextureTransformDisplacement.hh.

Member Data Documentation

Vector<double> BIAS::TextureTransform::P_
protectedinherited

current set of parameters, see SetParameters for meaning

Definition at line 145 of file TextureTransform.hh.

Referenced by BIAS::TextureTransformDisparity::ComposeWithInverseDeltaP(), ComposeWithInverseDeltaP(), BIAS::TextureTransformRotation::ComposeWithInverseDeltaP(), BIAS::TextureTransformEuclidian::ComposeWithInverseDeltaP(), BIAS::TextureTransformDisparity::MapBackward(), MapBackward(), BIAS::TextureTransformEuclidian::MapBackward(), BIAS::TextureTransformDisparity::MapForward(), MapForward(), BIAS::TextureTransformEuclidian::ParameterInversionJacobian(), BIAS::TextureTransformRotation::ParameterJacobianBackward(), BIAS::TextureTransformEuclidian::ParameterJacobianBackward(), BIAS::TextureTransformSimilar::ParameterJacobianBackward(), BIAS::TextureTransformRotation::ParameterJacobianForward(), BIAS::TextureTransformEuclidian::ParameterJacobianForward(), BIAS::TextureTransformSimilar::ParameterJacobianForward(), BIAS::TextureTransformRotation::SetOrigin(), BIAS::TextureTransformSimilar::SetOrigin(), BIAS::TextureTransformEuclidian::SetOrigin(), BIAS::TextureTransformDisparity::SetParameters(), SetParameters(), BIAS::TextureTransformRotation::SetParameters(), BIAS::TextureTransformEuclidian::SetParameters(), BIAS::TextureTransformSimilar::SetParameters(), BIAS::TextureTransformDisparity::TextureTransformDisparity(), TextureTransformDisplacement(), BIAS::TextureTransformEuclidian::TextureTransformEuclidian(), BIAS::TextureTransformRotation::TextureTransformRotation(), and BIAS::TextureTransformSimilar::TextureTransformSimilar().


The documentation for this class was generated from the following file: