Go to the documentation of this file.
22 #ifndef OV_CORE_TRACK_KLT_H
23 #define OV_CORE_TRACK_KLT_H
54 explicit TrackKLT(std::unordered_map<
size_t, std::shared_ptr<CamBase>> cameras,
int numfeats,
int numaruco,
bool stereo,
55 HistogramMethod histmethod,
int fast_threshold,
int gridx,
int gridy,
int minpxdist)
93 std::vector<size_t> &ids0);
113 void perform_detection_stereo(
const std::vector<cv::Mat> &img0pyr,
const std::vector<cv::Mat> &img1pyr,
const cv::Mat &mask0,
114 const cv::Mat &mask1,
size_t cam_id_left,
size_t cam_id_right, std::vector<cv::KeyPoint> &pts0,
115 std::vector<cv::KeyPoint> &pts1, std::vector<size_t> &ids0, std::vector<size_t> &ids1);
131 void perform_matching(
const std::vector<cv::Mat> &img0pyr,
const std::vector<cv::Mat> &img1pyr, std::vector<cv::KeyPoint> &pts0,
132 std::vector<cv::KeyPoint> &pts1,
size_t id0,
size_t id1, std::vector<uchar> &mask_out);
void perform_matching(const std::vector< cv::Mat > &img0pyr, const std::vector< cv::Mat > &img1pyr, std::vector< cv::KeyPoint > &pts0, std::vector< cv::KeyPoint > &pts1, size_t id0, size_t id1, std::vector< uchar > &mask_out)
KLT track between two images, and do RANSAC afterwards.
HistogramMethod
Desired pre-processing image method.
void perform_detection_monocular(const std::vector< cv::Mat > &img0pyr, const cv::Mat &mask0, std::vector< cv::KeyPoint > &pts0, std::vector< size_t > &ids0)
Detects new features in the current image.
Struct for a collection of camera measurements.
void feed_monocular(const CameraData &message, size_t msg_id)
Process a new monocular image.
std::map< size_t, cv::Mat > img_curr
void feed_stereo(const CameraData &message, size_t msg_id_left, size_t msg_id_right)
Process new stereo pair of images.
TrackKLT(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)
Public constructor with configuration variables.
std::map< size_t, std::vector< cv::Mat > > img_pyramid_curr
void feed_new_camera(const CameraData &message) override
Process a new image.
void perform_detection_stereo(const std::vector< cv::Mat > &img0pyr, const std::vector< cv::Mat > &img1pyr, const cv::Mat &mask0, const cv::Mat &mask1, size_t cam_id_left, size_t cam_id_right, std::vector< cv::KeyPoint > &pts0, std::vector< cv::KeyPoint > &pts1, std::vector< size_t > &ids0, std::vector< size_t > &ids1)
Detects new features in the current stereo pair.
KLT tracking of features.
std::map< size_t, std::vector< cv::Mat > > img_pyramid_last
Core algorithms for OpenVINS.
Visual feature tracking base class.
ov_core
Author(s): Patrick Geneva
, Kevin Eckenhoff , Guoquan Huang
autogenerated on Mon Dec 16 2024 03:06:46