Avoid duplicated variable declarations.
This commit is contained in:
parent
52a904e17b
commit
bec35eeddb
@ -138,9 +138,9 @@ static void computeOrbDescriptor(const KeyPoint& kpt,
|
|||||||
const uchar* center = &img.at<uchar>(cvRound(kpt.pt.y), cvRound(kpt.pt.x));
|
const uchar* center = &img.at<uchar>(cvRound(kpt.pt.y), cvRound(kpt.pt.x));
|
||||||
int step = (int)img.step;
|
int step = (int)img.step;
|
||||||
|
|
||||||
#if 1
|
|
||||||
float x, y;
|
float x, y;
|
||||||
int ix, iy;
|
int ix, iy;
|
||||||
|
#if 1
|
||||||
#define GET_VALUE(idx) \
|
#define GET_VALUE(idx) \
|
||||||
(x = pattern[idx].x*a - pattern[idx].y*b, \
|
(x = pattern[idx].x*a - pattern[idx].y*b, \
|
||||||
y = pattern[idx].x*b + pattern[idx].y*a, \
|
y = pattern[idx].x*b + pattern[idx].y*a, \
|
||||||
@ -148,8 +148,6 @@ static void computeOrbDescriptor(const KeyPoint& kpt,
|
|||||||
iy = cvRound(y), \
|
iy = cvRound(y), \
|
||||||
*(center + iy*step + ix) )
|
*(center + iy*step + ix) )
|
||||||
#else
|
#else
|
||||||
float x, y;
|
|
||||||
int ix, iy;
|
|
||||||
#define GET_VALUE(idx) \
|
#define GET_VALUE(idx) \
|
||||||
(x = pattern[idx].x*a - pattern[idx].y*b, \
|
(x = pattern[idx].x*a - pattern[idx].y*b, \
|
||||||
y = pattern[idx].x*b + pattern[idx].y*a, \
|
y = pattern[idx].x*b + pattern[idx].y*a, \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user