Basic Image AlgorithmS Library
2.8.0
|
class for representing matches, used in GenSynthMatches and biasshowsm More...
#include <Utils/MatchDataBase.hh>
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 ¶) | |
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 ¶) |
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) |
class for representing matches, used in GenSynthMatches and biasshowsm
Definition at line 46 of file MatchDataBase.hh.
MatchDataBase::MatchDataBase | ( | Param & | para | ) |
Definition at line 36 of file MatchDataBase.cpp.
References _AddParameter(), _NumImages, and _NumPoints.
Referenced by BIAS::GenSynthMatches::operator=().
|
virtual |
Definition at line 43 of file MatchDataBase.cpp.
|
protectedvirtual |
Reimplemented in BIAS::GenSynthMatches.
Definition at line 272 of file MatchDataBase.cpp.
References _NumImages, _NumPoints, BIAS::Param::AddParamInt(), BIAS::Param::CheckParam(), BIAS::Param::GetFreeGroupID(), BIAS::Param::GetGroupID(), and BIAS::Param::GetParamInt().
Referenced by MatchDataBase().
|
protected |
Definition at line 139 of file MatchDataBase.cpp.
References _C, _K, _Ki, _P, _R, and BIAS::KMatrix::Invert().
Referenced by SetData(), and SetNormalizedData().
|
inlineprotected |
Definition at line 130 of file MatchDataBase.hh.
Referenced by GetCorrespondences(), and GetNormalizedCorrespondences().
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
void MatchDataBase::GetC | ( | int | imNo, |
HomgPoint3D & | C | ||
) | const |
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().
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
void MatchDataBase::GetK | ( | KMatrix & | K | ) | const |
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 |
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.
|
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 |
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 |
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.
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
bool MatchDataBase::operator== | ( | MatchDataBase & | l | ) |
Definition at line 242 of file MatchDataBase.cpp.
References _C, _K, _Ki, _NormalizedPoints, _NumImages, _NumPoints, _P, _Points, and _R.
|
inlineinherited |
int MatchDataBase::Read | ( | const std::string & | fname | ) |
binary read
Definition at line 193 of file MatchDataBase.cpp.
Referenced by BIAS::GenSynthMatches::Read().
|
virtual |
binary read
Reimplemented in BIAS::GenSynthMatches.
Definition at line 206 of file MatchDataBase.cpp.
References _C, _K, _Ki, _NormalizedPoints, _NumImages, _NumPoints, _P, _Points, _R, BIAS::Matrix3x3< T >::GetData(), and BIAS::KMatrix::Invert().
|
inlineinherited |
|
inlineinherited |
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().
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
void MatchDataBase::SetNormalizedData | ( | KMatrix & | K, |
std::vector< RMatrixBase > & | R, | ||
std::vector< HomgPoint3D > & | C, | ||
std::vector< std::vector< HomgPoint2D > > & | m | ||
) |
Definition at line 116 of file MatchDataBase.cpp.
References _K, _NormalizedPoints, _NumImages, _NumPoints, _Points, and _SetCamData().
|
inlineinherited |
int MatchDataBase::Write | ( | const std::string & | fname | ) | const |
binary write
Definition at line 153 of file MatchDataBase.cpp.
Referenced by BIAS::GenSynthMatches::Write().
|
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().
|
friend |
|
friend |
|
protected |
Definition at line 115 of file MatchDataBase.hh.
Referenced by BIAS::GenSynthMatches::_AreMovingObjectsVisible(), BIAS::GenSynthMatches::_CreateCamMovement(), _SetCamData(), GetC(), BIAS::GenSynthMatches::operator=(), operator==(), Read(), Reset(), and Write().
|
protected |
Definition at line 111 of file MatchDataBase.hh.
Referenced by BIAS::GenSynthMatches::_CreateCamMovement(), _SetCamData(), GetK(), BIAS::operator<<(), operator==(), Read(), BIAS::GenSynthMatches::Read(), Reset(), SetNormalizedData(), and Write().
|
protected |
Definition at line 111 of file MatchDataBase.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateMoving2DPoints(), BIAS::GenSynthMatches::_CreateMovingGT2DPoints(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::GenSynthMatches::_CreateStaticGT2DPoints(), _SetCamData(), operator==(), Read(), BIAS::GenSynthMatches::Read(), Reset(), and SetData().
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protected |
Definition at line 122 of file MatchDataBase.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateMoving2DPoints(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), GetNormalizedCorrespondences(), GetNormalizedPoints(), BIAS::operator<<(), BIAS::GenSynthMatches::operator=(), operator==(), Read(), Reset(), SetData(), and SetNormalizedData().
|
protected |
Definition at line 108 of file MatchDataBase.hh.
Referenced by _AddParameter(), BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_AreMovingObjectsVisible(), BIAS::GenSynthMatches::_CheckParams(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateMoving2DPoints(), BIAS::GenSynthMatches::_CreateMoving3DPoints(), BIAS::GenSynthMatches::_CreateMovingGT2DPoints(), BIAS::GenSynthMatches::_CreateMovingTransforms(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::GenSynthMatches::_CreateStatic3DPoints(), BIAS::GenSynthMatches::_CreateStaticGT2DPoints(), BIAS::GenSynthMatches::_Draw(), BIAS::GenSynthMatches::_DrawPoints(), BIAS::GenSynthMatches::CreateMoving3DPoint(), BIAS::GenSynthMatches::CreateStatic3DPoint(), BIAS::GenSynthMatches::GetGTNormalizedF(), MatchDataBase(), BIAS::operator<<(), operator==(), Read(), BIAS::GenSynthMatches::Read(), SetData(), SetNormalizedData(), Write(), and BIAS::GenSynthMatches::Write().
|
protected |
Definition at line 108 of file MatchDataBase.hh.
Referenced by _AddParameter(), BIAS::GenSynthMatches::_CheckParams(), BIAS::GenSynthMatches::GetInliers(), MatchDataBase(), BIAS::operator<<(), operator==(), Read(), SetData(), SetNormalizedData(), and Write().
|
protected |
Definition at line 117 of file MatchDataBase.hh.
Referenced by BIAS::GenSynthMatches::_AreMovingObjectsVisible(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateMoving2DPoints(), BIAS::GenSynthMatches::_CreateMoving3DPoints(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::GenSynthMatches::_CreateStatic3DPoints(), _SetCamData(), BIAS::GenSynthMatches::CreateMoving3DPoint(), BIAS::GenSynthMatches::CreateStatic3DPoint(), GetP(), BIAS::operator<<(), BIAS::GenSynthMatches::operator=(), operator==(), Read(), and Reset().
|
protected |
Definition at line 121 of file MatchDataBase.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateMoving2DPoints(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::GenSynthMatches::DrawNoisy(), GetCorrespondences(), GetPoints(), BIAS::operator<<(), BIAS::GenSynthMatches::operator=(), operator==(), Read(), Reset(), SetData(), SetNormalizedData(), and Write().
|
protected |
Definition at line 113 of file MatchDataBase.hh.
Referenced by BIAS::GenSynthMatches::_AreMovingObjectsVisible(), BIAS::GenSynthMatches::_CreateCamMovement(), _SetCamData(), GetR(), BIAS::GenSynthMatches::operator=(), operator==(), Read(), Reset(), and Write().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |