SaDVIO
Classes | Public Member Functions | List of all members
isae::EdgeletFeatureDetector Class Reference

#include <Edgelet2DFeatureDetector.h>

Inheritance diagram for isae::EdgeletFeatureDetector:
Inheritance graph
[legend]
Collaboration diagram for isae::EdgeletFeatureDetector:
Collaboration graph
[legend]

Public Member Functions

 EdgeletFeatureDetector (int n, int n_per_cell, double max_matching_dist=250)
 
void customDetectAndCompute (const cv::Mat &img, const cv::Mat &mask, std::vector< std::shared_ptr< AFeature >> &features) override
 
void computeDescriptor (const cv::Mat &img, std::vector< std::shared_ptr< AFeature >> &features) override
 
void computeLineDescriptor (const cv::Mat &img, const std::vector< cv::KeyPoint > &kps, const std::vector< cv::Point2f > &orientations, cv::Mat &descriptors)
 
void init () override
 
double getDist (const cv::Mat &desc1, const cv::Mat &desc2) const override
 
- Public Member Functions inherited from isae::ACustomFeatureDetector
 ACustomFeatureDetector (int n, int n_per_cell)
 
void detectAndCompute (const cv::Mat &img, const cv::Mat &mask, std::vector< cv::KeyPoint > &keypoints, cv::Mat &descriptors, int n_points=0)
 
std::vector< std::shared_ptr< AFeature > > detectAndComputeGrid (const cv::Mat &img, const cv::Mat &mask, std::vector< std::shared_ptr< AFeature >> existing_features=std::vector< std::shared_ptr< AFeature >>())
 
- Public Member Functions inherited from isae::AFeatureDetector
EIGEN_MAKE_ALIGNED_OPERATOR_NEW AFeatureDetector ()
 
 AFeatureDetector (int n, int n_per_cell)
 
 ~AFeatureDetector ()
 
size_t getNbDesiredFeatures ()
 
double getMaxMatchingDist () const
 
bool getFeaturesInBox (int x, int y, int w, int h, const std::vector< std::shared_ptr< AFeature >> &features, std::vector< std::shared_ptr< AFeature >> &features_in_box) const
 
void deleteUndescribedFeatures (std::vector< std::shared_ptr< AFeature >> &features)
 

Additional Inherited Members

- Static Public Member Functions inherited from isae::AFeatureDetector
static void KeypointToFeature (std::vector< cv::KeyPoint > keypoints, cv::Mat descriptors, std::vector< std::shared_ptr< AFeature >> &features, const std::string &featurelabel="pointxd")
 
static void FeatureToKeypoint (std::vector< std::shared_ptr< AFeature >> features, std::vector< cv::KeyPoint > &keypoints, cv::Mat &descriptors)
 
static void FeatureToP2f (std::vector< std::shared_ptr< AFeature >> features, std::vector< cv::Point2f > &p2fs)
 
- Protected Member Functions inherited from isae::ACustomFeatureDetector
const int getDefaultNorm () const
 
- Protected Attributes inherited from isae::ACustomFeatureDetector
int _defaultNorm
 
- Protected Attributes inherited from isae::AFeatureDetector
int _n_total
 
int _n_per_cell
 
double _max_matching_dist
 

Constructor & Destructor Documentation

◆ EdgeletFeatureDetector()

isae::EdgeletFeatureDetector::EdgeletFeatureDetector ( int  n,
int  n_per_cell,
double  max_matching_dist = 250 
)
inline

Member Function Documentation

◆ computeDescriptor()

void isae::EdgeletFeatureDetector::computeDescriptor ( const cv::Mat &  img,
std::vector< std::shared_ptr< AFeature >> &  features 
)
overridevirtual

TODO check why there is some features with coordinates outside the image !!!

Implements isae::ACustomFeatureDetector.

◆ computeLineDescriptor()

void isae::EdgeletFeatureDetector::computeLineDescriptor ( const cv::Mat &  img,
const std::vector< cv::KeyPoint > &  kps,
const std::vector< cv::Point2f > &  orientations,
cv::Mat &  descriptors 
)

◆ customDetectAndCompute()

void isae::EdgeletFeatureDetector::customDetectAndCompute ( const cv::Mat &  img,
const cv::Mat &  mask,
std::vector< std::shared_ptr< AFeature >> &  features 
)
overridevirtual

◆ getDist()

double isae::EdgeletFeatureDetector::getDist ( const cv::Mat &  desc1,
const cv::Mat &  desc2 
) const
overridevirtual

◆ init()

void isae::EdgeletFeatureDetector::init ( )
overridevirtual

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