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

class HomgPoint3D describes a point with 3 degrees of freedom in projective coordinates. More...

#include <Base/Geometry/HomgPoint3D.hh>

+ Inheritance diagram for BIAS::HomgPoint3D:
+ Collaboration diagram for BIAS::HomgPoint3D:

Public Types

typedef HOMGPOINT3D_TYPE value_type
 

Public Member Functions

void Add (const HOMGPOINT3D_TYPE &scalar, Vector4< HOMGPOINT3D_TYPE > &dest) const
 Addition with a scalar, storing results in destionation vector. More...
 
void Add (const Vector4< HOMGPOINT3D_TYPE > &argvec, Vector4< HOMGPOINT3D_TYPE > &destvec) const
 adding of two vectors, storing the result in destvec More...
 
void AddIP (const HOMGPOINT3D_TYPE &scalar)
 Addition (in place) of an scalar. More...
 
void AddIP (const Vector4< HOMGPOINT3D_TYPE > &argvec)
 in place adding More...
 
void clear ()
 
void Copy (const HOMGPOINT3D_TYPE *pv)
 copy the array of vectorsize beginning at *T to this->data_ More...
 
double Dist (const Vector4< HOMGPOINT3D_TYPE > &vec) const
 Return the euclidean distance of 2 vectors. More...
 
HOMGPOINT3D_TYPE Distance (const HomgPoint3D &point) const
 
void Divide (const HOMGPOINT3D_TYPE &scalar, Vector4< HOMGPOINT3D_TYPE > &dest) const
 Division with a scalar, storing results in destionation vector. More...
 
void DivideIP (const HOMGPOINT3D_TYPE &scalar)
 Division (in place) of an scalar. More...
 
void ElementwiseProduct (const Vector4< HOMGPOINT3D_TYPE > &argvec, Vector4< HOMGPOINT3D_TYPE > &destvec) const
 multiply two vectors elementwise, storing the result in destvec More...
 
const HOMGPOINT3D_TYPE * GetData () const
 
get the data pointer

the member function itself is const (before {..}) because it doesn't change the this object. More...

 
HOMGPOINT3D_TYPE * GetData ()
 
void GetEuclidean (Vector3< HOMGPOINT3D_TYPE > &dest) const
 calculate affine coordinates of this and write them to dest affine coordinates are projective coordinates with last element w == 1; For w==0 the first three elements are copied describing a direction, not a point. More...
 
Vector3< HOMGPOINT3D_TYPE > GetEuclidean () const
 
HOMGPOINT3D_TYPE GetEuclideanX () const
 return the euclidean coordinates Only possible for w !=0 because w==0 describes points of infinity which are not in euclidean space (but may be interpreted as directions) More...
 
HOMGPOINT3D_TYPE GetEuclideanY () const
 
HOMGPOINT3D_TYPE GetEuclideanZ () const
 
void GetEuclidian (Vector3< HOMGPOINT3D_TYPE > &dest) const
 deprecated versions More...
 
Vector3< HOMGPOINT3D_TYPE > GetEuclidian () const
 
HOMGPOINT3D_TYPE GetEuclidianX () const
 deprecated versions More...
 
HOMGPOINT3D_TYPE GetEuclidianY () const
 
HOMGPOINT3D_TYPE GetEuclidianZ () const
 
const unsigned int GetNumElements () const
 
HOMGPOINT3D_TYPE GetW () const
 
HOMGPOINT3D_TYPE GetW ()
 
HOMGPOINT3D_TYPE GetX () const
 
HOMGPOINT3D_TYPE GetY () const
 
HOMGPOINT3D_TYPE GetZ () const
 
 HomgPoint3D ()
 
 HomgPoint3D (const HomgPoint3D &p)
 
 HomgPoint3D (const Vector4< HOMGPOINT3D_TYPE > &p)
 
 HomgPoint3D (const Vector3< HOMGPOINT3D_TYPE > &vec)
 
 HomgPoint3D (const HOMGPOINT3D_TYPE &scalar)
 assignment with a constant value for all elements More...
 
 HomgPoint3D (const HOMGPOINT3D_TYPE *pv)
 assignment with an array of values which is copied into this ones class members More...
 
 HomgPoint3D (char *s)
 constructor with element assignment More...
 
 HomgPoint3D (const HOMGPOINT3D_TYPE &x, const HOMGPOINT3D_TYPE &y, const HOMGPOINT3D_TYPE &z)
 constructor using euclidic coordinates, setting the 4th HomgPoint3D component to 1 More...
 
 HomgPoint3D (const Vector< double > &vec)
 constructor using projective coordinates and initializes *this from Vector<double> of length 4 or length 3 in this case the fourth entry is 1.0. More...
 
 HomgPoint3D (const HOMGPOINT3D_TYPE &x, const HOMGPOINT3D_TYPE &y, const HOMGPOINT3D_TYPE &z, const HOMGPOINT3D_TYPE &w)
 
void Homogenize ()
 homogenize class data member elements to W==1 by divison by W More...
 
bool IsAtInfinity () const
 
bool IsHomogenized () const
 
bool Load (const std::string &filename)
 method to load directly from a given filename. More...
 
void Multiply (const HOMGPOINT3D_TYPE &scalar, Vector4< HOMGPOINT3D_TYPE > &dest) const
 Multiplication with a scalar, storing results in destionation vector. More...
 
void MultiplyIP (const HOMGPOINT3D_TYPE &scalar)
 Multiplication (in place) of an scalar. More...
 
HOMGPOINT3D_TYPE NormL1 () const
 Return the L1 norm: |a| + |b| + |c|+ |d|. More...
 
double NormL2 () const
 Return the L2 norm: sqrt(a^2 + b^2 + c^2 + d^2) More...
 
bool operator!= (const HomgPoint3D &arg) const
 Comparison operator 'not equal'. More...
 
bool operator!= (const Vector4< HOMGPOINT3D_TYPE > &arg) const
 Comparison operator 'not equal'. More...
 
Vector4< HOMGPOINT3D_TYPE > & operator*= (const HOMGPOINT3D_TYPE &scalar)
 Multiplication operator with scalar argument. More...
 
Vector4< HOMGPOINT3D_TYPE > & operator+= (const HOMGPOINT3D_TYPE &scalar)
 Addition operator with scalar argument. More...
 
Vector4< HOMGPOINT3D_TYPE > & operator+= (const Vector4< HOMGPOINT3D_TYPE > &argvec)
 add operator for two Vectors More...
 
Vector4< HOMGPOINT3D_TYPE > & operator-= (const HOMGPOINT3D_TYPE &scalar)
 Substraction operator with scalar argument. More...
 
Vector4< HOMGPOINT3D_TYPE > & operator-= (const Vector4< HOMGPOINT3D_TYPE > &argvec)
 sub operator for two Vectors More...
 
Vector4< HOMGPOINT3D_TYPE > & operator/= (const HOMGPOINT3D_TYPE &scalar)
 Division operator with scalar argument. More...
 
HomgPoint3Doperator= (const Vector4< HOMGPOINT3D_TYPE > &vec)
 assignment operator set the elements of this HomgPoint to the element of vec More...
 
HomgPoint3Doperator= (const HOMGPOINT3D_TYPE &scalar)
 assignment operator set the vector elementwise to scalar value More...
 
HomgPoint3Doperator= (const Vector3< HOMGPOINT3D_TYPE > &vec)
 
bool operator== (const HomgPoint3D &arg) const
 Comparison operator 'equal'. More...
 
bool operator== (const Vector4< HOMGPOINT3D_TYPE > &arg) const
 Comparison operator 'equal'. More...
 
const HOMGPOINT3D_TYPE & operator[] (const int i) const
 access an element of the vector with 0-based indizes. More...
 
HOMGPOINT3D_TYPE & operator[] (const int i)
 access an element of the vector with 0-based indizes. More...
 
Matrix4x4< HOMGPOINT3D_TYPE > OuterProduct (const Vector4< HOMGPOINT3D_TYPE > &v) const
 outer product, constructs a matrix. More...
 
bool Save (const std::string &filename) const
 method to save directly to a given filename. More...
 
void ScalarProduct (const Vector4< HOMGPOINT3D_TYPE > &argvec, HOMGPOINT3D_TYPE &result) const
 
scalar product (=inner product) of two vectors, storing

the result in result More...

 
HOMGPOINT3D_TYPE ScalarProduct (const Vector4< HOMGPOINT3D_TYPE > &argvec) const
 
void Set (const HOMGPOINT3D_TYPE &scalar)
 set all elements to a scalat value More...
 
void Set (const HOMGPOINT3D_TYPE &x, const HOMGPOINT3D_TYPE &y, const HOMGPOINT3D_TYPE &z)
 set elementwise with given 3 euclidean scalar values. More...
 
void Set (const HOMGPOINT3D_TYPE &x, const HOMGPOINT3D_TYPE &y, const HOMGPOINT3D_TYPE &z, const HOMGPOINT3D_TYPE &w)
 set elementwise More...
 
void Set (const Vector3< HOMGPOINT3D_TYPE > &vec)
 set from Vector3 More...
 
void SetZero ()
 set all values to 0 More...
 
const unsigned int Size () const
 
const unsigned int size () const
 
void Sub (const HOMGPOINT3D_TYPE &scalar, Vector4< HOMGPOINT3D_TYPE > &dest) const
 Substraction with a scalar, storing results in destionation vector. More...
 
void Sub (const Vector4< HOMGPOINT3D_TYPE > &argvec, Vector4< HOMGPOINT3D_TYPE > &destvec) const
 subtracting of two Vectors, storing the result in destvec More...
 
void SubIP (const HOMGPOINT3D_TYPE &scalar)
 Substraction (in place) of an scalar. More...
 
void SubIP (const Vector4< HOMGPOINT3D_TYPE > &argvec)
 in place substraction More...
 
Matrix< HOMGPOINT3D_TYPE > transposed () const
 
return a new Matrix with 1 row and 4 columns representing a

transposed vector More...

 
 ~HomgPoint3D ()
 
Iterator Functions
HOMGPOINT3D_TYPEconst * begin () const
 Iterator to first component of vector. More...
 
HOMGPOINT3D_TYPE * begin ()
 
HOMGPOINT3D_TYPEconst * end () const
 Iterator pointing to one element after the last vector element. More...
 
HOMGPOINT3D_TYPE * end ()
 

Protected Attributes

HOMGPOINT3D_TYPE data_ [VECTOR4SIZE]
 

Detailed Description

class HomgPoint3D describes a point with 3 degrees of freedom in projective coordinates.

manual loop unrolling is used if possible. The Vector is in row-major order (4 rows, 1 column) the indizes begin with zero (to size-1)

constructors and assignment operators are never inherited, so they have be wrapped (or reimplemented) here.

Author
Jan Woetzel tested in part (03/04/2002)

To DO:

Examples:
ExampleConic.cpp, ExampleEParametrization.cpp, ExampleEpipolarLine.cpp, ExampleEstimateFisheyePolynomial.cpp, ExamplePMatrix.cpp, ExamplePMatrixBase.cpp, ExampleProjection.cpp, ExampleProjectionParametersPerspective2.cpp, ExampleProjectionParametersProjective.cpp, ExampleRANSACPlane.cpp, ExampleRectification.cpp, ExampleThreeDOutVRML.cpp, ExampleTriangulate.cpp, ExampleTriangulate2.cpp, ExampleTriangulateOptimal.cpp, InvestigateEpipoleEstimation.cpp, and PMatrixTest.cpp.

Definition at line 61 of file HomgPoint3D.hh.

Member Typedef Documentation

typedef HOMGPOINT3D_TYPE BIAS::Vector4< HOMGPOINT3D_TYPE >::value_type
inherited

Definition at line 67 of file Vector4.hh.

Constructor & Destructor Documentation

BIAS::HomgPoint3D::HomgPoint3D ( )
inline

Definition at line 65 of file HomgPoint3D.hh.

BIAS::HomgPoint3D::HomgPoint3D ( const HomgPoint3D p)
inline

Definition at line 67 of file HomgPoint3D.hh.

BIAS::HomgPoint3D::HomgPoint3D ( const Vector4< HOMGPOINT3D_TYPE > &  p)
inline

Definition at line 70 of file HomgPoint3D.hh.

BIAS::HomgPoint3D::HomgPoint3D ( const Vector3< HOMGPOINT3D_TYPE > &  vec)
inlineexplicit

Definition at line 220 of file HomgPoint3D.hh.

References Set().

BIAS::HomgPoint3D::~HomgPoint3D ( )
inline

Definition at line 75 of file HomgPoint3D.hh.

BIAS::HomgPoint3D::HomgPoint3D ( const HOMGPOINT3D_TYPE &  scalar)
inlineexplicit

assignment with a constant value for all elements

Author
Jan Woetzel alpha (03/01/2002)

Definition at line 80 of file HomgPoint3D.hh.

BIAS::HomgPoint3D::HomgPoint3D ( const HOMGPOINT3D_TYPE *  pv)
inlineexplicit

assignment with an array of values which is copied into this ones class members

Author
Jan Woetzel untested (02/28/2002)

Definition at line 87 of file HomgPoint3D.hh.

BIAS::HomgPoint3D::HomgPoint3D ( char *  s)
inlineexplicit

constructor with element assignment

Author
Jan Woetzel alpha (03/01/2002)

Definition at line 93 of file HomgPoint3D.hh.

BIAS::HomgPoint3D::HomgPoint3D ( const HOMGPOINT3D_TYPE &  x,
const HOMGPOINT3D_TYPE &  y,
const HOMGPOINT3D_TYPE &  z 
)
inline

constructor using euclidic coordinates, setting the 4th HomgPoint3D component to 1

Author
Ingo Thomsen untested

Definition at line 225 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_.

BIAS::HomgPoint3D::HomgPoint3D ( const Vector< double > &  vec)
inline

constructor using projective coordinates and initializes *this from Vector<double> of length 4 or length 3 in this case the fourth entry is 1.0.

Author
JMF tested

Definition at line 292 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_, and TNT::Vector< T >::size().

BIAS::HomgPoint3D::HomgPoint3D ( const HOMGPOINT3D_TYPE &  x,
const HOMGPOINT3D_TYPE &  y,
const HOMGPOINT3D_TYPE &  z,
const HOMGPOINT3D_TYPE &  w 
)
inline
Author
woelk 11/2003

Definition at line 112 of file HomgPoint3D.hh.

Member Function Documentation

void BIAS::Vector4< HOMGPOINT3D_TYPE >::Add ( const HOMGPOINT3D_TYPE &  scalar,
Vector4< HOMGPOINT3D_TYPE > &  dest 
) const
inlineinherited

Addition with a scalar, storing results in destionation vector.

Author
Ingo Thomsen
void BIAS::Vector4< HOMGPOINT3D_TYPE >::Add ( const Vector4< HOMGPOINT3D_TYPE > &  argvec,
Vector4< HOMGPOINT3D_TYPE > &  destvec 
) const
inlineinherited

adding of two vectors, storing the result in destvec

Author
Ingo Thomsen tested
void BIAS::Vector4< HOMGPOINT3D_TYPE >::AddIP ( const HOMGPOINT3D_TYPE &  scalar)
inlineinherited

Addition (in place) of an scalar.

Author
Ingo Thomsen
void BIAS::Vector4< HOMGPOINT3D_TYPE >::AddIP ( const Vector4< HOMGPOINT3D_TYPE > &  argvec)
inlineinherited

in place adding

Author
Ingo Thomsen tested
HOMGPOINT3D_TYPE const* BIAS::Vector4< HOMGPOINT3D_TYPE >::begin ( ) const
inlineinherited

Iterator to first component of vector.

Author
Stefan Reinhold

Definition at line 152 of file Vector4.hh.

HOMGPOINT3D_TYPE * BIAS::Vector4< HOMGPOINT3D_TYPE >::begin ( )
inlineinherited

Definition at line 155 of file Vector4.hh.

void BIAS::Vector4< HOMGPOINT3D_TYPE >::clear ( )
inlineinherited
void BIAS::Vector4< HOMGPOINT3D_TYPE >::Copy ( const HOMGPOINT3D_TYPE *  pv)
inlineinherited

copy the array of vectorsize beginning at *T to this->data_

Author
Jan Woetzel untested (02/28/2002)

Referenced by operator=().

double BIAS::Vector4< HOMGPOINT3D_TYPE >::Dist ( const Vector4< HOMGPOINT3D_TYPE > &  vec) const
inlineinherited

Return the euclidean distance of 2 vectors.

Author
Birger Streckel
Date
08/2002
HOMGPOINT3D_TYPE BIAS::HomgPoint3D::Distance ( const HomgPoint3D point) const
inline
void BIAS::Vector4< HOMGPOINT3D_TYPE >::Divide ( const HOMGPOINT3D_TYPE &  scalar,
Vector4< HOMGPOINT3D_TYPE > &  dest 
) const
inlineinherited

Division with a scalar, storing results in destionation vector.

Author
Ingo Thomsen
void BIAS::Vector4< HOMGPOINT3D_TYPE >::DivideIP ( const HOMGPOINT3D_TYPE &  scalar)
inlineinherited

Division (in place) of an scalar.

Author
Ingo Thomsen
void BIAS::Vector4< HOMGPOINT3D_TYPE >::ElementwiseProduct ( const Vector4< HOMGPOINT3D_TYPE > &  argvec,
Vector4< HOMGPOINT3D_TYPE > &  destvec 
) const
inlineinherited

multiply two vectors elementwise, storing the result in destvec

Author
Jan Woetzel untested (03/06/2002)
HOMGPOINT3D_TYPE const* BIAS::Vector4< HOMGPOINT3D_TYPE >::end ( ) const
inlineinherited

Iterator pointing to one element after the last vector element.

Author
Stefan Reinhold

Definition at line 161 of file Vector4.hh.

HOMGPOINT3D_TYPE * BIAS::Vector4< HOMGPOINT3D_TYPE >::end ( )
inlineinherited

Definition at line 164 of file Vector4.hh.

const HOMGPOINT3D_TYPE * BIAS::Vector4< HOMGPOINT3D_TYPE >::GetData ( ) const
inlineinherited

get the data pointer

the member function itself is const (before {..}) because it doesn't change the this object.

Returns
the const pointer to the data array for reading
Author
Jan Woetzel untested (02/28/2002)

Definition at line 177 of file Vector4.hh.

HOMGPOINT3D_TYPE * BIAS::Vector4< HOMGPOINT3D_TYPE >::GetData ( )
inlineinherited

Definition at line 181 of file Vector4.hh.

void BIAS::HomgPoint3D::GetEuclidean ( Vector3< HOMGPOINT3D_TYPE > &  dest) const
inline
Vector3< HOMGPOINT3D_TYPE > BIAS::HomgPoint3D::GetEuclidean ( ) const
inline

Definition at line 350 of file HomgPoint3D.hh.

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetEuclideanX ( ) const
inline

return the euclidean coordinates Only possible for w !=0 because w==0 describes points of infinity which are not in euclidean space (but may be interpreted as directions)

Author
Jan Woetzel untested (03/04/2002)

Definition at line 357 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_, and GetW().

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetEuclideanY ( ) const
inline

Definition at line 364 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_, and GetW().

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetEuclideanZ ( ) const
inline

Definition at line 371 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_, and GetW().

void BIAS::HomgPoint3D::GetEuclidian ( Vector3< HOMGPOINT3D_TYPE > &  dest) const
inline

deprecated versions

Definition at line 176 of file HomgPoint3D.hh.

Vector3<HOMGPOINT3D_TYPE> BIAS::HomgPoint3D::GetEuclidian ( ) const
inline

Definition at line 179 of file HomgPoint3D.hh.

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetEuclidianX ( ) const
inline

deprecated versions

Definition at line 193 of file HomgPoint3D.hh.

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetEuclidianY ( ) const
inline

Definition at line 196 of file HomgPoint3D.hh.

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetEuclidianZ ( ) const
inline

Definition at line 199 of file HomgPoint3D.hh.

const unsigned int BIAS::Vector4< HOMGPOINT3D_TYPE >::GetNumElements ( ) const
inlineinherited

Definition at line 145 of file Vector4.hh.

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetW ( ) const
inline
HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetW ( )
inline

Definition at line 250 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_.

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetX ( ) const
inline

Definition at line 235 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_.

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetY ( ) const
inline

Definition at line 240 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_.

HOMGPOINT3D_TYPE BIAS::HomgPoint3D::GetZ ( ) const
inline

Definition at line 245 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_.

void BIAS::HomgPoint3D::Homogenize ( )
inline
bool BIAS::HomgPoint3D::IsAtInfinity ( ) const
inline
bool BIAS::HomgPoint3D::IsHomogenized ( ) const
inline
bool BIAS::Vector4< HOMGPOINT3D_TYPE >::Load ( const std::string &  filename)
inherited

method to load directly from a given filename.

internally using stream operator

Author
Jan Woetzel 09/2005
Returns
false in case of error, true in case of success
void BIAS::Vector4< HOMGPOINT3D_TYPE >::Multiply ( const HOMGPOINT3D_TYPE &  scalar,
Vector4< HOMGPOINT3D_TYPE > &  dest 
) const
inlineinherited

Multiplication with a scalar, storing results in destionation vector.

Author
Ingo Thomsen
void BIAS::Vector4< HOMGPOINT3D_TYPE >::MultiplyIP ( const HOMGPOINT3D_TYPE &  scalar)
inlineinherited

Multiplication (in place) of an scalar.

Author
Ingo Thomsen
HOMGPOINT3D_TYPE BIAS::Vector4< HOMGPOINT3D_TYPE >::NormL1 ( ) const
inlineinherited

Return the L1 norm: |a| + |b| + |c|+ |d|.

Author
Ingo Thomsen
Date
04/11/2002 untested
double BIAS::Vector4< HOMGPOINT3D_TYPE >::NormL2 ( ) const
inlineinherited

Return the L2 norm: sqrt(a^2 + b^2 + c^2 + d^2)

Author
Ingo Thomsen
Date
04/11/2002 untested
Examples:
ExampleRectification.cpp.
bool BIAS::HomgPoint3D::operator!= ( const HomgPoint3D arg) const
inline

Comparison operator 'not equal'.

Author
Ingo Thomsen tested

Definition at line 393 of file HomgPoint3D.hh.

bool BIAS::Vector4< HOMGPOINT3D_TYPE >::operator!= ( const Vector4< HOMGPOINT3D_TYPE > &  arg) const
inlineinherited

Comparison operator 'not equal'.

Author
Ingo Thomsen
Vector4<HOMGPOINT3D_TYPE >& BIAS::Vector4< HOMGPOINT3D_TYPE >::operator*= ( const HOMGPOINT3D_TYPE &  scalar)
inlineinherited

Multiplication operator with scalar argument.

Author
Ingo Thomsen tested
Vector4<HOMGPOINT3D_TYPE >& BIAS::Vector4< HOMGPOINT3D_TYPE >::operator+= ( const HOMGPOINT3D_TYPE &  scalar)
inlineinherited

Addition operator with scalar argument.

Author
Ingo Thomsen tested
Vector4<HOMGPOINT3D_TYPE >& BIAS::Vector4< HOMGPOINT3D_TYPE >::operator+= ( const Vector4< HOMGPOINT3D_TYPE > &  argvec)
inlineinherited

add operator for two Vectors

Author
Ingo Thomsen tested
Vector4<HOMGPOINT3D_TYPE >& BIAS::Vector4< HOMGPOINT3D_TYPE >::operator-= ( const HOMGPOINT3D_TYPE &  scalar)
inlineinherited

Substraction operator with scalar argument.

Author
Ingo Thomsen tested
Vector4<HOMGPOINT3D_TYPE >& BIAS::Vector4< HOMGPOINT3D_TYPE >::operator-= ( const Vector4< HOMGPOINT3D_TYPE > &  argvec)
inlineinherited

sub operator for two Vectors

Author
Ingo Thomsen tested
Vector4<HOMGPOINT3D_TYPE >& BIAS::Vector4< HOMGPOINT3D_TYPE >::operator/= ( const HOMGPOINT3D_TYPE &  scalar)
inlineinherited

Division operator with scalar argument.

Author
Ingo Thomsen tested
HomgPoint3D & BIAS::HomgPoint3D::operator= ( const Vector4< HOMGPOINT3D_TYPE > &  vec)
inline

assignment operator set the elements of this HomgPoint to the element of vec

Author
Jan Woetzel alpha (02/25/2002)

Definition at line 276 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::Copy(), and BIAS::Vector4< T >::GetData().

HomgPoint3D & BIAS::HomgPoint3D::operator= ( const HOMGPOINT3D_TYPE &  scalar)
inline

assignment operator set the vector elementwise to scalar value

Author
Jan Woetzel alpha (02/28/2002)

Definition at line 283 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_.

HomgPoint3D & BIAS::HomgPoint3D::operator= ( const Vector3< HOMGPOINT3D_TYPE > &  vec)
inline

Definition at line 266 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_.

bool BIAS::HomgPoint3D::operator== ( const HomgPoint3D arg) const
inline

Comparison operator 'equal'.

Author
Arne Petersen untested

Definition at line 378 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_.

bool BIAS::Vector4< HOMGPOINT3D_TYPE >::operator== ( const Vector4< HOMGPOINT3D_TYPE > &  arg) const
inlineinherited

Comparison operator 'equal'.

Author
Ingo Thomsen tested
const HOMGPOINT3D_TYPE & BIAS::Vector4< HOMGPOINT3D_TYPE >::operator[] ( const int  i) const
inlineinherited

access an element of the vector with 0-based indizes.

read only (no write) member funciton const because it doesn't change this object

Author
Jan Woetzel alpha (03/01/2002)
HOMGPOINT3D_TYPE & BIAS::Vector4< HOMGPOINT3D_TYPE >::operator[] ( const int  i)
inlineinherited

access an element of the vector with 0-based indizes.

write allowed

Author
Jan Woetzel alpha (03/01/2002)
Matrix4x4<HOMGPOINT3D_TYPE > BIAS::Vector4< HOMGPOINT3D_TYPE >::OuterProduct ( const Vector4< HOMGPOINT3D_TYPE > &  v) const
inherited

outer product, constructs a matrix.

Often written as v * v^T for col vectors

Author
frick
bool BIAS::Vector4< HOMGPOINT3D_TYPE >::Save ( const std::string &  filename) const
inherited

method to save directly to a given filename.

internally using stream operator

Author
Jan Woetzel 09/2009
Returns
false in case of error, true in case of success
void BIAS::Vector4< HOMGPOINT3D_TYPE >::ScalarProduct ( const Vector4< HOMGPOINT3D_TYPE > &  argvec,
HOMGPOINT3D_TYPE &  result 
) const
inlineinherited

scalar product (=inner product) of two vectors, storing

the result in result

Author
Jan Woetzel untested
HOMGPOINT3D_TYPE BIAS::Vector4< HOMGPOINT3D_TYPE >::ScalarProduct ( const Vector4< HOMGPOINT3D_TYPE > &  argvec) const
inlineinherited
void BIAS::Vector4< HOMGPOINT3D_TYPE >::Set ( const HOMGPOINT3D_TYPE &  scalar)
inlineinherited

set all elements to a scalat value

Author
Jan Woetzel untested (02/28/2002)
void BIAS::HomgPoint3D::Set ( const HOMGPOINT3D_TYPE &  x,
const HOMGPOINT3D_TYPE &  y,
const HOMGPOINT3D_TYPE &  z 
)
inline
void BIAS::HomgPoint3D::Set ( const HOMGPOINT3D_TYPE &  x,
const HOMGPOINT3D_TYPE &  y,
const HOMGPOINT3D_TYPE &  z,
const HOMGPOINT3D_TYPE &  w 
)
inline

set elementwise

Author
woelk 11/2003

Definition at line 161 of file HomgPoint3D.hh.

References BIAS::Vector4< T >::Set().

void BIAS::HomgPoint3D::Set ( const Vector3< HOMGPOINT3D_TYPE > &  vec)
inline

set from Vector3

Author
woelk 03/2004

Definition at line 328 of file HomgPoint3D.hh.

References BIAS::Vector4< HOMGPOINT3D_TYPE >::data_.

void BIAS::Vector4< HOMGPOINT3D_TYPE >::SetZero ( )
inlineinherited

set all values to 0

Author
Jan Woetzel
const unsigned int BIAS::Vector4< HOMGPOINT3D_TYPE >::Size ( ) const
inlineinherited
@return the size of this vector
Author
Jan Woetzel (02/28/2002)
const unsigned int BIAS::Vector4< HOMGPOINT3D_TYPE >::size ( ) const
inlineinherited
void BIAS::Vector4< HOMGPOINT3D_TYPE >::Sub ( const HOMGPOINT3D_TYPE &  scalar,
Vector4< HOMGPOINT3D_TYPE > &  dest 
) const
inlineinherited

Substraction with a scalar, storing results in destionation vector.

Author
Ingo Thomsen
void BIAS::Vector4< HOMGPOINT3D_TYPE >::Sub ( const Vector4< HOMGPOINT3D_TYPE > &  argvec,
Vector4< HOMGPOINT3D_TYPE > &  destvec 
) const
inlineinherited

subtracting of two Vectors, storing the result in destvec

Author
Ingo Thomsen tested
void BIAS::Vector4< HOMGPOINT3D_TYPE >::SubIP ( const HOMGPOINT3D_TYPE &  scalar)
inlineinherited

Substraction (in place) of an scalar.

Author
Ingo Thomsen
void BIAS::Vector4< HOMGPOINT3D_TYPE >::SubIP ( const Vector4< HOMGPOINT3D_TYPE > &  argvec)
inlineinherited

in place substraction

Author
Ingo Thomsen tested
Matrix<HOMGPOINT3D_TYPE > BIAS::Vector4< HOMGPOINT3D_TYPE >::transposed ( ) const
inlineinherited

return a new Matrix with 1 row and 4 columns representing a

transposed vector

Member Data Documentation

HOMGPOINT3D_TYPE BIAS::Vector4< HOMGPOINT3D_TYPE >::data_[VECTOR4SIZE]
protectedinherited

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