mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Added GFTT+ORB detector type
This commit is contained in:
@@ -1071,7 +1071,7 @@ cv::Mat GFTT_BRIEF::generateDescriptorsImpl(const cv::Mat & image, std::vector<c
|
||||
}
|
||||
|
||||
//////////////////////////
|
||||
//FAST-FREAK
|
||||
//GFTT-FREAK
|
||||
//////////////////////////
|
||||
GFTT_FREAK::GFTT_FREAK(const ParametersMap & parameters) :
|
||||
GFTT(parameters),
|
||||
@@ -1123,6 +1123,32 @@ cv::Mat GFTT_FREAK::generateDescriptorsImpl(const cv::Mat & image, std::vector<c
|
||||
return descriptors;
|
||||
}
|
||||
|
||||
//////////////////////////
|
||||
//GFTT-ORB
|
||||
//////////////////////////
|
||||
GFTT_ORB::GFTT_ORB(const ParametersMap & parameters) :
|
||||
GFTT(parameters),
|
||||
_orb(parameters)
|
||||
{
|
||||
parseParameters(parameters);
|
||||
}
|
||||
|
||||
GFTT_ORB::~GFTT_ORB()
|
||||
{
|
||||
}
|
||||
|
||||
void GFTT_ORB::parseParameters(const ParametersMap & parameters)
|
||||
{
|
||||
GFTT::parseParameters(parameters);
|
||||
_orb.parseParameters(parameters);
|
||||
}
|
||||
|
||||
cv::Mat GFTT_ORB::generateDescriptorsImpl(const cv::Mat & image, std::vector<cv::KeyPoint> & keypoints) const
|
||||
{
|
||||
UASSERT(!image.empty() && image.channels() == 1 && image.depth() == CV_8U);
|
||||
return _orb.generateDescriptors(image, keypoints);
|
||||
}
|
||||
|
||||
//////////////////////////
|
||||
//BRISK
|
||||
//////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user