EasyMVS
simple 3D reconstruction framework
Public Member Functions | Protected Member Functions | List of all members
MVSObject Class Referenceabstract

the base class of all MVS objects More...

#include <MVSObject.h>

Inheritance diagram for MVSObject:
Inheritance graph
[legend]

Public Member Functions

 MVSObject ()
 Construct a new MVSObject object.
 
virtual ~MVSObject ()
 Destroy the MVSObject object.
 
virtual bool save (JsonNode &fs)=0
 save data and settings to file More...
 
virtual bool load (JsonNode &fs)=0
 load data and settings from file More...
 
virtual std::string type_name ()
 get the typename. More...
 

Protected Member Functions

bool isDirExist (std::string path)
 check if the directory is exist. More...
 
bool mkdir (std::string path)
 create directory in given path. More...
 

Detailed Description

the base class of all MVS objects

Member Function Documentation

◆ isDirExist()

bool MVSObject::isDirExist ( std::string  path)
protected

check if the directory is exist.

Parameters
pathdirectory
Returns

◆ load()

virtual bool MVSObject::load ( JsonNode &  fs)
pure virtual

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
fsthe json handler
Returns
true load successfully
false load failed or initialization falied.

Implemented in PinholeImageReader, Photographer, CameraObject, PinholeCamera, FrameObject::RelatedFrameInfo, FrameObject, PinholeFrameObject, GlobalMapObject, MapPointObject, DenseReconstructor, DualFrameReconstructor, OptimalFrameFinder, CVFeatureExtractor, FeatureMatcher, VocTreeMatcher, and PinholePoseReconstructor.

◆ mkdir()

bool MVSObject::mkdir ( std::string  path)
protected

create directory in given path.

Parameters
path
Returns
if create succeed or the directory already exist, return true, otherwise return false

◆ save()

virtual bool MVSObject::save ( JsonNode &  fs)
pure virtual

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
fsthe json handler
Returns
true save successfully
false save failed

Implemented in PinholeImageReader, Photographer, CameraObject, PinholeCamera, FrameObject::RelatedFrameInfo, FrameObject, PinholeFrameObject, GlobalMapObject, MapPointObject, DenseReconstructor, DualFrameReconstructor, OptimalFrameFinder, CVFeatureExtractor, FeatureMatcher, VocTreeMatcher, and PinholePoseReconstructor.

◆ type_name()

std::string MVSObject::type_name ( )
virtual

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