SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
#include <WAIMapPoint.h>
Public Types | |
enum | RefKfSource { RefKfSource_None = 0 , RefKfSource_Constructor = 1 , RefKfSource_EraseObservation = 2 } |
Public Attributes | |
RefKfSource | refKfSource = RefKfSource_None |
long unsigned int | mnId = -1 |
long int | mnFirstKFid |
int | nObs = 0 |
float | mTrackProjX = 0.0f |
float | mTrackProjY = 0.0f |
bool | mbTrackInView = false |
int | mnTrackScaleLevel = 0 |
float | mTrackViewCos = 0.0f |
long unsigned int | mnLastFrameSeen = 0 |
int | mnMarker [7] |
long unsigned int | mnCorrectedByKF |
long unsigned int | mnCorrectedReference |
cv::Mat | mPosGBA |
Static Public Attributes | |
static long unsigned int | nNextId = 0 |
static std::mutex | mGlobalMutex |
static std::mutex | mMutexMapPointCreation |
Protected Attributes | |
bool | _fixed = false |
bool | _loadedFromMap = false |
cv::Mat | mWorldPos |
std::map< WAIKeyFrame *, size_t > | mObservations |
cv::Mat | mNormalVector |
cv::Mat | mDescriptor |
WAIKeyFrame * | mpRefKF = NULL |
int | mnVisible = 0 |
int | mnFound = 0 |
bool | mbBad = false |
WAIMapPoint * | mpReplaced |
float | mfMinDistance = 0.f |
float | mfMaxDistance = 0.f |
std::mutex | mMutexPos |
std::mutex | mMutexFeatures |
Definition at line 39 of file WAIMapPoint.h.
Enumerator | |
---|---|
RefKfSource_None | |
RefKfSource_Constructor | |
RefKfSource_EraseObservation |
Definition at line 93 of file WAIMapPoint.h.
WAIMapPoint::WAIMapPoint | ( | int | id, |
const cv::Mat & | Pos, | ||
bool | fixMp | ||
) |
constructor used during map loading
Definition at line 22 of file WAIMapPoint.cpp.
WAIMapPoint::WAIMapPoint | ( | const cv::Mat & | Pos, |
WAIKeyFrame * | pRefKF | ||
) |
Definition at line 56 of file WAIMapPoint.cpp.
void WAIMapPoint::AddObservation | ( | WAIKeyFrame * | pKF, |
size_t | idx | ||
) |
Definition at line 157 of file WAIMapPoint.cpp.
void WAIMapPoint::ComputeDistinctiveDescriptors | ( | ) |
Definition at line 313 of file WAIMapPoint.cpp.
void WAIMapPoint::EraseObservation | ( | WAIKeyFrame * | pKF | ) |
Definition at line 166 of file WAIMapPoint.cpp.
cv::Mat WAIMapPoint::GetDescriptor | ( | ) |
Definition at line 405 of file WAIMapPoint.cpp.
float WAIMapPoint::GetFoundRatio | ( | ) |
Definition at line 307 of file WAIMapPoint.cpp.
int WAIMapPoint::GetIndexInKeyFrame | ( | WAIKeyFrame * | pKF | ) |
Definition at line 417 of file WAIMapPoint.cpp.
float WAIMapPoint::GetMaxDistance | ( | ) |
Definition at line 493 of file WAIMapPoint.cpp.
float WAIMapPoint::GetMaxDistanceInvariance | ( | ) |
Definition at line 482 of file WAIMapPoint.cpp.
float WAIMapPoint::GetMinDistance | ( | ) |
Definition at line 488 of file WAIMapPoint.cpp.
float WAIMapPoint::GetMinDistanceInvariance | ( | ) |
Definition at line 476 of file WAIMapPoint.cpp.
cv::Mat WAIMapPoint::GetNormal | ( | ) |
Definition at line 139 of file WAIMapPoint.cpp.
std::map< WAIKeyFrame *, size_t > WAIMapPoint::GetObservations | ( | ) |
Definition at line 214 of file WAIMapPoint.cpp.
WAIKeyFrame * WAIMapPoint::GetReferenceKeyFrame | ( | ) |
Definition at line 151 of file WAIMapPoint.cpp.
WAIMapPoint * WAIMapPoint::GetReplaced | ( | ) |
Definition at line 243 of file WAIMapPoint.cpp.
size_t WAIMapPoint::getSizeOf | ( | ) |
Definition at line 554 of file WAIMapPoint.cpp.
size_t WAIMapPoint::getSizeOfCvMat | ( | const cv::Mat & | mat | ) |
Definition at line 542 of file WAIMapPoint.cpp.
cv::Mat WAIMapPoint::GetWorldPos | ( | ) |
Definition at line 133 of file WAIMapPoint.cpp.
void WAIMapPoint::IncreaseFound | ( | int | n = 1 | ) |
Definition at line 301 of file WAIMapPoint.cpp.
void WAIMapPoint::IncreaseVisible | ( | int | n = 1 | ) |
Definition at line 295 of file WAIMapPoint.cpp.
bool WAIMapPoint::isBad | ( | ) |
Definition at line 288 of file WAIMapPoint.cpp.
|
inline |
Definition at line 105 of file WAIMapPoint.h.
bool WAIMapPoint::IsInKeyFrame | ( | WAIKeyFrame * | pKF | ) |
Definition at line 426 of file WAIMapPoint.cpp.
|
inline |
Definition at line 106 of file WAIMapPoint.h.
WAI::V3 WAIMapPoint::normalVec | ( | ) |
Definition at line 113 of file WAIMapPoint.cpp.
int WAIMapPoint::Observations | ( | ) |
Definition at line 220 of file WAIMapPoint.cpp.
int WAIMapPoint::PredictScale | ( | const float & | currentDist, |
WAIFrame * | pF | ||
) |
Definition at line 525 of file WAIMapPoint.cpp.
int WAIMapPoint::PredictScale | ( | const float & | currentDist, |
WAIKeyFrame * | pF | ||
) |
Definition at line 508 of file WAIMapPoint.cpp.
|
inline |
Definition at line 90 of file WAIMapPoint.h.
|
inline |
Definition at line 91 of file WAIMapPoint.h.
void WAIMapPoint::Replace | ( | WAIMapPoint * | pMP | ) |
Definition at line 250 of file WAIMapPoint.cpp.
void WAIMapPoint::SetBadFlag | ( | ) |
Definition at line 226 of file WAIMapPoint.cpp.
void WAIMapPoint::SetDescriptor | ( | const cv::Mat & | descriptor | ) |
Definition at line 411 of file WAIMapPoint.cpp.
void WAIMapPoint::SetMaxDistance | ( | float | maxDist | ) |
Definition at line 498 of file WAIMapPoint.cpp.
void WAIMapPoint::SetMinDistance | ( | float | minDist | ) |
Definition at line 503 of file WAIMapPoint.cpp.
void WAIMapPoint::SetNormal | ( | const cv::Mat & | normal | ) |
Definition at line 145 of file WAIMapPoint.cpp.
void WAIMapPoint::SetWorldPos | ( | const cv::Mat & | Pos | ) |
Definition at line 126 of file WAIMapPoint.cpp.
void WAIMapPoint::UpdateNormalAndDepth | ( | ) |
Definition at line 433 of file WAIMapPoint.cpp.
WAI::V3 WAIMapPoint::worldPosVec | ( | ) |
|
protected |
Definition at line 148 of file WAIMapPoint.h.
|
protected |
Definition at line 150 of file WAIMapPoint.h.
|
protected |
Definition at line 173 of file WAIMapPoint.h.
bool WAIMapPoint::mbTrackInView = false |
Definition at line 120 of file WAIMapPoint.h.
|
protected |
Definition at line 163 of file WAIMapPoint.h.
|
protected |
Definition at line 178 of file WAIMapPoint.h.
|
protected |
Definition at line 177 of file WAIMapPoint.h.
|
static |
Definition at line 137 of file WAIMapPoint.h.
|
protected |
Definition at line 181 of file WAIMapPoint.h.
|
static |
Definition at line 138 of file WAIMapPoint.h.
|
protected |
Definition at line 180 of file WAIMapPoint.h.
long unsigned int WAIMapPoint::mnCorrectedByKF |
Definition at line 132 of file WAIMapPoint.h.
long unsigned int WAIMapPoint::mnCorrectedReference |
Definition at line 133 of file WAIMapPoint.h.
long int WAIMapPoint::mnFirstKFid |
Definition at line 111 of file WAIMapPoint.h.
|
protected |
Definition at line 170 of file WAIMapPoint.h.
long unsigned int WAIMapPoint::mnId = -1 |
Definition at line 108 of file WAIMapPoint.h.
long unsigned int WAIMapPoint::mnLastFrameSeen = 0 |
Definition at line 124 of file WAIMapPoint.h.
int WAIMapPoint::mnMarker[7] |
Definition at line 128 of file WAIMapPoint.h.
|
protected |
Definition at line 160 of file WAIMapPoint.h.
int WAIMapPoint::mnTrackScaleLevel = 0 |
Definition at line 121 of file WAIMapPoint.h.
|
protected |
Definition at line 169 of file WAIMapPoint.h.
|
protected |
Definition at line 157 of file WAIMapPoint.h.
cv::Mat WAIMapPoint::mPosGBA |
Definition at line 134 of file WAIMapPoint.h.
|
protected |
Definition at line 166 of file WAIMapPoint.h.
|
protected |
Definition at line 174 of file WAIMapPoint.h.
float WAIMapPoint::mTrackProjX = 0.0f |
Definition at line 116 of file WAIMapPoint.h.
float WAIMapPoint::mTrackProjY = 0.0f |
Definition at line 117 of file WAIMapPoint.h.
float WAIMapPoint::mTrackViewCos = 0.0f |
Definition at line 122 of file WAIMapPoint.h.
|
protected |
Definition at line 154 of file WAIMapPoint.h.
|
static |
Definition at line 110 of file WAIMapPoint.h.
int WAIMapPoint::nObs = 0 |
Definition at line 112 of file WAIMapPoint.h.
RefKfSource WAIMapPoint::refKfSource = RefKfSource_None |
Definition at line 100 of file WAIMapPoint.h.