#include <Features2d.h>
Public Types | |
enum | Type { kFeatureUndef =-1, kFeatureSurf =0, kFeatureSift =1, kFeatureOrb =2, kFeatureFastFreak =3, kFeatureFastBrief =4, kFeatureGfttFreak =5, kFeatureGfttBrief =6, kFeatureBrisk =7, kFeatureGfttOrb =8, kFeatureKaze =9, kFeatureOrbOctree =10, kFeatureSuperPointTorch =11, kFeatureSurfFreak =12, kFeatureGfttDaisy =13, kFeatureSurfDaisy =14, kFeaturePyDetector =15 } |
Public Member Functions | |
cv::Mat | generateDescriptors (const cv::Mat &image, std::vector< cv::KeyPoint > &keypoints) const |
std::vector< cv::KeyPoint > | generateKeypoints (const cv::Mat &image, const cv::Mat &mask=cv::Mat()) |
std::vector< cv::Point3f > | generateKeypoints3D (const SensorData &data, const std::vector< cv::KeyPoint > &keypoints) const |
int | getGridCols () const |
int | getGridRows () const |
float | getMaxDepth () const |
int | getMaxFeatures () const |
float | getMinDepth () const |
virtual const ParametersMap & | getParameters () const |
virtual Feature2D::Type | getType () const =0 |
virtual void | parseParameters (const ParametersMap ¶meters) |
virtual | ~Feature2D () |
Static Public Member Functions | |
static cv::Rect | computeRoi (const cv::Mat &image, const std::string &roiRatios) |
static cv::Rect | computeRoi (const cv::Mat &image, const std::vector< float > &roiRatios) |
static Feature2D * | create (const ParametersMap ¶meters=ParametersMap()) |
static Feature2D * | create (Feature2D::Type type, const ParametersMap ¶meters=ParametersMap()) |
static void | filterKeypointsByDepth (std::vector< cv::KeyPoint > &keypoints, const cv::Mat &depth, float minDepth, float maxDepth) |
static void | filterKeypointsByDepth (std::vector< cv::KeyPoint > &keypoints, cv::Mat &descriptors, const cv::Mat &depth, float minDepth, float maxDepth) |
static void | filterKeypointsByDepth (std::vector< cv::KeyPoint > &keypoints, cv::Mat &descriptors, std::vector< cv::Point3f > &keypoints3D, float minDepth, float maxDepth) |
static void | filterKeypointsByDisparity (std::vector< cv::KeyPoint > &keypoints, const cv::Mat &disparity, float minDisparity) |
static void | filterKeypointsByDisparity (std::vector< cv::KeyPoint > &keypoints, cv::Mat &descriptors, const cv::Mat &disparity, float minDisparity) |
static void | limitKeypoints (std::vector< cv::KeyPoint > &keypoints, int maxKeypoints) |
static void | limitKeypoints (std::vector< cv::KeyPoint > &keypoints, cv::Mat &descriptors, int maxKeypoints) |
static void | limitKeypoints (std::vector< cv::KeyPoint > &keypoints, std::vector< cv::Point3f > &keypoints3D, cv::Mat &descriptors, int maxKeypoints) |
static void | limitKeypoints (const std::vector< cv::KeyPoint > &keypoints, std::vector< bool > &inliers, int maxKeypoints) |
static void | limitKeypoints (const std::vector< cv::KeyPoint > &keypoints, std::vector< bool > &inliers, int maxKeypoints, const cv::Size &imageSize, int gridRows, int gridCols) |
static std::string | typeName (Type type) |
Protected Member Functions | |
Feature2D (const ParametersMap ¶meters=ParametersMap()) | |
Private Member Functions | |
virtual cv::Mat | generateDescriptorsImpl (const cv::Mat &image, std::vector< cv::KeyPoint > &keypoints) const =0 |
virtual std::vector< cv::KeyPoint > | generateKeypointsImpl (const cv::Mat &image, const cv::Rect &roi, const cv::Mat &mask=cv::Mat())=0 |
Private Attributes | |
float | _maxDepth |
float | _minDepth |
std::vector< float > | _roiRatios |
Stereo * | _stereo |
double | _subPixEps |
int | _subPixIterations |
int | _subPixWinSize |
int | gridCols_ |
int | gridRows_ |
int | maxFeatures_ |
ParametersMap | parameters_ |
Definition at line 106 of file Features2d.h.
Definition at line 108 of file Features2d.h.
|
virtual |
Definition at line 447 of file Features2d.cpp.
|
protected |
Definition at line 433 of file Features2d.cpp.
|
static |
Definition at line 420 of file Features2d.cpp.
|
static |
Definition at line 425 of file Features2d.cpp.
|
static |
Definition at line 511 of file Features2d.cpp.
|
static |
Definition at line 517 of file Features2d.cpp.
|
static |
Definition at line 85 of file Features2d.cpp.
|
static |
Definition at line 95 of file Features2d.cpp.
|
static |
Definition at line 157 of file Features2d.cpp.
|
static |
Definition at line 204 of file Features2d.cpp.
|
static |
Definition at line 213 of file Features2d.cpp.
cv::Mat rtabmap::Feature2D::generateDescriptors | ( | const cv::Mat & | image, |
std::vector< cv::KeyPoint > & | keypoints | ||
) | const |
Definition at line 772 of file Features2d.cpp.
|
privatepure virtual |
Implemented in rtabmap::SURF_DAISY, rtabmap::GFTT_DAISY, rtabmap::SuperPointTorch, rtabmap::ORBOctree, rtabmap::KAZE, rtabmap::BRISK, rtabmap::GFTT_ORB, rtabmap::SURF_FREAK, rtabmap::GFTT_FREAK, rtabmap::GFTT_BRIEF, rtabmap::FAST_FREAK, rtabmap::FAST_BRIEF, rtabmap::FAST, rtabmap::ORB, rtabmap::SIFT, rtabmap::SURF, and rtabmap::PyDetector.
std::vector< cv::KeyPoint > rtabmap::Feature2D::generateKeypoints | ( | const cv::Mat & | image, |
const cv::Mat & | mask = cv::Mat() |
||
) |
Definition at line 670 of file Features2d.cpp.
std::vector< cv::Point3f > rtabmap::Feature2D::generateKeypoints3D | ( | const SensorData & | data, |
const std::vector< cv::KeyPoint > & | keypoints | ||
) | const |
Definition at line 788 of file Features2d.cpp.
|
privatepure virtual |
Implemented in rtabmap::SuperPointTorch, rtabmap::ORBOctree, rtabmap::KAZE, rtabmap::BRISK, rtabmap::GFTT, rtabmap::FAST, rtabmap::ORB, rtabmap::SIFT, rtabmap::SURF, and rtabmap::PyDetector.
|
inline |
Definition at line 208 of file Features2d.h.
|
inline |
Definition at line 207 of file Features2d.h.
|
inline |
Definition at line 206 of file Features2d.h.
|
inline |
Definition at line 204 of file Features2d.h.
|
inline |
Definition at line 205 of file Features2d.h.
|
inlinevirtual |
Definition at line 224 of file Features2d.h.
|
pure virtual |
Implemented in rtabmap::SURF_DAISY, rtabmap::GFTT_DAISY, rtabmap::SuperPointTorch, rtabmap::ORBOctree, rtabmap::KAZE, rtabmap::BRISK, rtabmap::GFTT_ORB, rtabmap::SURF_FREAK, rtabmap::GFTT_FREAK, rtabmap::GFTT_BRIEF, rtabmap::FAST_FREAK, rtabmap::FAST_BRIEF, rtabmap::FAST, rtabmap::ORB, rtabmap::SIFT, rtabmap::SURF, and rtabmap::PyDetector.
|
static |
Definition at line 271 of file Features2d.cpp.
|
static |
Definition at line 277 of file Features2d.cpp.
|
static |
Definition at line 283 of file Features2d.cpp.
|
static |
Definition at line 345 of file Features2d.cpp.
|
static |
Definition at line 381 of file Features2d.cpp.
|
virtual |
Reimplemented in rtabmap::SURF_DAISY, rtabmap::GFTT_DAISY, rtabmap::SuperPointTorch, rtabmap::ORBOctree, rtabmap::KAZE, rtabmap::BRISK, rtabmap::GFTT_ORB, rtabmap::SURF_FREAK, rtabmap::GFTT_FREAK, rtabmap::GFTT_BRIEF, rtabmap::GFTT, rtabmap::FAST_FREAK, rtabmap::FAST_BRIEF, rtabmap::FAST, rtabmap::ORB, rtabmap::SIFT, rtabmap::SURF, and rtabmap::PyDetector.
Definition at line 451 of file Features2d.cpp.
|
inlinestatic |
Definition at line 126 of file Features2d.h.
|
private |
Definition at line 237 of file Features2d.h.
|
private |
Definition at line 238 of file Features2d.h.
|
private |
Definition at line 239 of file Features2d.h.
|
private |
Definition at line 246 of file Features2d.h.
|
private |
Definition at line 242 of file Features2d.h.
|
private |
Definition at line 241 of file Features2d.h.
|
private |
Definition at line 240 of file Features2d.h.
|
private |
Definition at line 244 of file Features2d.h.
|
private |
Definition at line 243 of file Features2d.h.
|
private |
Definition at line 236 of file Features2d.h.
|
private |
Definition at line 235 of file Features2d.h.