EasyMVS
simple 3D reconstruction framework
Public Types | Public Member Functions | Static Public Member Functions | List of all members
CVFeatureExtractor Class Reference
Inheritance diagram for CVFeatureExtractor:
Inheritance graph
[legend]
Collaboration diagram for CVFeatureExtractor:
Collaboration graph
[legend]

Public Types

using Ptr = std::shared_ptr< CVFeatureExtractor >
 
- Public Types inherited from FeatureExtractor
using Ptr = std::shared_ptr< FeatureExtractor >
 shared pointer type of FeatureExtractor
 
- Public Types inherited from WorkFlowObject
using DataQueue = std::queue< DataFlowObject::Ptr >
 
using Ptr = std::shared_ptr< WorkFlowObject >
 shared pointer of WorkFlowObject
 

Public Member Functions

virtual bool load (JsonNode &fs) override
 load data and settings from file More...
 
virtual bool save (JsonNode &fs) override
 save data and settings to file More...
 
virtual std::string type_name () override
 Get the Flow Name. More...
 
- Public Member Functions inherited from FeatureExtractor
 FeatureExtractor ()
 Construct a new Feature Extractor object.
 
virtual ~FeatureExtractor ()
 Destroy the Feature Extractor object.
 
virtual std::string type_name () override
 Get the Flow Name. More...
 
bool clear () override
 clear the workflow state, the workflow should be re-init after clear. More...
 
bool Compute (FrameObject::Ptr frame)
 detect feature points and compute the descriptors of the frame More...
 
- Public Member Functions inherited from WorkFlowObject
 WorkFlowObject ()
 Construct a new Work Flow Object object.
 
virtual ~WorkFlowObject ()
 Destroy the Work Flow Object object.
 
virtual bool clear ()=0
 clear the workflow state, the workflow should be re-init after clear. More...
 
virtual bool isInit ()
 check if the workflow is inited More...
 
- Public Member Functions inherited from MVSObject
 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...
 

Static Public Member Functions

static CVFeatureExtractor::Ptr Create ()
 

Additional Inherited Members

- Public Slots inherited from FeatureExtractor
void Trigger ()
 
void Trigger (DataQueue data) override
 
- Public Slots inherited from WorkFlowObject
virtual void Trigger ()=0
 trigger one work load of the workflow with preload input and output settings.
 
virtual void Trigger (DataQueue data)=0
 trigger one work load of the workflow with input data. More...
 
- Signals inherited from WorkFlowObject
void Finished (DataQueue)
 the current work load of the workflow is finished, and the processeed data pointer is stored in the queue, the workflow can be assigned to new work load with trigger() method More...
 
void Finished ()
 the current work load of the workflow is finished, the workflow can be assigned to new work load with trigger() method
 
void Failed ()
 the current work failed.
 
void Error (std::string error)
 emit error message More...
 
void Progress (int progress)
 emit percentage of the work load 0-100 More...
 
void Warning (std::string warning)
 emit warning output message More...
 
void Info (std::string info)
 emit information output message More...
 
- Protected Member Functions inherited from MVSObject
bool isDirExist (std::string path)
 check if the directory is exist. More...
 
bool mkdir (std::string path)
 create directory in given path. More...
 
- Protected Attributes inherited from FeatureExtractor
cv::Ptr< cv::Feature2D > detector
 
- Protected Attributes inherited from WorkFlowObject
bool m_isInit = false
 default indicator of wether the workflow is initialized, the workflow may or may not use this variable to indicate if its initialized, it depends on the implementation of isInit() method.
 

Member Function Documentation

◆ load()

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

Implements MVSObject.

◆ save()

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

Implements MVSObject.

◆ type_name()

std::string CVFeatureExtractor::type_name ( )
overridevirtual

Get the Flow Name.

Returns
std::string flow name

Reimplemented from FeatureExtractor.


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