Go to the documentation of this file.
22 #ifndef OV_CORE_TRACK_DESC_H
23 #define OV_CORE_TRACK_DESC_H
53 explicit TrackDescriptor(std::unordered_map<
size_t, std::shared_ptr<CamBase>> cameras,
int numfeats,
int numaruco,
bool stereo,
54 HistogramMethod histmethod,
int fast_threshold,
int gridx,
int gridy,
int minpxdist,
double knnratio)
94 std::vector<size_t> &ids0);
117 std::vector<cv::KeyPoint> &pts0, std::vector<cv::KeyPoint> &pts1, cv::Mat &desc0, cv::Mat &desc1,
118 size_t cam_id0,
size_t cam_id1, std::vector<size_t> &ids0, std::vector<size_t> &ids1);
135 void robust_match(
const std::vector<cv::KeyPoint> &pts0,
const std::vector<cv::KeyPoint> &pts1,
const cv::Mat &desc0,
136 const cv::Mat &desc1,
size_t id0,
size_t id1, std::vector<cv::DMatch> &matches);
142 void robust_symmetry_test(std::vector<std::vector<cv::DMatch>> &matches1, std::vector<std::vector<cv::DMatch>> &matches2,
143 std::vector<cv::DMatch> &good_matches);
149 cv::Ptr<cv::ORB>
orb0 = cv::ORB::create();
150 cv::Ptr<cv::ORB>
orb1 = cv::ORB::create();
153 cv::Ptr<cv::DescriptorMatcher>
matcher = cv::DescriptorMatcher::create(
"BruteForce-Hamming");
boost::posix_time::ptime rT6
void robust_symmetry_test(std::vector< std::vector< cv::DMatch >> &matches1, std::vector< std::vector< cv::DMatch >> &matches2, std::vector< cv::DMatch > &good_matches)
HistogramMethod
Desired pre-processing image method.
void robust_ratio_test(std::vector< std::vector< cv::DMatch >> &matches)
Struct for a collection of camera measurements.
void robust_match(const std::vector< cv::KeyPoint > &pts0, const std::vector< cv::KeyPoint > &pts1, const cv::Mat &desc0, const cv::Mat &desc1, size_t id0, size_t id1, std::vector< cv::DMatch > &matches)
Find matches between two keypoint+descriptor sets.
boost::posix_time::ptime rT4
void feed_monocular(const CameraData &message, size_t msg_id)
Process a new monocular image.
void feed_stereo(const CameraData &message, size_t msg_id_left, size_t msg_id_right)
Process new stereo pair of images.
boost::posix_time::ptime rT7
boost::posix_time::ptime rT2
void perform_detection_monocular(const cv::Mat &img0, const cv::Mat &mask0, std::vector< cv::KeyPoint > &pts0, cv::Mat &desc0, std::vector< size_t > &ids0)
Detects new features in the current image.
boost::posix_time::ptime rT1
boost::posix_time::ptime rT5
void feed_new_camera(const CameraData &message) override
Process a new image.
void perform_detection_stereo(const cv::Mat &img0, const cv::Mat &img1, const cv::Mat &mask0, const cv::Mat &mask1, std::vector< cv::KeyPoint > &pts0, std::vector< cv::KeyPoint > &pts1, cv::Mat &desc0, cv::Mat &desc1, size_t cam_id0, size_t cam_id1, std::vector< size_t > &ids0, std::vector< size_t > &ids1)
Detects new features in the current stereo pair.
std::unordered_map< size_t, cv::Mat > desc_last
cv::Ptr< cv::DescriptorMatcher > matcher
boost::posix_time::ptime rT3
Descriptor-based visual tracking.
Core algorithms for OpenVINS.
Visual feature tracking base class.
TrackDescriptor(std::unordered_map< size_t, std::shared_ptr< CamBase >> cameras, int numfeats, int numaruco, bool stereo, HistogramMethod histmethod, int fast_threshold, int gridx, int gridy, int minpxdist, double knnratio)
Public constructor with configuration variables.
ov_core
Author(s): Patrick Geneva
, Kevin Eckenhoff , Guoquan Huang
autogenerated on Mon Dec 16 2024 03:06:46