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

class for representing matches, used in GenSynthMatches and biasshowsm More...

#include <Utils/MatchDataBase.hh>

+ Inheritance diagram for BIAS::MatchDataBase:
+ Collaboration diagram for BIAS::MatchDataBase:

Public Member Functions

void AddDebugLevel (const long int lv)
 
void AddDebugLevel (const std::string &name)
 
bool DebugLevelIsSet (const long int lv) const
 
bool DebugLevelIsSet (const std::string &name) const
 
void GetC (int imNo, HomgPoint3D &C) const
 
void GetC (std::vector< HomgPoint3D > &C) const
 
void GetCorrespondences (std::vector< std::vector< HomgPoint2D > > &p) const
 same as GetPOints with inverted indices : p[i][k] is point number i in image k More...
 
int GetDebugLevel () const
 
std::ostream & GetDebugStream () const
 
void GetDebugStream (std::ostream &os) const
 
void GetK (KMatrix &K) const
 
void GetNormalizedCorrespondences (std::vector< std::vector< HomgPoint2D > > &p) const
 same as GetNormalizedPoints with inverted indices : p[i][k] is point number i in image k More...
 
void GetNormalizedPoints (int imNo, std::vector< HomgPoint2D > &p) const
 
void GetNormalizedPoints (std::vector< std::vector< HomgPoint2D > > &p) const
 p[i][k] is point number k in image i More...
 
int GetNumImages () const
 
void GetP (int imNo, PMatrixBase &P) const
 
void GetP (std::vector< PMatrixBase > &P) const
 
void GetPoints (int imNo, std::vector< HomgPoint2D > &p) const
 
void GetPoints (std::vector< std::vector< HomgPoint2D > > &p) const
 p[i][k] is point number k in image i More...
 
void GetR (int imNo, RMatrixBase &R) const
 
void GetR (std::vector< RMatrixBase > &R) const
 
 MatchDataBase (Param &para)
 
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found More...
 
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel More...
 
bool operator== (MatchDataBase &l)
 
void PrintDebugLevel (std::ostream &os=std::cout) const
 
int Read (const std::string &fname)
 binary read More...
 
virtual int Read (std::istream &is)
 binary read More...
 
void RemoveDebugLevel (const long int lv)
 
void RemoveDebugLevel (const std::string &name)
 
void Reset ()
 
void SetData (KMatrix &K, std::vector< RMatrixBase > &R, std::vector< HomgPoint3D > &C, std::vector< std::vector< HomgPoint2D > > &m)
 
void SetDebugLevel (const long int lv)
 
void SetDebugLevel (const std::string &name)
 
void SetDebugStream (const std::ostream &os)
 
void SetNormalizedData (KMatrix &K, std::vector< RMatrixBase > &R, std::vector< HomgPoint3D > &C, std::vector< std::vector< HomgPoint2D > > &m)
 
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels More...
 
int Write (const std::string &fname) const
 binary write More...
 
virtual int Write (std::ostream &os) const
 binary write More...
 
virtual ~MatchDataBase ()
 

Static Public Member Functions

static long int GetGlobalDebugLevel ()
 
static void SetGlobalDebugLevel (long int lev)
 

Protected Member Functions

virtual void _AddParameter (Param &para)
 
void _SetCamData (KMatrix &K, std::vector< RMatrixBase > &R, std::vector< HomgPoint3D > &C)
 
void _Transpose (const std::vector< std::vector< HomgPoint2D > > &src, std::vector< std::vector< HomgPoint2D > > &dst) const
 
long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel More...
 

Protected Attributes

std::vector< HomgPoint3D_C
 
KMatrix _K
 
KMatrix _Ki
 
long int _liDebugLevel
 
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class More...
 
std::vector< std::vector
< HomgPoint2D > > 
_NormalizedPoints
 
int * _NumImages
 
int * _NumPoints
 
std::vector< PMatrixBase_P
 
std::vector< std::vector
< HomgPoint2D > > 
_Points
 
std::vector< RMatrixBase_R
 
std::map< std::string, long int > _String2Debuglevel
 

Static Protected Attributes

static std::ostream _zDebugStream
 
static long int GlobalDebugLevel = 0
 

Friends

BIASUtils_EXPORT std::ostream & operator<< (std::ostream &os, const MatchDataBase &m)
 
BIASUtils_EXPORT std::istream & operator>> (std::istream &is, MatchDataBase &m)
 

Detailed Description

class for representing matches, used in GenSynthMatches and biasshowsm

Author
woelk 2004
Examples:
ExampleMatchDataBase.cpp.

Definition at line 46 of file MatchDataBase.hh.

Constructor & Destructor Documentation

MatchDataBase::MatchDataBase ( Param para)

Definition at line 36 of file MatchDataBase.cpp.

References _AddParameter(), _NumImages, and _NumPoints.

Referenced by BIAS::GenSynthMatches::operator=().

MatchDataBase::~MatchDataBase ( )
virtual

Definition at line 43 of file MatchDataBase.cpp.

Member Function Documentation

void MatchDataBase::_AddParameter ( Param para)
protectedvirtual
void MatchDataBase::_SetCamData ( KMatrix K,
std::vector< RMatrixBase > &  R,
std::vector< HomgPoint3D > &  C 
)
protected

Definition at line 139 of file MatchDataBase.cpp.

References _C, _K, _Ki, _P, _R, and BIAS::KMatrix::Invert().

Referenced by SetData(), and SetNormalizedData().

void BIAS::MatchDataBase::_Transpose ( const std::vector< std::vector< HomgPoint2D > > &  src,
std::vector< std::vector< HomgPoint2D > > &  dst 
) const
inlineprotected

Definition at line 130 of file MatchDataBase.hh.

Referenced by GetCorrespondences(), and GetNormalizedCorrespondences().

void BIAS::Debug::AddDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::AddDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 362 of file Debug.hh.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( )
inlineprotectedinherited

returns the next available debuglevel

Author
woelk 09/2006

Definition at line 521 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const
inlineinherited
bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const
inlineinherited

Definition at line 350 of file Debug.hh.

void MatchDataBase::GetC ( int  imNo,
HomgPoint3D C 
) const
Examples:
ExampleMatchDataBase.cpp, and ExampleTFT.cpp.

Definition at line 69 of file MatchDataBase.cpp.

References _C.

void MatchDataBase::GetC ( std::vector< HomgPoint3D > &  C) const

Definition at line 71 of file MatchDataBase.cpp.

References _C.

void MatchDataBase::GetCorrespondences ( std::vector< std::vector< HomgPoint2D > > &  p) const

same as GetPOints with inverted indices : p[i][k] is point number i in image k

Definition at line 83 of file MatchDataBase.cpp.

References _Points, and _Transpose().

int BIAS::Debug::GetDebugLevel ( ) const
inlineinherited
std::ostream& BIAS::Debug::GetDebugStream ( ) const
inlineinherited

Definition at line 405 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const
inlineinherited

Definition at line 414 of file Debug.hh.

static long int BIAS::Debug::GetGlobalDebugLevel ( )
inlinestaticinherited

Definition at line 431 of file Debug.hh.

void MatchDataBase::GetK ( KMatrix K) const
Examples:
ExampleMatchDataBase.cpp.

Definition at line 60 of file MatchDataBase.cpp.

References _K.

Referenced by BIAS::GenSynthMatches::CreateGTVRML().

void MatchDataBase::GetNormalizedCorrespondences ( std::vector< std::vector< HomgPoint2D > > &  p) const

same as GetNormalizedPoints with inverted indices : p[i][k] is point number i in image k

Definition at line 90 of file MatchDataBase.cpp.

References _NormalizedPoints, and _Transpose().

void MatchDataBase::GetNormalizedPoints ( int  imNo,
std::vector< HomgPoint2D > &  p 
) const
Examples:
ExampleMatchDataBase.cpp, and ExampleTFT.cpp.

Definition at line 86 of file MatchDataBase.cpp.

References _NormalizedPoints.

void MatchDataBase::GetNormalizedPoints ( std::vector< std::vector< HomgPoint2D > > &  p) const

p[i][k] is point number k in image i

Definition at line 88 of file MatchDataBase.cpp.

References _NormalizedPoints.

int BIAS::MatchDataBase::GetNumImages ( ) const
inline

Definition at line 88 of file MatchDataBase.hh.

void MatchDataBase::GetP ( int  imNo,
PMatrixBase P 
) const

Definition at line 74 of file MatchDataBase.cpp.

References _P.

void MatchDataBase::GetP ( std::vector< PMatrixBase > &  P) const

Definition at line 76 of file MatchDataBase.cpp.

References _P.

void MatchDataBase::GetPoints ( int  imNo,
std::vector< HomgPoint2D > &  p 
) const
Examples:
ExampleMatchDataBase.cpp.

Definition at line 79 of file MatchDataBase.cpp.

References _Points.

void MatchDataBase::GetPoints ( std::vector< std::vector< HomgPoint2D > > &  p) const

p[i][k] is point number k in image i

Definition at line 81 of file MatchDataBase.cpp.

References _Points.

void MatchDataBase::GetR ( int  imNo,
RMatrixBase R 
) const
Examples:
ExampleMatchDataBase.cpp, and ExampleTFT.cpp.

Definition at line 63 of file MatchDataBase.cpp.

References _R.

void MatchDataBase::GetR ( std::vector< RMatrixBase > &  R) const

Definition at line 65 of file MatchDataBase.cpp.

References _R.

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const
inlineinherited

looks up a debuglevel in the internal map, returns 0 if not found

Author
woelk 09/2006

Definition at line 454 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name)
inlineinherited
bool MatchDataBase::operator== ( MatchDataBase l)

Definition at line 242 of file MatchDataBase.cpp.

References _C, _K, _Ki, _NormalizedPoints, _NumImages, _NumPoints, _P, _Points, and _R.

void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

Definition at line 383 of file Debug.hh.

int MatchDataBase::Read ( const std::string &  fname)

binary read

Definition at line 193 of file MatchDataBase.cpp.

Referenced by BIAS::GenSynthMatches::Read().

int MatchDataBase::Read ( std::istream &  is)
virtual
void BIAS::Debug::RemoveDebugLevel ( const long int  lv)
inlineinherited

Definition at line 369 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 376 of file Debug.hh.

void MatchDataBase::Reset ( )

Definition at line 46 of file MatchDataBase.cpp.

References _C, _K, _Ki, _NormalizedPoints, _P, _Points, _R, and BIAS::Matrix3x3< T >::SetZero().

Referenced by BIAS::GenSynthMatches::Reset().

void MatchDataBase::SetData ( KMatrix K,
std::vector< RMatrixBase > &  R,
std::vector< HomgPoint3D > &  C,
std::vector< std::vector< HomgPoint2D > > &  m 
)

Definition at line 93 of file MatchDataBase.cpp.

References _Ki, _NormalizedPoints, _NumImages, _NumPoints, _Points, and _SetCamData().

void BIAS::Debug::SetDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::SetDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 325 of file Debug.hh.

void BIAS::Debug::SetDebugStream ( const std::ostream &  os)
inlineinherited

Definition at line 398 of file Debug.hh.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev)
inlinestaticinherited

Definition at line 424 of file Debug.hh.

void MatchDataBase::SetNormalizedData ( KMatrix K,
std::vector< RMatrixBase > &  R,
std::vector< HomgPoint3D > &  C,
std::vector< std::vector< HomgPoint2D > > &  m 
)
Examples:
ExampleMatchDataBase.cpp.

Definition at line 116 of file MatchDataBase.cpp.

References _K, _NormalizedPoints, _NumImages, _NumPoints, _Points, and _SetCamData().

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

prints all internally known debuglevels

Author
woelk 09/2006

Definition at line 496 of file Debug.hh.

int MatchDataBase::Write ( const std::string &  fname) const

binary write

Definition at line 153 of file MatchDataBase.cpp.

Referenced by BIAS::GenSynthMatches::Write().

int MatchDataBase::Write ( std::ostream &  os) const
virtual

binary write

Reimplemented in BIAS::GenSynthMatches.

Definition at line 167 of file MatchDataBase.cpp.

References _C, _K, _NumImages, _NumPoints, _Points, _R, and BIAS::Matrix3x3< T >::GetData().

Friends And Related Function Documentation

BIASUtils_EXPORT std::ostream& operator<< ( std::ostream &  os,
const MatchDataBase m 
)
friend
BIASUtils_EXPORT std::istream& operator>> ( std::istream &  is,
MatchDataBase m 
)
friend

Member Data Documentation

std::vector<HomgPoint3D> BIAS::MatchDataBase::_C
protected
KMatrix BIAS::MatchDataBase::_K
protected
KMatrix BIAS::MatchDataBase::_Ki
protected
long int BIAS::Debug::_liDebugLevel
protectedinherited

Definition at line 510 of file Debug.hh.

Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().

long int BIAS::Debug::_liNextDebugLevel
protectedinherited

new concept, debuglevel are managed here in the debug class

Definition at line 516 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::vector<std::vector<HomgPoint2D> > BIAS::MatchDataBase::_NormalizedPoints
protected
int* BIAS::MatchDataBase::_NumImages
protected
int * BIAS::MatchDataBase::_NumPoints
protected
std::vector<PMatrixBase> BIAS::MatchDataBase::_P
protected
std::vector<std::vector<HomgPoint2D> > BIAS::MatchDataBase::_Points
protected
std::vector<RMatrixBase> BIAS::MatchDataBase::_R
protected
std::map<std::string, long int> BIAS::Debug::_String2Debuglevel
protectedinherited

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream
staticprotectedinherited

Definition at line 511 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

long int BIAS::Debug::GlobalDebugLevel = 0
staticprotectedinherited

Definition at line 513 of file Debug.hh.


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