-
Notifications
You must be signed in to change notification settings - Fork 29
/
sift.pxd
50 lines (45 loc) · 1.58 KB
/
sift.pxd
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
from libcpp cimport bool
from libcpp.pair cimport pair
from libcpp.vector cimport vector
from image cimport flimage
cdef extern from "sift/sift.h":
struct keypoint:
float x
float y
float scale
float angle
float * vec
#typedef std::vector<keypoint> keypointslist;
ctypedef vector[ keypoint ] keypointslist
struct siftPar:
int OctaveMax
int DoubleImSize
int order
float InitSigma
int BorderDist
int Scales
float PeakThresh
float EdgeThresh
float EdgeThresh1
int OriBins
float OriSigma
float OriHistThresh
float MaxIndexVal
int MagFactor
float IndexSigma
int IgnoreGradSign
float MatchRatio
float MatchXradius
float MatchYradius
int noncorrectlylocalized
void default_sift_parameters(siftPar par) nogil
void compute_sift_keypoints(float * input, keypointslist keypoints, int width, int height, siftPar par) nogil
void compute_sift_keypoints_flimage(flimage img, keypointslist keypoints, siftPar par) nogil
#typedef std::pair<keypoint,keypoint> matching;
ctypedef pair[ keypoint , keypoint ] matching
#typedef std::vector<matching> matchingslist;
ctypedef vector[ matching ] matchingslist
void compute_sift_matches(keypointslist keys1, keypointslist keys2, matchingslist matchings, siftPar par) nogil
void imgblur(float *, float* , int , int , float)
cdef extern from "sift/library.h":
void sample ( float *,float *, float ,int , int) nogil