Resolution du bug std::bad_alloc sur matching
This commit is contained in:
parent
fbafece5af
commit
475f30be1a
154 changed files with 2575 additions and 1154 deletions
|
@ -28,29 +28,37 @@ using namespace std;
|
|||
// int height;
|
||||
// } image;
|
||||
|
||||
typedef vector< vector< keypointslist > > asift_keypoints;
|
||||
|
||||
class ASIFT_matcher
|
||||
{
|
||||
public:
|
||||
ASIFT_matcher();
|
||||
virtual ~ASIFT_matcher();
|
||||
// virtual ~ASIFT_matcher();
|
||||
|
||||
bool addReference(const char* image, int num_tilts);
|
||||
bool match(const char* image, int num_tilts);
|
||||
void print() const;
|
||||
|
||||
void setResizeImg(bool resize_imgs){ _resize_imgs=resize_imgs;}
|
||||
|
||||
const vector < int >& getNbMatch()const{ return _num_matchings;}
|
||||
const vector< matchingslist >& getMatch()const{ return _matchings;}
|
||||
|
||||
protected:
|
||||
//QUESCEQUESAI
|
||||
int _verb = 0;
|
||||
int _verb;// = 0;
|
||||
|
||||
//Reference Images
|
||||
// vector< image > _im_refs;
|
||||
unsigned int _nb_refs = 0;
|
||||
unsigned int _nb_refs;// = 0;
|
||||
vector< vector< float > > _im_refs;
|
||||
vector< pair<int,int> > _size_refs; //Width/Height
|
||||
|
||||
//ASIFT Keypoints
|
||||
vector< int > _num_keys;
|
||||
vector< int > _num_tilts; //Speed VS Precision
|
||||
vector< vector< vector< keypointslist > > > _keys;
|
||||
vector< asift_keypoints > _keys;
|
||||
|
||||
//Matchs
|
||||
vector < int > _num_matchings;
|
||||
|
@ -59,5 +67,5 @@ protected:
|
|||
siftPar _siftParam;
|
||||
|
||||
//Flags
|
||||
bool resize_imgs = false;
|
||||
bool _resize_imgs;// = false;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue