-
Notifications
You must be signed in to change notification settings - Fork 3
/
descspin.h
53 lines (41 loc) · 1.27 KB
/
descspin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef DESCSPIN_H
#define DESCSPIN_H
#include "abstractdescriptor.h"
#include "keypoint.h"
#include "filter.h"
#include "image.h"
#include <vector>
using namespace std;
/**
*@author Wanlei Zhao
*@version 1.0
*All rights reserved by Wanlei Zhao
*
*Anyone receive this code should not redistribute it to other people
*without permission of the author
*
*This code should only be used for non-commercial purpose
**/
class DescSPIN :public AbstractDescriptor
{
private:
//for descriptor
static const int Ints;
static const int Dist;
static const float alpha;
static const float belta;
static const int PatchMag;
static const int PatchSize;
static const int CLR_DEPTH;
public:
DescSPIN(DESC desc);
int getNormDescPatch(KeyPoint *keyp,float *myWin,const int Size);
int getOctavedDescPatch(KeyPoint * key,const Image * blur,float *descWin);
int buildDescriptor(const int kpnum, vector<KeyPoint*> &kps, const char *descfn, const float resize_rate);
int buildPatchView(const int kpnum, vector<KeyPoint*> &kps, const char *dvfn, const float resize_rate);
static int getWinSize(KeyPoint *key,float &sizeratio);
int getSPINDescriptor(const float *myWin);
int getSPINDescriptor(Image *win,const float sizeratio);
~DescSPIN();
};
#endif