Added GFTT+ORB detector type

This commit is contained in:
matlabbe
2015-11-11 12:08:20 -05:00
parent 0dedc62ce8
commit d1eec16222
4 changed files with 66 additions and 7 deletions

View File

@@ -98,7 +98,8 @@ public:
kFeatureFastBrief=4,
kFeatureGfttFreak=5,
kFeatureGfttBrief=6,
kFeatureBrisk=7};
kFeatureBrisk=7,
kFeatureGfttOrb=8}; //new 0.10.11
static Feature2D * create(Feature2D::Type & type, const ParametersMap & parameters);
@@ -360,6 +361,23 @@ private:
cv::Ptr<CV_FREAK> _freak;
};
//GFTT_ORB
class RTABMAP_EXP GFTT_ORB : public GFTT
{
public:
GFTT_ORB(const ParametersMap & parameters = ParametersMap());
virtual ~GFTT_ORB();
virtual void parseParameters(const ParametersMap & parameters);
virtual Feature2D::Type getType() const {return kFeatureGfttOrb;}
private:
virtual cv::Mat generateDescriptorsImpl(const cv::Mat & image, std::vector<cv::KeyPoint> & keypoints) const;
private:
ORB _orb;
};
//BRISK
class RTABMAP_EXP BRISK : public Feature2D
{

View File

@@ -250,7 +250,7 @@ class RTABMAP_EXP Parameters
RTABMAP_PARAM(FAST, Gpu, bool, false, "GPU-FAST: Use GPU version of FAST. This option is enabled only if OpenCV is built with CUDA and GPUs are detected.");
RTABMAP_PARAM(FAST, GpuKeypointsRatio, double, 0.05, "Used with FAST GPU.");
RTABMAP_PARAM(GFTT, QualityLevel, double, 0.001, "");
RTABMAP_PARAM(GFTT, QualityLevel, double, 0.0001, "");
RTABMAP_PARAM(GFTT, MinDistance, double, 5, "");
RTABMAP_PARAM(GFTT, BlockSize, int, 3, "");
RTABMAP_PARAM(GFTT, UseHarrisDetector, bool, false, "");