Basic Image AlgorithmS Library 2.8.0
Public Member Functions | Protected Attributes

BIAS::TextureTransformDisplacement Class Reference

analytic properties of 2D image displacement More...

#include <Image/TextureTransformDisplacement.hh>

Inheritance diagram for BIAS::TextureTransformDisplacement:
Collaboration diagram for BIAS::TextureTransformDisplacement:

List of all members.

Public Member Functions

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

Protected Attributes

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

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 ( ) [inline, virtual]

Definition at line 48 of file TextureTransformDisplacement.hh.


Member Function Documentation

virtual TextureTransformDisplacement* BIAS::TextureTransformDisplacement::Clone ( ) const [inline, virtual]

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) [inline, virtual]

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 [inline, virtual, inherited]

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 [inline, inherited]

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 [inline, virtual]

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 [inline, virtual]

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 [inline, virtual]

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 
) [inline, virtual]

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 
) [inline, virtual]

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 [inline, virtual]

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) [inline, virtual]
int BIAS::TextureTransformDisplacement::TextureJacobianBackward ( const HomgPoint2D sink,
Matrix2x2< double > &  Jac 
) const [inline, virtual]

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 [inline, virtual]

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 [inline, virtual]

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_ [protected, inherited]

current set of parameters, see SetParameters for meaning

Definition at line 145 of file TextureTransform.hh.

Referenced by BIAS::TextureTransformRotation::ComposeWithInverseDeltaP(), BIAS::TextureTransformEuclidian::ComposeWithInverseDeltaP(), ComposeWithInverseDeltaP(), BIAS::TextureTransformDisparity::ComposeWithInverseDeltaP(), BIAS::TextureTransformEuclidian::MapBackward(), MapBackward(), BIAS::TextureTransformDisparity::MapBackward(), MapForward(), BIAS::TextureTransformDisparity::MapForward(), BIAS::TextureTransformEuclidian::ParameterInversionJacobian(), BIAS::TextureTransformSimilar::ParameterJacobianBackward(), BIAS::TextureTransformRotation::ParameterJacobianBackward(), BIAS::TextureTransformEuclidian::ParameterJacobianBackward(), BIAS::TextureTransformSimilar::ParameterJacobianForward(), BIAS::TextureTransformRotation::ParameterJacobianForward(), BIAS::TextureTransformEuclidian::ParameterJacobianForward(), BIAS::TextureTransformSimilar::SetOrigin(), BIAS::TextureTransformRotation::SetOrigin(), BIAS::TextureTransformEuclidian::SetOrigin(), BIAS::TextureTransformSimilar::SetParameters(), BIAS::TextureTransformRotation::SetParameters(), BIAS::TextureTransformEuclidian::SetParameters(), SetParameters(), BIAS::TextureTransformDisparity::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:
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends