this is the map point class, this class store sparse 3D point.
More...
#include <MapPointObject.h>
|
static Ptr | Create (int ID) |
|
static void | cvMat2Sophus (const cv::Mat1d &Mat, Sophus::SE3d &Pose) |
| create shared pointer of DataFlowObject, do NOT use this method directly, use the Create() method in derived class. More...
|
|
static void | Sophus2cvMat (const Sophus::SE3d &pose, cv::Mat1d &Mat) |
|
static cv::Mat1d | Rt2T (const cv::Mat1d &R, const cv::Mat1d &t) |
|
static std::tuple< cv::Mat1d, cv::Mat1d > | T2Rt (const cv::Mat1d &T) |
|
|
cv::Mat | KeyPointDescriptor |
| the discriptor of map point related 2D key point
|
|
Eigen::Vector4d | Position |
| the global coordinate of the map point
|
|
Eigen::Vector3d | Normal |
| the observation direction of the map point
|
|
|
bool | isDirExist (std::string path) |
| check if the directory is exist. More...
|
|
bool | mkdir (std::string path) |
| create directory in given path. More...
|
|
this is the map point class, this class store sparse 3D point.
◆ MapPointObject() [1/2]
MapPointObject::MapPointObject |
( |
| ) |
|
◆ MapPointObject() [2/2]
MapPointObject::MapPointObject |
( |
int |
ID | ) |
|
◆ addObservation()
bool MapPointObject::addObservation |
( |
std::shared_ptr< FrameObject > |
Frame, |
|
|
int |
KeyPointID |
|
) |
| |
add one observation
- Parameters
-
Frame | the frame of observation |
KeyPointID | the keypoint id of observation in the frame |
- Returns
- true add succeed
-
false add failed
◆ Create()
MapPointObject::Ptr MapPointObject::Create |
( |
int |
ID | ) |
|
|
static |
◆ getAllObservation() [1/2]
bool MapPointObject::getAllObservation |
( |
std::set< int > & |
ids | ) |
|
Get all the Observation frame id.
- Parameters
-
- Returns
◆ getAllObservation() [2/2]
bool MapPointObject::getAllObservation |
( |
std::set< std::shared_ptr< FrameObject > > & |
Frames | ) |
|
Get the All Observation object.
- Parameters
-
Frames | vector of pointers of frame |
- Returns
- true get succeed
-
false get failed
◆ getID()
int MapPointObject::getID |
( |
| ) |
|
Get the Frame ID.
- Returns
- int unique MapPoint ID
◆ getMapPointQuality()
double MapPointObject::getMapPointQuality |
( |
| ) |
|
Get the Map Point Quality object.
- Returns
- double the map point quality from 0 to 1
◆ getObservation()
bool MapPointObject::getObservation |
( |
int |
FrameID, |
|
|
std::shared_ptr< FrameObject > & |
Frame, |
|
|
int & |
KeyPointID |
|
) |
| |
Get the Observation object.
- Parameters
-
FrameID | FrameID |
Frame | the shared pointer of frame |
KeyPointID | the keypoint id of observation in the frame |
- Returns
- true get succeed
-
false get failed, may be the observation is not exist
◆ getObservedTimes()
int MapPointObject::getObservedTimes |
( |
| ) |
|
Get the Observed Times.
- Returns
- int the times of observation
◆ load()
bool MapPointObject::load |
( |
JsonNode & |
fs | ) |
|
|
overridevirtual |
load data and settings from file
this method will load data such as keypoints, descriptors, translation matrices in DataFlowObject and its sub-classes from the given JsonNode instance. or will load parameters and settings in WorkFlowObject and its sub-classes to the given JsonNode instance, and automatically initialize the WorkFlow with these parameters
- Parameters
-
- Returns
- true load successfully
-
false load failed or initialization falied.
Implements MVSObject.
◆ removeObservation()
bool MapPointObject::removeObservation |
( |
std::shared_ptr< FrameObject > |
Frame | ) |
|
remove one observation
- Parameters
-
Frame | the frame of observation |
- Returns
- true remove succeed
-
false remove failed
◆ save()
bool MapPointObject::save |
( |
JsonNode & |
fs | ) |
|
|
overridevirtual |
save data and settings to file
this method will save data such as keypoints, descriptors, translation matrices in DataFlowObject and its sub-classes to the given JsonNode instance, or will save parameters and settings in WorkFlowObject and its sub-classes to the given JsonNode instance.
- Parameters
-
- Returns
- true save successfully
-
false save failed
Implements MVSObject.
◆ setMapPointQuality()
bool MapPointObject::setMapPointQuality |
( |
double |
quality | ) |
|
Set the Map Point Quality object.
- Parameters
-
quality | the mappoint quality from 0 to 1 |
- Returns
- true set succeed
-
false set faled
◆ type_name()
std::string MapPointObject::type_name |
( |
| ) |
|
|
overridevirtual |
get the typename.
- Returns
Reimplemented from MVSObject.
◆ updateObservation()
bool MapPointObject::updateObservation |
( |
std::shared_ptr< FrameObject > |
Frame, |
|
|
int |
KeyPointID = -1 |
|
) |
| |
update the observation info
- Parameters
-
Frame | the pointer of oervation frame |
KeyPointID | the keypoint id of observation in the frame |
- Returns
- true update succeed
-
false update failed, may be the observation is not exist, or input is invalid
The documentation for this class was generated from the following files:
- C:/Users/ZhouZishun/Documents/Workspace/EasyMVS/core/common/MapPointObject.h
- C:/Users/ZhouZishun/Documents/Workspace/EasyMVS/core/common/MapPointObject.cpp