BitmapToolkit Scol plugin
|
ArFeaturedMarker.h
Go to the documentation of this file.
52 void setTrainFeatureDetector(const cv::Ptr<cv::FeatureDetector>& detect) { traindetector_ = detect; }
67 void symmetryTest(const std::vector<std::vector<cv::DMatch> >& matches1, const std::vector<std::vector<cv::DMatch> >& matches2, std::vector<cv::DMatch>& symMatches);
70 void robustMatch(const cv::Mat& frame, std::vector<cv::DMatch>& good_matches, std::vector<cv::KeyPoint>& keypoints_frame, const cv::Mat& descriptors_model, const cv::Mat& mask);
73 void fastRobustMatch(const cv::Mat& frame, std::vector<cv::DMatch>& good_matches, std::vector<cv::KeyPoint>& keypoints_frame, const cv::Mat& mask);
118 ArFeaturedMarker(std::string filePath, unsigned int nid, float size, unsigned int maxFeatures = 600);
142 void calculateFeaturedExtrinsics(float markerSize, aruco::CameraParameters& camParams, bool setYPerpendicular = true);
188 bool GetPointsFromMatches(const std::vector<cv::KeyPoint> &querykeypoints, const std::vector<cv::KeyPoint> &trainKeypoints, std::vector<cv::DMatch> matches, std::vector<cv::Point2f> &trainPoints, std::vector<cv::Point2f> &framePoints);
192 bool GetHomography(std::vector<cv::Point2f> &trainPoints, std::vector<cv::Point2f> &framePoints, cv::Mat &HMatrix);
This class represents a marker. It is a vector of the fours corners ot the marker.
Definition ArFeaturedMarker.h:104
std::vector< cv::Point2f > m_lastCorner
Definition ArFeaturedMarker.h:114
void Update(cv::Mat frame, cv::Mat color, aruco::CameraParameters &camparam, bool reverse)
Definition ArFeaturedMarker.cpp:903
void calculateFeaturedExtrinsics(float markerSize, aruco::CameraParameters &camParams, bool setYPerpendicular=true)
Definition ArFeaturedMarker.cpp:838
void RegisterNextFrame(cv::Point point, cv::Size size)
Definition ArFeaturedMarker.cpp:442
bool detectFeatured(cv::Mat &frame, cv::Mat &color, cv::Size camsize)
Definition ArFeaturedMarker.cpp:677
bool GetWarpedMarker(cv::Mat &image)
Definition ArFeaturedMarker.cpp:665
void SetTrackedImage(cv::Mat tpl)
Definition ArFeaturedMarker.cpp:307
std::vector< cv::Point2f > m_prevFramePoints
Definition ArFeaturedMarker.h:109
Definition ArMarker.h:38
Definition Prerequisites.h:549
Definition ArFeaturedMarker.h:43
void setDescriptorMatcher(const cv::Ptr< cv::DescriptorMatcher > &match)
Definition ArFeaturedMarker.h:55
void setFeatureDetector(const cv::Ptr< cv::FeatureDetector > &detect)
Definition ArFeaturedMarker.h:49
bool addTrainData(const cv::Mat &frame, std::vector< cv::KeyPoint > &marker_keypoints)
Definition ArFeaturedMarker.cpp:193
void fastRobustMatch(const cv::Mat &frame, std::vector< cv::DMatch > &good_matches, std::vector< cv::KeyPoint > &keypoints_frame, const cv::Mat &mask)
Definition ArFeaturedMarker.cpp:170
int ratioTest(std::vector< std::vector< cv::DMatch > > &matches)
Definition ArFeaturedMarker.cpp:102
void setTrainFeatureDetector(const cv::Ptr< cv::FeatureDetector > &detect)
Definition ArFeaturedMarker.h:52
void robustMatch(const cv::Mat &frame, std::vector< cv::DMatch > &good_matches, std::vector< cv::KeyPoint > &keypoints_frame, const cv::Mat &descriptors_model, const cv::Mat &mask)
Definition ArFeaturedMarker.cpp:143
void symmetryTest(const std::vector< std::vector< cv::DMatch > > &matches1, const std::vector< std::vector< cv::DMatch > > &matches2, std::vector< cv::DMatch > &symMatches)
Definition ArFeaturedMarker.cpp:127
Generated by 1.9.8