25 #ifndef __TextureTransformDisparity__hh__
26 #define __TextureTransformDisparity__hh__
28 #include <Base/Common/BIASpragmaStart.hh>
29 #include <Image/TextureTransform.hh>
49 sink[0] = src[0] +
P_[0];
56 src[0] = sink[0] -
P_[0];
94 BIASASSERT(p.
Size()==1);
bool ParameterJacobianIsConstant() const
return true, if the parameter jacobian does not depend on the image position
void SetIdentity()
set the elements of this matrix to the identity matrix
class HomgPoint2D describes a point with 2 degrees of freedom in projective coordinates.
analytic properties of x-displacement
Vector< double > P_
current set of parameters, see SetParameters for meaning
Matrix< T > & newsize(Subscript M, Subscript N)
class for representing parameterized image warps, such as homography, displacement, ...
unsigned int Size() const
length of the vector
virtual bool TextureJacobianIsConstant() const
return true if the texture jacobian does not depend on the image position
Vector< T > & newsize(Subscript N)
int ParameterJacobianBackward(Matrix< double > &Jac, const HomgPoint2D &src)
transformed position change when parameters change
int ParameterInversionJacobian(Matrix< double > &Jac) const
compute parameters for inverse operation and obtain the jacobian of the inverse parameters with respe...
TextureTransformDisparity()
int MapForward(const HomgPoint2D &src, HomgPoint2D &sink) const
map a point in image "source" to a point in image "sink"
void ComposeWithInverseDeltaP(const Vector< double > &deltaP)
concatenate *this and an inverse transform with param deltaP and save new parameter vector to *this...
int TextureJacobianBackward(const HomgPoint2D &sink, Matrix2x2< double > &Jac) const
shape change of the local region when mapping backward
int ParameterJacobianForward(Matrix< double > &Jac, const HomgPoint2D &src)
transformed position change when parameters change
int MapBackward(const HomgPoint2D &sink, HomgPoint2D &src) const
map a point in image "source" to a point in image "sink"
int TextureJacobianForward(const HomgPoint2D &src, Matrix2x2< double > &Jac) const
shape change of the local region when mapping forward
void SetParameters(const Vector< double > &p)
dx
virtual ~TextureTransformDisparity()
virtual TextureTransformDisparity * Clone() const
virtual covariant copy constructor, caller must eventually destroy the created object ...