mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-07 10:17:45 +08:00
Refactored OdometryBOW class to handle binary descriptors too (removed OdometryBin).
Odometry: added "local map history" option to increase precision Added new Nearest neighbor options (LSH, brute Force, GPU brute Force) Added FREAK/ORB features Increased version to 0.6.5 git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1431 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -24,22 +24,12 @@
|
||||
namespace rtabmap
|
||||
{
|
||||
|
||||
VisualWord::VisualWord(int id, const float * descriptor, int dim, int signatureId) :
|
||||
VisualWord::VisualWord(int id, const cv::Mat & descriptor, int signatureId) :
|
||||
_id(id),
|
||||
_descriptor(descriptor),
|
||||
_saved(false),
|
||||
_totalReferences(0)
|
||||
{
|
||||
_descriptor = new float[dim];
|
||||
if(_descriptor && descriptor)
|
||||
{
|
||||
memcpy(_descriptor, descriptor, dim*sizeof(float));
|
||||
}
|
||||
else
|
||||
{
|
||||
ULOGGER_ERROR("not enough memory to create the descriptor...");
|
||||
}
|
||||
_dim = dim;
|
||||
|
||||
if(signatureId)
|
||||
{
|
||||
addRef(signatureId);
|
||||
@@ -48,10 +38,6 @@ VisualWord::VisualWord(int id, const float * descriptor, int dim, int signatureI
|
||||
|
||||
VisualWord::~VisualWord()
|
||||
{
|
||||
if(_descriptor)
|
||||
{
|
||||
delete [] _descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
void VisualWord::addRef(int signatureId)
|
||||
|
||||
Reference in New Issue
Block a user